Re: [Pacemaker] SNMP monitoring

2011-07-06 Thread Proskurin Kirill

On 07/05/2011 12:05 PM, Raoul Bhatia [IPAX] wrote:

Proskurin, if you get snmp working, would you kindly post your
configuration to the mailinglist?

the snmp-topic has popped up several times and it would be nice if
we got a working config in the mailinglist archive - or better: in the
wiki - as a reference.


Ok I get it.

You need:
snmptrapd
pacemaker with snmp support

snmptrapd.conf:
disableAuthorization yes

traphandle  SNMPv2-SMI::enterprises.32723.1.1   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.2   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.3   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.4   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.5   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.6   /tmp/trap.sh
traphandle  SNMPv2-SMI::enterprises.32723.1.7   /tmp/trap.sh

/tmp/trap.sh - Any sh script to parse result.
For example:
#!/bin/sh

read host
read ip


while read oid val
do
echo -e $host $ip == $oid == $val\n  /tmp/trap.out
done

crm_mon --daemonize -S snmptrapd-ip-addr -- to send traps.

OR you can use your monitoring system and send traps directly to it.

P.S. This works for me on CentOS 5.x with pacemaker 1.1.5 and snmp-5.3.2.

--
Best regards,
Proskurin Kirill

___
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


Re: [Pacemaker] SNMP monitoring

2011-07-06 Thread Raoul Bhatia [IPAX]
On 07/06/2011 04:17 PM, Proskurin Kirill wrote:
 On 07/05/2011 12:05 PM, Raoul Bhatia [IPAX] wrote:
 Proskurin, if you get snmp working, would you kindly post your
 configuration to the mailinglist?

 the snmp-topic has popped up several times and it would be nice if
 we got a working config in the mailinglist archive - or better: in the
 wiki - as a reference.
 
 Ok I get it.
 
 You need:
 snmptrapd
 pacemaker with snmp support

*snip*

thank you for your reply! i'll try that when i find some time ...
(only god knows when this will be though ...)

thanks!
raoul
-- 

DI (FH) Raoul Bhatia M.Sc.  email.  r.bha...@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG  web.  http://www.ipax.at
Barawitzkagasse 10/2/2/11   email.off...@ipax.at
1190 Wien   tel.   +43 1 3670030
FN 277995t HG Wien  fax.+43 1 3670030 15


___
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


[Pacemaker] wiping out cluster config

2011-07-06 Thread Jean-Francois Malouin
Hi,

I want to wipe out my existing cluster config and start afresh, with a
pristine/empty config without actually starting pacemaker -- cluster
is down right now. Is it enough to just remove files in
/var/lib/heartbeat/crm and /var/lib/pengine ?

This is on Debian/Squeeze with pacemaker 1.0.9.1.

thanks!
jf

___
Pacemaker mailing list: Pacemaker@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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker