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-188.8.131.52 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
sudo ./configure –with-nagios-user=nagiois –with-nagios-group=nagios
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