Remove yum updates item (need to find a more generic way to get this)
This commit is contained in:
parent
6d0aa9f24b
commit
f5432ad217
|
@ -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…
Reference in New Issue