Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@agentdavidson
Favorites0
Views
Projects0
Hi Willix - I couldn't get the -net flag to work but I updated the $oid_engineTime as follows:- -my $oid_engineTime = '1.3.6.1.6.3.10.2.1.3'; # SNMP-FRAMEWORK-MIB +my $oid_engineTime = '1.3.6.1.6.3.10.2.1.3.0'; # SNMP-FRAMEWORK-MIB It appears to need the dot zero on the end of it. Cheers Matt
Reviewed 8 years ago
I found I had to add a 'space' in the perfdata print statement in order for pnp4nagios to process the perfdata correctly -$perfdata = sprintf("| SessActive=%s,SessMax=%s,SessFail=%sn", +$perfdata = sprintf("| SessActive=%s, SessMax=%s, SessFail=%sn", Thanks
I've been using the script for many years across various networking devices successfully. However I tried it against a new Foritgate 100F Firewall (FortiOS 6.4.7) and it wouldn't find any of the interfaces by name. It would just return: ERROR : Unknown interface snmpwalk revelled that the interface names were under ifName OID 1.3.6.1.2.1.31.1.1.1.1 rather than ifDescr OID 1.3.6.1.2.1.2.2.1.2 So I made a copy of the script and changed the $descr_table variable to this: my $descr_table = '1.3.6.1.2.1.31.1.1.1.1'; And bingo. Now it's working with this Fortigate.
Reviewed 4 years ago