check_snmp not present in libexec

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.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

check_snmp not present in libexec

Post by and1100 »

Hi,

I am installing a new instance of Nagios and it looks like the installation did not compile and create a check_snmp script. However,
# rpm -qa |grep snmp
net-snmp-libs-5.3.2.2-22.el5_10.1
net-snmp-5.3.2.2-22.el5_10.1

# cat /etc/*release
CentOS release 5.9 (Final)

Nagios and plugin versions:
-rw-r--r-- 1 root root 1798034 Jul 28 13:45 nagios-4.0.7.tar.gz
-rw-r--r-- 1 root root 2659772 Jul 28 13:46 nagios-plugins-2.0.3.tar.gz


Is there something I am missing for a pre-installation check? I was only aware of net-snmp rpm dependency.

Thank you very much.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_snmp not present in libexec

Post by eloyd »

First, you're running newer plugin versions that we are, but significantly older versions of SNMP. We're running plugins 2.0.2 and:

Code: Select all

# rpm -qa |grep snmp
net-snmp-libs-5.5-49.el6_5.1.x86_64
net-snmp-5.5-49.el6_5.1.x86_64
You may want to start with upgrading SNMP libraries.

Second, when you compile the plugins, and you run the ./configure, it should tell you why it's not going to create check_snmp. Look carefully through that output (available in config.log). In our case, it skipped check_snmp because:

Code: Select all

configure:22913: WARNING: Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins
configure:22919: checking for snmpgetnext
configure:22952: result: no
So I'd go look for snmpget if I wanted to have it on our boxes. :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: check_snmp not present in libexec

Post by and1100 »

Hi eloyd,

Thank you for your help. It turns out I was missing net-snmp-utils.

Thank you!
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_snmp not present in libexec

Post by eloyd »

Glad I could help.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked