From: Michael S. <m...@ti...> - 2009-09-10 01:27:44
|
I'm trying to set up monitoring for a storage node. Everything seems to be configured correctly and working as per expected, with the exception of being unable to register a state of anything other than "green." I'm testing with this oid, which normally returns a status of 2; # snmpget -v2c -c public ba-nas2 1.3.6.1.4.1.11096.6.1.1.1.3.5.2.1.4.1024.0 SNMPv2-SMI::enterprises.11096.6.1.1.1.3.5.2.1.4.1024.0 = INTEGER: 2 Here's my oids file; volStatus01 : 1.3.6.1.4.1.11096.6.1.1.1.3.5.2.1.4.1024.0 : leaf thresholds; volStatus01 : red : =2 : omg volStatus01 : yellow : =1 : unformatted volStatus01 : green : =3 : unmounted message; volumeStatus.1024.0: {volStatus01} What I get back from hobbit; volumeStatus.1024.0: 2 I've tried several oids / thresholds combinations with the same results, at a loss as to what I'm doing wrong. # devmon -f -p -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv [09-09-09@18:06:02] Nodename autodetected as suspiria [09-09-09@18:06:02] ---Initilizing devmon... [09-09-09@18:06:02] Verbosity level: 32 [09-09-09@18:06:02] Logging to /var/log/devmon.log [09-09-09@18:06:02] Node 0 reporting to localhost [09-09-09@18:06:02] Running under process id: 31969 [09-09-09@18:06:02] Entering poll loop [09-09-09@18:06:02] Starting snmp queries [09-09-09@18:06:02] Getting device status from hobbit at localhost:1984 [09-09-09@18:06:02] Querying ba-nas1 for tests BAtest [09-09-09@18:06:02] Querying ba-nas2 for tests BAtest [09-09-09@18:06:02] Performing test logic [09-09-09@18:06:02] Done with test logic [09-09-09@18:06:02] Sending messages to display server status ba-nas1.BAtest green Wed Sep 9 18:06:02 2009 Still more tests ... volumeStatus.1024.0: 2 Devmon version 0.3.0 running on suspiria status ba-nas2.BAtest green Wed Sep 9 18:06:02 2009 Still more tests ... volumeStatus.1024.0: 2 Devmon version 0.3.0 running on suspiria status suspiria.dm green Wed Sep 9 18:06:02 2009 devmon, version 0.3.0 Node name: suspiria Node number: 0 Process ID: 31969 Cycle time: 60 Dead time: 180 Polled devices: 2 Polled tests: 2 Avg tests/node: n/a # clear msgs: 0 SNMP test time: 0 Test logic time: 0 BB msg xfer time: 0 This poll period: 0 Avg poll time: wait [09-09-09@18:06:02] Sleeping for 60 seconds. |