Plugin "check_snmp_uptime.pl" with Windows

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
mpedros
Posts: 27
Joined: Wed Jan 10, 2018 6:30 pm
Location: Buenos Aires, Argentina

Plugin "check_snmp_uptime.pl" with Windows

Post by mpedros »

Hi:

When I use the "check_snmp_uptime.pl" plugin against a Linux works correctly:

Code: Select all

[root@localhost libexec]# ./check_snmp_uptime.pl -H 192.168.20.62 -C test
SNMP uptime: 0 days, 0 hours, 28 minutes, 18 seconds : WARNING
... but when I consult a Windows, it always gives me the following error:

Code: Select all

[root@localhost libexec]# ./check_snmp_uptime.pl -H 192.168.10.100 -C testwin
Argument "noSuchObject" isn't numeric in numeric le (<=) at ./check_snmp_uptime.pl line 394.
SNMP uptime: 0 days, 0 hours, 0 minutes, noSuchObject seconds : CRITICAL
Always returns as Uptime value: 0 days, 0 hours, 0 minutes. Has someone happened to?

Regards,
Martin Pedros
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin "check_snmp_uptime.pl" with Windows

Post by scottwilkerson »

Where did you get this plugin?

Are you sure your Windows server responds to SNMP requests for the OID it is requesting?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked