Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

agentdavidson

Reviews(3)
byagentdavidson, January 16, 2022
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.
byagentdavidson, May 8, 2017
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
byagentdavidson, April 12, 2017
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=%s\n",
+$perfdata = sprintf("| SessActive=%s, SessMax=%s, SessFail=%s\n",

Thanks