From f5432ad217392f980b1829f094c4af1cb11096bd Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 16 Apr 2013 12:30:12 +0200 Subject: [PATCH] Remove yum updates item (need to find a more generic way to get this) --- createlinks | 3 +-- .../zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All | 11 ----------- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All diff --git a/createlinks b/createlinks index 75c55cc..c91aeb1 100644 --- a/createlinks +++ b/createlinks @@ -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"); diff --git a/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All b/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All deleted file mode 100644 index 671e71d..0000000 --- a/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/yumupdates.conf/10All +++ /dev/null @@ -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 -