Remove yum updates item (need to find a more generic way to get this)

This commit is contained in:
Daniel Berteaud 2013-04-16 12:30:12 +02:00
parent 6d0aa9f24b
commit f5432ad217
2 changed files with 1 additions and 13 deletions

View File

@ -6,8 +6,7 @@ use esmith::Build::CreateLinks qw(:all);
foreach my $conf (qw!zabbix_agent.conf zabbix_agentd.conf zabbix_agentd.conf.d/asterisk.conf
zabbix_agentd.conf.d/deprecated_cpunum.conf zabbix_agentd.conf.d/deprecated_memory.conf
zabbix_agentd.conf.d/deprecated_netstat.conf zabbix_agentd.conf.d/deprecated_swap.conf
zabbix_agentd.conf.d/extip.conf zabbix_agentd.conf.d/mail.conf zabbix_agentd.conf.d/mysql.conf
/zabbix_agentd.conf.d/yumupdates.conf!){
zabbix_agentd.conf.d/extip.conf zabbix_agentd.conf.d/mail.conf zabbix_agentd.conf.d/mysql.conf!){
templates2events("/etc/zabbix/$conf", qw(zabbix-agent-update bootstrap-console-save));
}
templates2events("/etc/sudoers", "zabbix-agent-update");

View File

@ -1,11 +0,0 @@
# Description: Number of updates available through yum
# Type: Agent or Agent (active)
# Key: updates.available
# Type of information: Numeric (integer 64bit)
# Units: packages
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=updates.available,/usr/bin/sudo /sbin/e-smith/db yum_updates show | grep package | wc -l