snmp dont work with nagios "Cannot find module"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: snmp dont work with nagios "Cannot find module"

Post by Jessuzz94 »

How to do this yum list in ubuntu serv?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: snmp dont work with nagios "Cannot find module"

Post by jolson »

Code: Select all

apt --installed list | grep snmp
This should do it.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: snmp dont work with nagios "Cannot find module"

Post by Jessuzz94 »

Shows this
Attachments
snmp1.png
snmp1.png (11.29 KiB) Viewed 4906 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: snmp dont work with nagios "Cannot find module"

Post by jdalrymple »

This looks OK, albeit a bit confusing to the eyes of a CentOS guy it looks like that's the right stuff.

Can you show us the command line that is failing? Are you using the nagios plugin check_snmp, or perhaps some other 3rd party plugin that leverages snmpget? Maybe we need to fiddle with some paths.

Command line?
Output?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: snmp dont work with nagios "Cannot find module"

Post by Jessuzz94 »

I put the command to test the uptime of the switch and doesnt find the mibs, the path that the command shows is /usr/local/share/snmp/mibs, and theres nothing, mibs are in /usr/share/snmp/mibs
Attachments
mibs.png
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: snmp dont work with nagios "Cannot find module"

Post by jdalrymple »

Any reason you can't just do an 'ln -s /usr/share/snmp mibs /usr/local/share/snmp/mibs'?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: snmp dont work with nagios "Cannot find module"

Post by Jessuzz94 »

Because theres no /snmp/mibs/ in /usr/local/share, and i created the dirs to use the command, dont work
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: snmp dont work with nagios "Cannot find module"

Post by jdalrymple »

Are you aware of how `ln -s` works?
Jessuzz94 wrote:Because theres no /snmp/mibs/ in /usr/local/share
You wouldn't want snmp/mibs/, just a dir named snmp. You can then softlink mibs using the command I posted above. If you do this snmp will look back towards /usr/share/snmp/mibs for all of the MIBs.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: snmp dont work with nagios "Cannot find module"

Post by Jessuzz94 »

ln work now, i found in a website that i need to delete some libsnmp packages, and i remove all snmp packages and reinstall snmp and snmpd, looks like if i install snmp from the official page downloading the .tar.gz and compiling, the snmpd fails in the future, so, one big advice is that the first thing that is need is to install snmp and snmp from command. well. that works for me. The ln commnand was required to run fine my snmp with nagios, so very thanks men! i appreciate it :D!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: snmp dont work with nagios "Cannot find module"

Post by jdalrymple »

Glad you got it sorted - I'm going to go ahead and lock the topic.

Let us know if you have any other issues we can help with!
Locked