Add the IP address of the nagios server to nrpe.cfg, for my case my configuration file is located in /usr/local/nagios/etc/nrpe.cfg, if your cfg file is located else where use this command to find find / -name nrpe.cfg Search for the parameter allowed_hosts: append the nagios server ip address.
Tag: nagios
NRPE: Installing the init script
I followed the instruction from this guide. There is a line sudo make install-xinetd which is not suitable for Ubuntu Server 12.04 LTS, the directory /etc/xinet.d is in RedHat/Centos but in Ubuntu the equivalent is /etc/init.d/ The below steps are from this guide.
Installing Nagios
Reference 1: Nagios and Nginx on Ubuntu 12.04 LTS Reference 2: Ubuntu quickstart guide to installing Nagios. Development files and packages libssl-dev is the development files needed for compiling Nagios plugins. Without this you will encounter errors while compiling Nagios plugins. Create user and group Create user and group for nagios, also create another group … Continue reading Installing Nagios
Nagios: It appears as though you do not have permission to view information for any of the hosts you requested…
You have to do configuration in cgi.cfg, my cgi.cfg is located in /usr/local/nagios/etc/cgi.cfg The default user with permission to access is nagiosadmin, but my username is admin. Change all the parameters to the user you set to permit viewing.You can alternatively add user for authorization by using a comma after nagiosadmin. Restart the nagios service … Continue reading Nagios: It appears as though you do not have permission to view information for any of the hosts you requested…