Page 1 of 1

check_xi_service_snmp

Posted: Wed Jul 02, 2014 10:23 am
by devildog31415
I did an SNMP walk and setup a device (it found the OID that I wanted to monitor, I think).
I installed the MIB via the XI GUI and checked "process trap"
Found it in the list called ROOMALERT3E
Error I get is: External command error: Cannot find module (ROOMALERT3E): At line 1 in (none)

I ssh'd to the server and can't run:
./check_snmp -H 172.24.52.130 -p 161 -o enterprises.20916.1.9.1.1.1.2.0 -C public -P 1 -l "Temperature" -u "F" -m ROOMALERT3E.MIB
I get the following:
External command error: Cannot find module (ROOMALERT3E.MIB): At line 0 in (none)

If I remove "-m ROOMALERT3E.MIB" it works fine (BTW: I also tried "-m ROOMALERT3E", same problem


./check_snmp -H 172.24.52.130 -p 161 -o enterprises.20916.1.9.1.1.1.2.0 -C public -P 1 -l "Temperature" -u "F" -w 7100 -c 7500
SNMP OK - Temperature 6607 F | Temperature=6607F;7100;7500;

./check_snmp -H 172.24.52.130 -p 161 -o enterprises.20916.1.9.1.1.1.2.0 -C public -P 1 -l "Temperature" -u "F" -w 6000 -c 7500
SNMP WARNING - Temperature *6652* F | Temperature=6652F;6000;7500;

./check_snmp -H 172.24.52.130 -p 161 -o enterprises.20916.1.9.1.1.1.2.0 -C public -P 1 -l "Temperature" -u "F" -w 6000 -c 6100
SNMP CRITICAL - Temperature *6652* F | Temperature=6652F;6000;6100;


I'm running: Nagios XI 2014R1.2

Guidance please

Re: check_xi_service_snmp

Posted: Wed Jul 02, 2014 1:31 pm
by devildog31415
I changed: enterprises.20916.1.9.1.1.1.2.0
to: .1.3.6.1.4.1.20916.1.9.1.1.1.2.0

Which fixes the problem BUT that implies to me that RFC1155-SMI (which was preloaded in nagiosxi) isn't referenced right?

Since it's working I have a follow up question about the output format but I am going to work on it and then treat it as a separate thread once I'm stuck.

Thank you.

Re: check_xi_service_snmp

Posted: Wed Jul 02, 2014 1:44 pm
by sreinhardt
Have you tried passing the full path to your mib? Also what permissions are on that mib presently?
edit: per your second post, I if anything, this is likely an issue with snmpget more than your mibs, which are tricky little buggers themselves. You are welcome to just continue with this post considering it is for the same plugin and issue.

Re: check_xi_service_snmp

Posted: Wed Jul 02, 2014 1:59 pm
by devildog31415
urggg... already started new thread, my apologies.

Re: check_xi_service_snmp

Posted: Wed Jul 02, 2014 2:19 pm
by sreinhardt
No worries, would you like me to lock this up?

Re: check_xi_service_snmp

Posted: Wed Jul 02, 2014 2:22 pm
by devildog31415
please