mbdraks / fortinet-zabbix

Zabbix Templates for Fortinet devices
93 stars 57 forks source link

collect hd usage and total #5

Closed mbdraks closed 4 years ago

mbdraks commented 4 years ago

collect hd usage and total

mbdraks commented 4 years ago
heimdallr # fnsysctl df -h
Filesystem                 Size       Used  Available Use% Mounted on
rootfs                   932.9M     106.5M     826.4M  11% /
tmpfs                    932.9M     106.5M     826.4M  11% /
none                       1.2G     107.0M       1.1G   8% /tmp
none                       1.2G      54.9M       1.2G   4% /dev/shm
none                       1.2G      39.1M       1.2G   3% /dev/cmdb
/dev/mmcblk0p2           247.9M      83.2M     151.9M  35% /data
/dev/mmcblk0p3             2.8G     150.9M       2.5G   5% /data2
/dev/sda1                117.3G     694.3M     110.7G   1% /var/log

heimdallr # fnsysctl df -m
Filesystem            1M-blocks       Used  Available Use% Mounted on
rootfs                      932        106        826  11% /
tmpfs                       932        106        826  11% /
none                       1317        107       1210   8% /tmp
none                       1317         54       1262   4% /dev/shm
none                       1317         39       1277   3% /dev/cmdb
/dev/mmcblk0p2              247         83        151  35% /data
/dev/mmcblk0p3             2950        150       2650   5% /data2
/dev/sda1                120186        694     113386   1% /var/log

SNMPv2-SMI::enterprises.12356.101.4.1.6.0 = Gauge32: 689
SNMPv2-SMI::enterprises.12356.101.4.1.7.0 = Gauge32: 120186
mbdraks commented 4 years ago

Using custom multiplier on those items, 1024*1024