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!
Monitor Input voltage on Netonix switch with SNMP
-
ryan.gernaat
- Posts: 5
- Joined: Mon Jun 15, 2015 4:25 pm
Monitor Input voltage on Netonix switch with SNMP
You do not have the required permissions to view the files attached to this post.
Re: Monitor Input voltage on Netonix switch with SNMP
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.
The MIB files didn't come through. Please try attaching them again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
ryan.gernaat
- Posts: 5
- Joined: Mon Jun 15, 2015 4:25 pm
Re: Monitor Input voltage on Netonix switch with SNMP
Yep that was it I had the wrong OID thanks so much!
You do not have the required permissions to view the files attached to this post.
-
ryan.gernaat
- Posts: 5
- Joined: Mon Jun 15, 2015 4:25 pm
Re: Monitor Input voltage on Netonix switch with SNMP
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.
You do not have the required permissions to view the files attached to this post.
Re: Monitor Input voltage on Netonix switch with SNMP
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
ryan.gernaat
- Posts: 5
- Joined: Mon Jun 15, 2015 4:25 pm
Re: Monitor Input voltage on Netonix switch with SNMP
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.
(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.
You do not have the required permissions to view the files attached to this post.
Re: Monitor Input voltage on Netonix switch with SNMP
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:As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
ryan.gernaat
- Posts: 5
- Joined: Mon Jun 15, 2015 4:25 pm
Re: Monitor Input voltage on Netonix switch with SNMP
That did the trick! Thanks so much for the help cdienger!!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Monitor Input voltage on Netonix switch with SNMP
Great!ryan.gernaat wrote:That did the trick! Thanks so much for the help cdienger!!!
Locking thread