SNMP configuration issue from Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP configuration issue from Nagios XI

Post by tgriep »

Could you upload these 2 MIB files?
FORTINET-FORTIGATE-MIB.mib
FORTINET-CORE-MIB.mib
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: SNMP configuration issue from Nagios XI

Post 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.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP configuration issue from Nagios XI

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP configuration issue from Nagios XI

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: SNMP configuration issue from Nagios XI

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SNMP configuration issue from Nagios XI

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: SNMP configuration issue from Nagios XI

Post 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.
Locked