I set up a Nagios server on a CentOS 7 VM (Virtual Machine):
sudo yum install epel-release
sudo yum install nrpe
sudo yum install nagios
By default it sets up some basic checks for localhost. When I checked the Nagios site at http://127.0.0.1/nagios/, I found that even PING was critical:
(No output on stdout) stderr: execvp(/usr/lib64/nagios/plugins/check_ping, ...) failed. errno is 2: No such file or directory
I checked the contents of the plugins directory:
# ls /usr/lib64/nagios/plugins
eventhandlers negate urlize utils.sh
Sure enough, the usual suspects are not there. E.g.:
- check_load
- check_ping
- check_disk
- check_http
- check_procs
Eventually I stumbled onto the following document, /usr/share/doc/nagios-plugins-2.0.3/README.Fedora:
Fedora users
Nagios plugins for Fedora have all been packaged separately. For
example, to isntall the check_http just install nagios-plugins-http.All plugins are installed in the architecture dependent directory
/usr/lib{,64}/nagios/plugins/.
I installed some of the plugins following that convention:
sudo yum install nagios-plugins-load
sudo yum install nagios-plugins-ping
sudo yum install nagios-plugins-disk
sudo yum install nagios-plugins-http
sudo yum install nagios-plugins-procs
Now the the corresponding plugins exist in /usr/lib64/nagios/plugins, and Nagios reports OK for those checks on localhost.