Linux technical support - [email protected]


other

zabbix disk space percent monitoring

/var/spool/cron/root

*/5 * * * * df -hT | awk '{ if ($7 != "/boot") { print $0 } }' | awk '{ if ($2 == "ext2" || $2 == "ext3" || $2 == "ext4" || $2 == "xfs") { print $0 } }' | awk '{print $6}' | sort -rn | head -n 1 | sed 's/\%//' > /tmp/df_most_ocupied_partition_percent_for_zabbix.txt
UserParameter=df.percent,        sudo cat /tmp/df_most_ocupied_partition_percent_for_zabbix.txt

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>