1 |
--- smeserver-zabbix-agent-0.1/root/var/lib/zabbix/bin/megaraid-parser.pl.run_megaraid_parser_as_root 2009-12-02 23:20:30.000000000 +0100 |
2 |
+++ smeserver-zabbix-agent-0.1/root/var/lib/zabbix/bin/megaraid-parser.pl 2009-12-02 23:23:09.000000000 +0100 |
3 |
@@ -45,7 +45,7 @@ |
4 |
exit; |
5 |
} |
6 |
|
7 |
-my $megacli = '/usr/bin/sudo /opt/MegaRAID/MegaCli/MegaCli'; |
8 |
+my $megacli = '/opt/MegaRAID/MegaCli/MegaCli'; |
9 |
|
10 |
## Return codes for Nagios |
11 |
my %ERRORS=('OK'=>0,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); |
12 |
--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias.run_megaraid_parser_as_root 2009-12-02 23:20:30.000000000 +0100 |
13 |
+++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias 2009-12-02 23:22:11.000000000 +0100 |
14 |
@@ -1,7 +1,7 @@ |
15 |
{ |
16 |
my $runasroot = '/usr/bin/mysqladmin status, /sbin/e-smith/db yum_updates show, /var/lib/zabbix/bin/sensors *, /usr/sbin/smartctl -A /dev/*'; |
17 |
if ( -x '/opt/MegaRAID/MegaCli/MegaCli' ){ |
18 |
- $runasroot .= ', /opt/MegaRAID/MegaCli/MegaCli *'; |
19 |
+ $runasroot .= ', /var/lib/zabbix/bin/megaraid-parser.pl'; |
20 |
} |
21 |
$runasroot .= "\n"; |
22 |
$OUT .= 'Cmnd_Alias ZABBIX_AGENT_ROOT = '.$runasroot |