[Pacemaker] pacemaker and snmptt

Vadym Chepkov vchepkov at gmail.com
Tue Mar 29 03:10:08 UTC 2011


Hi,

I have been trying to have snmptt (http://www.snmptt.org/) catch pacemaker's traps, but haven't been successful so far.

snmpttconvertmib utility doesn't process PCMK-MIB.txt, complains it doesn't have any TRAP-TYPE / NOTIFICATION-TYPE lines

I am catching "unknown" traps:

Mon Mar 28 21:06:14 2011: Unknown trap (.1.3.6.1.4.1.32723.1) received from xen-2 at: 
Value 0: xen-2
Value 1: 192.168.1.34
Value 2: 150:14:53:28.82
Value 3: .1.3.6.1.4.1.32723.1
Value 4: 192.168.1.34
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.32723.1.2=apache_ldap
Ent Value 1: .1.3.6.1.4.1.32723.1.1=ce777942-c35b-48d6-8e60-b9a15378c031
Ent Value 2: .1.3.6.1.4.1.32723.1.3=monitor
Ent Value 3: .1.3.6.1.4.1.32723.1.4=not running
Ent Value 4: .1.3.6.1.4.1.32723.1.6=7
Ent Value 5: .1.3.6.1.4.1.32723.1.7=0
Ent Value 6: .1.3.6.1.4.1.32723.1.5=0


Mon Mar 28 21:06:16 2011: Unknown trap (.1.3.6.1.4.1.32723.1) received from xen-2 at: 
Value 0: xen-2
Value 1: 192.168.1.34
Value 2: 150:14:53:28.84
Value 3: .1.3.6.1.4.1.32723.1
Value 4: 192.168.1.34
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.32723.1.2=apache_ldap
Ent Value 1: .1.3.6.1.4.1.32723.1.1=ce777942-c35b-48d6-8e60-b9a15378c031
Ent Value 2: .1.3.6.1.4.1.32723.1.3=stop
Ent Value 3: .1.3.6.1.4.1.32723.1.4=ok
Ent Value 4: .1.3.6.1.4.1.32723.1.6=0
Ent Value 5: .1.3.6.1.4.1.32723.1.7=0
Ent Value 6: .1.3.6.1.4.1.32723.1.5=0


If pacemaker would use different OIDs for different statuses, like switches do, for example:

EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal
FORMAT Device reinitialized (coldStart)

EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal
FORMAT Device reinitialized (warmStart)

EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal
FORMAT Link down on interface $1.  Admin state: $2.  Operational state: $3 

EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal
FORMAT Link up on interface $1.  Admin state: $2.  Operational state: $3

the it would be simple to write configuration file manually, but since it's the same for different statuses (not sure why this is the case), 
it's not so obvious. Did anybody have luck with integrating pacemaker and snmptt, by any chance? 

Thank you,
Vadym





More information about the Pacemaker mailing list