check_snmp_win is getting a text version number

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
tmhudg
Posts: 4
Joined: Thu Oct 13, 2011 12:41 pm

check_snmp_win is getting a text version number

Post by tmhudg »

Hello,

Just starting with Nagios. I've got the quick start working and was playing with trying to get SNMP data back from a Windows box. To start out, I'm just running check_snmp_win.pl from the command line. Here's what I get

Code: Select all

 ./check_snmp_win.pl -H 10.x.x.x -C Greenplum -n dns
Argument "v6.0.1" isn't numeric in numeric lt (<) at ./check_snmp_win.pl line 259.
Argument "v6.0.1" isn't numeric in numeric lt (<) at ./check_snmp_win.pl line 317.
1 services active (matching "dns") : OK
So it looks like a version value coming back fron Net::SNMP->Version is text rather than a number and a couple of numeric compares are failing. Any idea why this is? check_snmp_win.pl is pretty old at this point - has the format of the version changed since it was written?

I *did* search for this message and found nothing.

Thanks for any insight,

Tom
Locked