Page 5 of 5

Re: SNMP configuration issue from Nagios XI

Posted: Tue Sep 01, 2015 2:06 pm
by tgriep
Could you upload these 2 MIB files?
FORTINET-FORTIGATE-MIB.mib
FORTINET-CORE-MIB.mib

Re: SNMP configuration issue from Nagios XI

Posted: Tue Sep 01, 2015 3:24 pm
by raamardhani7
tgriep wrote:Could you upload these 2 MIB files?
FORTINET-FORTIGATE-MIB.mib
FORTINET-CORE-MIB.mib
Hi, Uploaded the two mib files.

Re: SNMP configuration issue from Nagios XI

Posted: Tue Sep 01, 2015 3:34 pm
by ssax
The snmpwalk command should show all OIDs available (unless you specify an OID) that the device has to offer and because we do not see the OIDs that means the remote device either doesn't support it or isn't configured to allow those OIDs. Your best bet would be to reach out to FORTINET to see if it's possible.

Re: SNMP configuration issue from Nagios XI

Posted: Tue Sep 01, 2015 3:52 pm
by tgriep
Delete these 3 files in /usr/share/snmp/mibs

Code: Select all

FORTINET-CORE-MIB.mib
FORTINET-FORTIGATE-MIB.mib
FORTINET-MIB-280.mib
Run the snmpwalk command and upload the walk.txt file and the 2 files in this folder.
/var/lib/net-snmp/mib_indexes

Re: SNMP configuration issue from Nagios XI

Posted: Wed Sep 02, 2015 1:15 am
by raamardhani7
tgriep wrote:Delete these 3 files in /usr/share/snmp/mibs

Code: Select all

FORTINET-CORE-MIB.mib
FORTINET-FORTIGATE-MIB.mib
FORTINET-MIB-280.mib
Run the snmpwalk command and upload the walk.txt file and the 2 files in this folder.
/var/lib/net-snmp/mib_indexes
Hi Tgriep,

[root@lussvpnagiosxi00 mib_indexes]# ls -ltr /var/lib/net-snmp/mib_indexes
total 760
-rw-r--r--. 1 root root 2270 Sep 2 00:48 0
-rw-------. 1 root root 772771 Sep 2 01:06 walk.txt

Also please find the output of snmpwalk for cpu.

[root@lussvpnagiosxi00 libexec]# ./check_snmp_load.pl -H xx.xx.xx.xx -v 3 -l username -x Authpass -X PrivPass -L sha,aes -p 161 -w 30 -c 40 -T fg
Alarm at 15 + 5
SNMPv3 login
SNMPv3 AuthPriv login : username, sha, aes
Checking OID : .1.3.6.1.4.1.12356.1.8.0
OID returned noSuchObject
Argument "noSuchObject" isn't numeric in printf at ./check_snmp_load.pl line 602.
CPU used 0.0% (<30) : OK
[root@lussvpnagiosxi00 libexec]# ./check_snmp_load.pl -H xx.xx.xx.xx -o ".1.3.6.1.2.1.1.3.0" -v 3 -l username -x Authpass -X PrivPass -L sha,aes -p 161 -w 30 -c 40 -T fg
Unknown option: o
Alarm at 15 + 5
SNMPv3 login
SNMPv3 AuthPriv login : username, sha, aes
Checking OID : .1.3.6.1.4.1.12356.1.8.0
OID returned noSuchObject
Argument "noSuchObject" isn't numeric in printf at ./check_snmp_load.pl line 602.
CPU used 0.0% (<30) : OK



my $load=$$resultat{$cpu_oid{$o_check_type}};
verb("OID returned $load");
# for AS400, divide by 100
if ($o_check_type eq "as400") {$load /= 100; };
# for Net-snmp : oid returned idle time so load = 100-idle.
if ($o_check_type eq "netsc") {$load = 100 - $load; };

Code: Select all

printf("CPU used %.1f%% (",$load);
$exit_val=$ERRORS{"OK"};
if ($load > $o_crit) {
print ">$o_crit) : CRITICAL";
$exit_val=$ERRORS{"CRITICAL"};
} else {
if ($load > $o_warn) {
print ">$o_warn) : WARNING";
$exit_val=$ERRORS{"WARNING"};

Please let me know if some changes needs to be done in code front, thanks.

Re: SNMP configuration issue from Nagios XI

Posted: Wed Sep 02, 2015 9:25 am
by tgriep
I reviewed the SNMP walk output that you provided and it looks like your device doesn't support CPU load.
You will have to talk to the manufacturer to see if it can be upgraded for CPU load.

Re: SNMP configuration issue from Nagios XI

Posted: Wed Sep 02, 2015 10:38 am
by raamardhani7
tgriep wrote:I reviewed the SNMP walk output that you provided and it looks like your device doesn't support CPU load.
You will have to talk to the manufacturer to see if it can be upgraded for CPU load.
Hi Tgriep,

Thanks a lot for your help :)

Regards,
Ram.