User Tools

Site Tools


zabbix_lld_-_это_просто

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
zabbix_lld_-_это_просто [2020/09/09 14:29]
val [Модуль 3. Использование LLD для решения новой задачи]
zabbix_lld_-_это_просто [2020/09/11 12:11]
val [Модуль 3. Использование LLD для решения новой задачи]
Line 29: Line 29:
 ... ...
  
-# /​etc/​mysql/​conf.d/​my-custom-settings.cnf+cat /​etc/​mysql/​conf.d/​my-custom-settings.cnf
 </​code><​code>​ </​code><​code>​
 [mysqld] [mysqld]
Line 170: Line 170:
 # lsblk -dJ | jq # lsblk -dJ | jq
  
-# lsblk -dJ | /bin/sed -e '​s/​blockdevices/​data/'​ -e '​s/​name/​{#​DEVNAME}/​g'​ -e '​s/​type/​{#​DEVTYPE}/​g'​ | jq+# lsblk -dJ | sed -e '​s/​blockdevices/​data/'​ -e '​s/​name/​{#​DEVNAME}/​g'​ -e '​s/​type/​{#​DEVTYPE}/​g'​ | jq
  
 # cat /​etc/​zabbix/​zabbix_agentd.conf.d/​vfs.dev.discovery.conf # cat /​etc/​zabbix/​zabbix_agentd.conf.d/​vfs.dev.discovery.conf
Line 189: Line 189:
     {#DEVTYPE} matches disk     {#DEVTYPE} matches disk
  
- +  Block devices discovery
     Item prototypes->​     Item prototypes->​
-      Name: disk {#NAME} read bytes +      Name: {#DEVNAME}: Disk read rate 
-      Key: vfs.dev.read[{#​NAME},sps]+      Key: vfs.dev.read[{#​DEVNAME},sps]
       Type of information:​ Numeric (float)       Type of information:​ Numeric (float)
       Units: Байт       Units: Байт
 +      Applications:​ Filesystem
       Preprocessing->​       Preprocessing->​
         Preprocessing steps         Preprocessing steps
         Custom multiplier 512         Custom multiplier 512
 +
 +Clone
  
       Name: disk {#NAME} write bytes       Name: disk {#NAME} write bytes
 +      Key: vfs.dev.write[{#​DEVNAME},​sps]
       ...  ​       ...  ​
 +
 +</​code><​code>​
 +# mkfs.ext4 /dev/sdb
 +
 +# mount /dev/sdb /mnt
 +
 +# while true; do head -c 1G </​dev/​urandom >​myfile;​done
 +
 +# while true; do grep `openssl rand -base64 12` myfile; done
 </​code>​ </​code>​
zabbix_lld_-_это_просто.txt · Last modified: 2020/10/09 09:46 by val