check_xi_service_snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

check_xi_service_snmp

Post 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
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: check_xi_service_snmp

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_xi_service_snmp

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: check_xi_service_snmp

Post by devildog31415 »

urggg... already started new thread, my apologies.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_xi_service_snmp

Post by sreinhardt »

No worries, would you like me to lock this up?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
devildog31415
Posts: 48
Joined: Thu Jun 12, 2014 10:55 am

Re: check_xi_service_snmp

Post by devildog31415 »

please
Locked