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

Annotation of /rpms/smeserver-zabbix-agent/contribs9/smeserver-zabbix-agent-0.1-userparam_megaraid.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Feb 9 23:18:27 2016 UTC (8 years, 3 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 stephdl 1.1 --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias.userparam_megaraid 2009-03-27 13:21:29.000000000 +0100
2     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/sudoers/00zabbixAgentAlias 2009-03-27 13:46:26.000000000 +0100
3     @@ -1,4 +1,11 @@
4     -Cmnd_Alias ZABBIX_AGENT_ROOT = /usr/bin/mysqladmin status
5     +{
6     +my $runasroot = '/usr/bin/mysqladmin status';
7     +if ( -x '/opt/MegaRAID/MegaCli/MegaCli' ){
8     + $runasroot .= ', /opt/MegaRAID/MegaCli/MegaCli -ldinfo -Lall -Aall';
9     +}
10     +$runasroot .= "\n";
11     +$OUT .= 'Cmnd_Alias ZABBIX_AGENT_ROOT = '.$runasroot
12     +}
13     Cmnd_Alias ZABBIX_AGENT_MYSQL = /usr/bin/du -s /var/lib/mysql
14     Cmnd_Alias ZABBIX_AGENT_SMELOG = /var/lib/zabbix/bin/logtail.pl /var/log/qpsmtpd/current /var/lib/zabbix/tmp/*
15     Cmnd_Alias ZABBIX_AGENT_QMAIL = /var/lib/zabbix/bin/logtail.pl /var/log/qmail/current /var/lib/zabbix/tmp/*
16     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_megaRaid.userparam_megaraid 2009-03-27 13:22:07.000000000 +0100
17     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_megaRaid 2009-03-27 13:47:29.000000000 +0100
18     @@ -0,0 +1,28 @@
19     +
20     +{
21     +
22     +# As this check requires the MegaCli utility, first check if it's present:
23     +if ( -x '/opt/MegaRAID/MegaCli/MegaCli' ){
24     + $OUT .=<<"HERE";
25     +
26     +# Report status of every Raid Array using the MegaRaid controler (Requires the MegaCli utility)
27     +# This controler is used for example on perc5/6(i) Raid card
28     +
29     +# Description: MegaRaid Status
30     +# Type: Agent or Agent (active)
31     +# Key: raid.mega.status
32     +# Type of Information: Character
33     +# Show Value: As is
34     +
35     +# The value reported is like:
36     +# State: Optimal
37     +# State: Degraded
38     +#
39     +
40     +# Tips: You can add a simple trigger on this check like:
41     +# \{ hostname:raid.mega.status.str( Degraded ) \}=1
42     +UserParameter=raid.mega.status,/usr/bin/sudo /opt/MegaRAID/MegaCli/MegaCli -ldinfo -Lall -Aall | grep "^State:"
43     +
44     +HERE
45     +}
46     +}

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