I have installed Nagios in my ec2 server. Now I want to install check_snmp
plugin. I found that this is not available in :
/usr/local/nagios/libexec
I tried :
sudo apt-get install nagios-plugins-snmp
But I'm getting :
E: Unable to locate package nagios-plugins-snmp
How can I install the plugins?
Thanks in advance.
This is in the
nagios-plugins-standard
package. I'd suggest installing thenagios-plugins
package, as that will install it, as well as thenagios-plugins-basic
package:Then, your SNMP plugin will be available in:
On your monitoring server:
All standarded plugins will be installed in
Not in
Please see Nagios - Official Ubuntu Documentation in the section of "Configuration Overview"
Then in
you will find snap.cfg, which assigns each command_line a correspondent command_name.
For example
I had this same issue and found the problem.
The point is that when you have installed the
nagios-plugins
, you shouldn't hadnet-snmp
andnet-snmp-utils
packages installed at all. And thats whycheck_snmp
were not compiled.For fix this, you have to install
net-snmp
andnet-snmp-utils
and after that compile/installnagios-plugins
again.FYI: copy paste from another forum Ahmed
If you install nagios 4 following this tutorial, then your installation directory is
/usr/local/nagios
.On starting nagios and browsing to nagios admin portal, you could see the following errors
This is how I fixed the above errors,
Install plugins
This will install all plugins to
/usr/lib/nagios/plugins
directory.Just copy all files starting with
check_*
to/usr/local/nginx/libexec
.and wait for nagios to reload/refresh browser window