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
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_ping
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_users
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_http
This is how I fixed the above errors,
Install plugins
sudo apt-get install nagios-plugins
This will install all plugins to /usr/lib/nagios/plugins directory.
Just copy all files starting with check_* to /usr/local/nginx/libexec.
cp /usr/lib/nagios/plugins/check_* /usr/local/nagios/libexec
and wait for nagios to reload/refresh browser window
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.– batman Jul 31 '12 at 05:41check_snmpplugin then? Can you not find it at/usr/lib/nagios/plugins/? – Jeremy Kerr Jul 31 '12 at 06:01nagios3version. There is nothing in/usr/lib/nagios3/. I need to install plugin fornagios3and not innagios(which is also installed in my system). Is there any way I can configure mynagios3to take up plugins from/usr/lib/nagios/plugins/innagios.cfgfile? – batman Jul 31 '12 at 07:16