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