Could you upload these 2 MIB files?
FORTINET-FORTIGATE-MIB.mib
FORTINET-CORE-MIB.mib
SNMP configuration issue from Nagios XI
Re: SNMP configuration issue from Nagios XI
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
Hi, Uploaded the two mib files.tgriep wrote:Could you upload these 2 MIB files?
FORTINET-FORTIGATE-MIB.mib
FORTINET-CORE-MIB.mib
You do not have the required permissions to view the files attached to this post.
Re: SNMP configuration issue from Nagios XI
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
Delete these 3 files in /usr/share/snmp/mibs
Run the snmpwalk command and upload the walk.txt file and the 2 files in this folder.
/var/lib/net-snmp/mib_indexes
Code: Select all
FORTINET-CORE-MIB.mib
FORTINET-FORTIGATE-MIB.mib
FORTINET-MIB-280.mib
/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
Hi Tgriep,tgriep wrote:Delete these 3 files in /usr/share/snmp/mibsRun the snmpwalk command and upload the walk.txt file and the 2 files in this folder.Code: Select all
FORTINET-CORE-MIB.mib FORTINET-FORTIGATE-MIB.mib FORTINET-MIB-280.mib
/var/lib/net-snmp/mib_indexes
[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);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
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.
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
Hi Tgriep,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.
Thanks a lot for your help
Regards,
Ram.