Page 4 of 4

Re: Problem SNMP UNKNOWN

Posted: Tue Dec 19, 2017 1:17 am
by sofiane
I don't know why I don't have "check_snmp" here

Image

and here

Image

However, I installed nagios-snmp-plugins (apt install nagios-snmp-plugins).
And nagios-plugins like that

Code: Select all

cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf /tmp/nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
When I want to install nagios-snmp-plugins here https://sourceforge.net/projects/nagios-snmp/ .

And when I run ./configure, it says :

Code: Select all

configure: error: Could not find net-snmp-config. Please check your net-snmp installation.
SNMP makes me really crazy :x

Re: Problem SNMP UNKNOWN

Posted: Tue Dec 19, 2017 12:40 pm
by sofiane
Solution to have "check_snmp" ?

Re: Problem SNMP UNKNOWN

Posted: Tue Dec 19, 2017 3:13 pm
by tgriep
Here is the link to a KB article for compiling and installing the Nagios Plugins.
https://support.nagios.com/kb/article/n ... e-569.html

Did you install net-snmp-libs package?
That is required to compile the check_snmp plugin. Take a look at the Article for instructions on installing the plugins.

Re: Problem SNMP UNKNOWN

Posted: Wed Dec 20, 2017 2:08 am
by sofiane
I still don't have "check_snmp" in /usr/lib/nagios/plugins/

Edit : I copied/pasted my brother's /usr/lib/nagios/plugins and some snmp services are "OK".

Problem solved

Thanks all

Re: Problem SNMP UNKNOWN

Posted: Wed Dec 20, 2017 11:28 am
by tgriep
The process from the KB article would put the plugins in the /usr/local/nagios/libexec folder so that could be why you did not find it in the other folder.
Copying the plugin from another system solved the issue anyways so is it OK to close this post and lock it up as solved?

Re: Problem SNMP UNKNOWN

Posted: Wed Dec 20, 2017 11:42 am
by sofiane
tgriep wrote:The process from the KB article would put the plugins in the /usr/local/nagios/libexec folder so that could be why you did not find it in the other folder.
Copying the plugin from another system solved the issue anyways so is it OK to close this post and lock it up as solved?
Yes it puts in /usr/local/nagios/libexec but not in /usr/lib/nagios/plugins. I copied check_snmp here

The thread can be closed.