Page 1 of 1

Monitor Input voltage on Netonix switch with SNMP

Posted: Tue Nov 10, 2020 12:55 pm
by ryan.gernaat
I am trying to figure out how to monitor a Netonix Switch's input voltage via SNMP. I have the right OID (Shown Below) but I have been unable to get a reeding back from switch itself. I have attached the netonix Mib's and a screenshot of nagios where I am having issues figuring out the values that need to be placed

any thoughts?

OID: Name/OID: .1.3.6.1.4.1.46242.4.1.2.4; Value (OctetString): DCDC Input Voltage

Thanks!

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Wed Nov 11, 2020 5:45 pm
by cdienger
Is that the only result that comes up when you do the walk? The voltateDescription.4 OID is of type string so setting the 'match type' to numeric doesn't make sense. There is likely another OID that stores the actual numeric value that you want to be checking.

The MIB files didn't come through. Please try attaching them again.

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Wed Nov 11, 2020 6:41 pm
by ryan.gernaat
Yep that was it I had the wrong OID thanks so much!

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Thu Nov 12, 2020 9:54 am
by ryan.gernaat
Ok so I spoke a little too soon. this is pulling data but the issue is now the voltage is higher than my warnings. so it is at 11.50 volts my warning is at 11.00 so it thinks it is in a failed state. I need this to warn me when it goes down to 11.00 Volts. is there a way to flip the way the warnings and criticals are reported? I have attached a screenshot to show what i mean.

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Thu Nov 12, 2020 2:25 pm
by cdienger
It looks like the arguments just need to be flipped. Under Configure > Core Config Manager > Monitoring > Services, you'll find the Input Voltage service. Edit it it should show you the arguments that are being passed to the plugin. Try swapping them and using the 'Run Check Command' button to test the command.

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Fri Nov 13, 2020 9:58 am
by ryan.gernaat
ok here is the output when I run the "Run Check Command"

(Comented out) check_snmp -H x.x.x.x -p 161 -o 'voltage.4' -C 'public' -P 2c -l 'Volts' -m NETONIX-SWITCH-MIB -w 11.00 -c 10.50
SNMP CRITICAL - Volts *11* | Volts=11;11.00;10.50

here is the Argument
-p 161 -o 'voltage.4' -C 'public' -P 2c -l 'Volts' -m NETONIX-SWITCH-MIB -w 11.00 -c 10.50

here is the current warning
SNMP CRITICAL - Volts *11*

essentially what needs to happen is if the voltage drops down to 11.00 volts it should give me a warning. but since nagios reads it the other way that it is over 11 volts it thinks it is in a failed state. I do not see where I can change how nagios reads this. does that make sense?

you can see the meter at the bottom expressing what I mean. since it is over 11 volts it thinks it is in a failed state. I may be misunderstanding but if I flip the critical and warning arguments it would not change the reeding it would still be in critical state.

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Fri Nov 13, 2020 5:28 pm
by cdienger
Thanks for the clarification. Thresholds can be set for most plugins per https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT. To trigger an alert for something below a certain value you would use something like:

Code: Select all

./check_snmp -H x.x.x.x -p 161 -o 'voltage.4' -C 'public' -P 2c -l 'Volts' -m NETONIX-SWITCH-MIB -w 11.00: -c 10.50:

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Mon Nov 16, 2020 3:41 pm
by ryan.gernaat
That did the trick! Thanks so much for the help cdienger!!!

Re: Monitor Input voltage on Netonix switch with SNMP

Posted: Mon Nov 16, 2020 4:23 pm
by scottwilkerson
ryan.gernaat wrote:That did the trick! Thanks so much for the help cdienger!!!
Great!

Locking thread