Brian,

Thank you very much!

We've updated Opsview so the next release will have this fix. 

I've also updated the core nagios plugins, so their next release will have this too:

Thanks,
Ton

On 6 Jul 2010, at 19:39, Brian Landers wrote:

The Nagios-provided check_ifstatus plugin doesn't appear to support
'2c' as the SNMP version (it only accepts 1, 2, 3), which breaks
things if you use the $SNMP_VERSION$ macro in the command line.  A
quick and dirty patch is below (could probably be done better).

--- check_ifstatus.orig 2010-07-06 14:36:21.000000000 -0400
+++ check_ifstatus      2010-07-06 14:36:42.000000000 -0400
@@ -280,7 +280,7 @@
        $status = GetOptions(
                "V"   => \$opt_V, "version"    => \$opt_V,
                "h"   => \$opt_h, "help"       => \$opt_h,
-               "v=i" => \$snmp_version, "snmp_version=i"  => \$snmp_version,
+               "v=s" => \$snmp_version, "snmp_version=s"  => \$snmp_version,
                "C=s" => \$community,"community=s" => \$community,
                "L=s" => \$seclevel, "seclevel=s" => \$seclevel,
                "a=s" => \$authproto, "authproto=s" => \$authproto,
@@ -317,6 +317,8 @@
                $timeout = $TIMEOUT;
        }

+        $snmp_version = 2 if $snmp_version eq '2c';
+
        if ($snmp_version !~ /[123]/){
                $state='UNKNOWN';
                print ("$state: No support for SNMP v$snmp_version yet\n");

B*


--
Brian C Landers
http://www.packetslave.com/
CCIE #23115
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users


Ton Voon
Product Architect



Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK

UK:      +44 (0) 845 057 7887
USA:     +1 866 879 9184
Email:    [email protected]
Skype:   tonvoon
Web:     www.opsview.com

This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to