dangmocrang / check_idrac

A script to monitoring DELL IDRAC via SNMP
Other
74 stars 53 forks source link

your MIB may out of dated! #33

Open F2N opened 7 years ago

F2N commented 7 years ago

Hello,

Thank you for your wonderful plugin, with the latest version I keep getting this error :

your MIB may out of dated!

I downloaded the lastest MIBs from Dell, I'm running a Dell R730 but I get the same error no matter what I try :

./idrac_2.2rc4 -H 192.168.1.24 -v2c -c public -m /root/tools/check_idrac-master/mymibs/mibs/iDRAC-SMIv2.mib

Here are my specs :

FreeBSD nagios 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

root@nagios:~/tools/check_idrac-master # python --version Python 2.7.13

Can you please help me out with this.

dangmocrang commented 7 years ago

Hi,

What is your idrac version?

Dung

Sent from my Windows 10 phone

From: F2N Sent: Friday, February 3, 2017 1:40 AM To: dangmocrang/check_idrac Cc: Subscribed Subject: [dangmocrang/check_idrac] your MIB may out of dated! (#33)

Hello, Thank you for your wonderful plugin, with the latest version I keep getting this error : your MIB may out of dated! I downloaded the lastest MIBs from Dell, I'm running a Dell R730 but I get the same error no matter what I try : ./idrac_2.2rc4 -H 192.168.1.24 -v2c -c public -m /root/tools/check_idrac-master/mymibs/mibs/iDRAC-SMIv2.mib Can you please help me out with this. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

F2N commented 7 years ago

Hello,

Sorry for the delay here is my iDrac version :

iDrac 8 (but I've tried it on version 7 with not much success)

And here is my MIBs version downloaded from Dell official website :

Dell-OM-MIBS-840_A00.zip

dangmocrang commented 7 years ago

Hi,

It's strange, that message means the MIB is not for your idrac, could you please try with my MIB file included on repo?

Regards, Dung

On Fri, Feb 3, 2017 at 4:18 PM, F2N notifications@github.com wrote:

Hello,

Sorry for the delay here is my iDrac version :

iDrac 8 (but I've tried it on version 7 with not much success)

And here is my MIBs version downloaded from Dell official website :

Dell-OM-MIBS-840_A00.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dangmocrang/check_idrac/issues/33#issuecomment-277200530, or mute the thread https://github.com/notifications/unsubscribe-auth/AFszt5TQjl_w5H65nOMiYoZLS85ZazWdks5rYvDcgaJpZM4L1enX .

F2N commented 7 years ago

I did, I already tried the default MIB, that when I had the message.

dangmocrang commented 7 years ago

It that so, I’m so sorry that I don’t know why it won’t work. Is there any chance that you are query wrong device or anything that prevent the snmp traffic?

Regards, Dung

Sent from my Windows 10 phone

From: F2N Sent: Friday, February 3, 2017 11:01 PM To: dangmocrang/check_idrac Cc: Nguyen Duc Trung Dung; Comment Subject: Re: [dangmocrang/check_idrac] your MIB may out of dated! (#33)

I did, I already tried the default MIB, that when I had the message. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

NeverUsedID commented 7 years ago

HI, had the same problem. Fixed it by using the mibs from here: iDrac Mibs. Looks like they are a lot newer.

its the DCMIB72.zip - Maybe there are even newer version (dcmibVERSION.zip)

F2N commented 7 years ago

@NeverUsedID Ok, I'll try this out and make you updated, thank you.

jeroenvermeulen commented 7 years ago

Newest version I could find: http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=YKG8D Dell-OM-MIBS-850_A00.zip worked for our iDRAC 8 on R430. We unzipped it and moved the MIB files to /usr/share/mibs/site/. Now we can do:

./idrac_2.2rc4 -v 2c -c secret -H 10.10.10.11 -m /usr/share/mibs/site/iDRAC-SMIv1.mib

Probably indeed the MIB file included with this repo should be updated.

andrewkew-aft commented 7 years ago

Hi, I am having the same issue here, but maybe I am running this incorrectly.

I have taken the latest plugin python script from your github repo, downloaded the latest MIB from the Dell website as said above and am running the script on my Nagios server this is my result

 ~]$ /usr/local/nagios/libexec/idrac_2.2rc4 -v2c -c secret -H 89.30.*.* -m iDRAC-SMIv1.mib
your MIB may out of dated!
error - No log handling enabled - turning on stderr logging. Cannot find module (iDRAC-SMIv1.mib): At line 1 in (none). powerSupplyTable: Unknown Object Identifier (Sub-id not found: (top) -> powerSupplyTable)

I am running iDrac 8 Dell PowerEdge R630 Nagios XI 5.4.0

Any ideas what the issue could be? I can defo reach that host from my Nagios server

~]$ ping 89.30.. PING 89.30.. (89.30..) 56(84) bytes of data. 64 bytes from 89.30..: icmp_seq=1 ttl=46 time=12.2 ms 64 bytes from 89.30..: icmp_seq=2 ttl=46 time=12.4 ms

NeverUsedID commented 7 years ago

Specify the path to the mib if its not working without: /usr/local/nagios/libexec/idrac_2.2rc4 -v2c -c secret -H 89.30.*.* -m /path/to/iDRAC-SMIv1.mib

ghost commented 6 years ago

Im having the same issue.

/tmp/check_idrac/idrac_2.2rc4 -v 2c -c public -H 10.x.x.x -m /usr/share/snmp/mibs/iDRAC-SMIv1.mib your MIB may out of dated! error - MIB search path: /home/jupi/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp. Cannot find module (SNMPv2-SMI): At line 39 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 0 (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 1023 (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. . (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 0 (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 512 (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 25 (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 143 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 143 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. { (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Bad operator ((): At line 147 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. powerSupplyTable: Unknown Object Identifier (Sub-id not found: (top) -> powerSupplyTable)

with the newer Version i get this

https://pastebin.com/ukffdTfm

PowerEdge R730 + Version 8 & Debian stretch How to fix that?

ozid commented 6 years ago

Im having the same issue.

/tmp/check_idrac/idrac_2.2rc4 -v 2c -c public -H 10.x.x.x -m /usr/share/snmp/mibs/iDRAC-SMIv1.mib your MIB may out of dated! error - MIB search path: /home/jupi/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp. Cannot find module (SNMPv2-SMI): At line 39 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 0 (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 1023 (is a reserved word): At line 104 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. . (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 105 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 0 (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 512 (is a reserved word): At line 106 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 107 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Textual convention doesn't map to real type (DisplayString): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. SIZE (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. 25 (is a reserved word): At line 129 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 143 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. : (is a reserved word): At line 143 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. { (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ( (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. ) (is a reserved word): At line 145 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. Bad operator ((): At line 147 in /usr/share/snmp/mibs/iDRAC-SMIv1.mib. powerSupplyTable: Unknown Object Identifier (Sub-id not found: (top) -> powerSupplyTable)

with the newer Version i get this

https://pastebin.com/ukffdTfm

PowerEdge R730 + Version 8 & Debian stretch How to fix that?

Hello, exact same problem for me on iDRAC 9, someone get a solution?

ozid commented 6 years ago

Problem solved by installing: "snmp-mibs-downloader"

jeroenvermeulen commented 5 years ago

Thanks @ozid! Installing snmp-mibs-downloader indeed solved this problem for me, in combination with my answer: https://github.com/dangmocrang/check_idrac/issues/33#issuecomment-304978574

log1-c commented 4 years ago

I think it should be mentioned somewhere in the manual that the snmp-mibs-downloader is needed in order to run the script correctly. I'm quite sure it is not the package itself that is needed, but the other MIBs that are installed when installting the snmp-mibs-downloader package.