[Pacemaker] crm_mon SNMP support
Andrew Beekhof
andrew at beekhof.net
Fri Feb 1 02:48:44 UTC 2013
On Tue, Jan 22, 2013 at 3:18 AM, Florian Crouzat
<gentoo at floriancrouzat.net> wrote:
> Le 29/11/2012 22:10, Andrew Beekhof a écrit :
>
>> Not so fast :-)
>>
>> crm_mon supports
>>
>> -E, --external-agent=value
>> A program to run when resource operations take place.
>>
>> -e, --external-recipient=value A recipient for your program
>> (assuming you want the program to send something to someone).
>>
>> so without recompiling, you can call a script - possibly it could call
>> something that sends out snmp alerts ;-)
>
>
>
> So, I took a first shot at writing an external-agent script that would
> somehow reproduce the behavior of crm_mon when SNMP support is built-in.
>
> Basically, to refocus the discussion, I've written this script because I
> want to be alerted via SNMP on most of the cluster events but sadly my
> version of crm_mon doesn't have SNMP support (RHEL6), so I cannot use this
> feature combined with ocf:pacemaker:ClusterMon but I can use crm_mon ability
> to trigger an external-agent (script, binary...)
>
> Script: http://files.floriancrouzat.net/clusterMon.sh
> It respects PCMK-MIB.txt.
Is that something you'd like to include with pacemaker?
>
> ps: yes I know, lots of comments and few actual lines of code but that's
> just because
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html-single/Pacemaker_Explained/#ch-notification
> hasn't been published yet.
/me kicks of a rebuild now.
>
> Any directions, hints or corrections are welcome.
>
> Florian.
>
>
>
> --
> Cheers,
> Florian Crouzat
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Pacemaker
mailing list