Having Zabbix to warn you when a server needs to be updated is a must-have for any sysadmin.
So, here's what I've come with:
Thanks to: http://en.gentoo-wiki.com/wiki/Zabbix
(and some people in this forum!)
So, here's what I've come with:
Code:
UserParameter=gentoo.security,glsa-check -t all 2>/dev/null | wc -l
UserParameter=gentoo.updates,emerge -tpvuD system | grep ebuild|wc -l
UserParameter=gentoo.portage,emerge --info| grep 'Timestamp of tree' | sed -e s/'Timestamp of tree':// -e 's/\n//' | xargs -I {} date --date={} +%s
UserParameter=gentoo.config,find /etc/ -name '._cfg*' 2>/dev/null|wc -l
(and some people in this forum!)
Comment