1 |
stephdl |
1.1 |
--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias.userparam_yum_updates 2009-04-17 10:50:28.000000000 +0200 |
2 |
|
|
+++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias 2009-04-17 10:54:16.000000000 +0200 |
3 |
|
|
@@ -1,5 +1,5 @@ |
4 |
|
|
{ |
5 |
|
|
-my $runasroot = '/usr/bin/mysqladmin status'; |
6 |
|
|
+my $runasroot = '/usr/bin/mysqladmin status, /sbin/e-smith/db yum_updates show'; |
7 |
|
|
if ( -x '/opt/MegaRAID/MegaCli/MegaCli' ){ |
8 |
|
|
$runasroot .= ', /opt/MegaRAID/MegaCli/MegaCli -ldinfo -Lall -Aall'; |
9 |
|
|
} |
10 |
|
|
--- 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 |
11 |
|
|
+++ 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 |
12 |
|
|
@@ -0,0 +1,11 @@ |
13 |
|
|
+ |
14 |
|
|
+# Description: Number of updates available through yum |
15 |
|
|
+# Type: Agent or Agent (active) |
16 |
|
|
+# Key: updates.available |
17 |
|
|
+# Type of information: Numeric (integer 64bit) |
18 |
|
|
+# Units: packages |
19 |
|
|
+# Custom multiplier: Do not use |
20 |
|
|
+# Store Value: As is |
21 |
|
|
+ |
22 |
|
|
+UserParameter=updates.available,/usr/bin/sudo /sbin/e-smith/db yum_updates show | grep package | wc -l |
23 |
|
|
+ |