/[smecontribs]/rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent-0.1-run_megaraid_parser_as_root.patch
ViewVC logotype

Annotation of /rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent-0.1-run_megaraid_parser_as_root.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Dec 2 22:29:22 2009 UTC (14 years, 11 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-48_el4_sme, smeserver-zabbix-agent-0_1-36_el4_sme, smeserver-zabbix-agent-0_1-38_el4_sme, smeserver-zabbix-agent-0_1-43_el4_sme, smeserver-zabbix-agent-0_1-37_el4_sme, smeserver-zabbix-agent-0_1-39_el4_sme, smeserver-zabbix-agent-0_1-41_el4_sme, smeserver-zabbix-agent-0_1-47_el4_sme, smeserver-zabbix-agent-0_1-46_el4_sme, smeserver-zabbix-agent-0_1-50_el4_sme, smeserver-zabbix-agent-0_1-45_el4_sme, smeserver-zabbix-agent-0_1-51_el4_sme, smeserver-zabbix-agent-0_1-44_el4_sme, smeserver-zabbix-agent-0_1-52_el4_sme, smeserver-zabbix-agent-0_1-42_el4_sme, smeserver-zabbix-agent-0_1-40_el4_sme, smeserver-zabbix-agent-0_1-49_el4_sme, HEAD
run megaraid-parser.pl as root instead of granting unrestricted access on MegaCli to zabbix user

1 vip-ire 1.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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed