NAGIOS check_snmp missing

Hi all, today i made an initial test on snmp monitoring from nagios. But first of all i looked that something missing.

After initial configuration by NConf of check_snmp service  Nagios reports on the hosts configured the error .. missing plugin ..

After some hard working with NConf configuration( test with some command arguments on some OIDs ) i’ve checked out my libexec directory with all plugins and discovered that the initial installation of plugins missed something.

I cannot get check_snmp to appear in my libexec.

I have resolved the issue by installing these packages  (in this order)

0. sudo apt-get install snmp-mibs-downloader

1. sudo apt-get install libperl-dev
2. sudo apt-get install libnet-snmp-perl
3. sudo apt-get install libsnmp-session-perl
4. downloaded net-snmp-5.4.2.1 from net-snmp.sourceforge.net, then ./configure, make and finally make install

after that, downloaded nagios-plugins-1.4.11.tar.gz from sourceforge.net, followed by
sudo tar xvzf nagios-plugins-1.4.11.tar.gz
cd nagios-plugins-1.4.11
sudo ./configure –with-nagios-user=nagiois –with-nagios-group=nagios
sudo make
sudo make install

After that i have tested all  executing /usr/lib/nagios/libexec/check_snmp -H x.x.x.x -C public -o sysUpTime.0

If there is some problems with a library snmp that report an error of missed file libnetsnmp check this out:

cp /usr/local/lib/libnetsnmp.so.30 file in to /usr/lib

 

Cheers,

 

D.

~ di diegotech su marzo 14, 2012.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

 
%d blogger cliccano Mi Piace per questo: