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

tags/smeserver-zabbix-agent-0.4.3-1
Daniel Berteaud 12 years ago
parent 6d0aa9f24b
commit f5432ad217
  1. 3
      createlinks
  2. 11
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All

@ -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");

@ -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
Loading…
Cancel
Save