Problem SNMP UNKNOWN

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.
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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
Last edited by sofiane on Wed Dec 20, 2017 11:43 am, edited 1 time in total.
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post by sofiane »

Solution to have "check_snmp" ?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem SNMP UNKNOWN

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem SNMP UNKNOWN

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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.
Locked