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

Contents of /rpms/smeserver-zabbix-agent/contribs9/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 - (show annotations) (download)
Tue Feb 9 23:18:26 2016 UTC (8 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-53_el6_sme, smeserver-zabbix-agent--, HEAD
* Wed Feb 10 stephane de Labrusse <stephdl@de-labrusse.fr> - 0.1-53.sme
- New rpm for sme9

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