--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias.userparam_yum_updates 2009-04-17 10:50:28.000000000 +0200 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias 2009-04-17 10:54:16.000000000 +0200 @@ -1,5 +1,5 @@ { -my $runasroot = '/usr/bin/mysqladmin status'; +my $runasroot = '/usr/bin/mysqladmin status, /sbin/e-smith/db yum_updates show'; if ( -x '/opt/MegaRAID/MegaCli/MegaCli' ){ $runasroot .= ', /opt/MegaRAID/MegaCli/MegaCli -ldinfo -Lall -Aall'; } --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_yumUpdates.userparam_yum_updates 2009-04-17 10:55:29.000000000 +0200 +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_yumUpdates 2009-04-17 11:04:03.000000000 +0200 @@ -0,0 +1,11 @@ + +# 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 +