Config file etc xinetd d cvspserver needs updating
( change it to your server information )############## Windows Host Group ################define host Reload the nagios service sudo service nagios reload and your server should show up under “Hosts” in Nagios: Right now Nagios is just pinging the server, but let’s monitor the server load, Uptime, memory usage, CPU load, and Hard drive space on that server as well.Open your server configuration file and add this information ( again change it to reflect your server )define service define service define service define service Reload the Nagios service sudo service nagios reload and those services should show up under your host now.
we have successfully installed, and configured Nagios.In this tutorial I assume that you are familiar with Linux, preferably Ubuntu, and that you have an Ubuntu server already installed with Internet access, and fully patched.if you haven’t installed the LAMP stack on the server yet, do it now. sudo apt-get update && sudo apt-get install tasksel then install the LAMP server with this command sudo tasksel install lamp-server follow the screen instructions and enter a My SQL password. both with the same addduser nagios sudo addgroup nagios sudo usermod –a –G nagios nagios Let’s install all the dependencies we will need to install Nagios with this command: sudo apt-get install build-essential libgd2-xpm-dev openssl libssl-dev xinetd apache2-utils unzip sendmail Download the latest Nagios tar file from this URL https://here is my entire configuration file for your reference: We will monitor our Linux Host using NPRE.on the Linux host we want to monitor run these commands: refresh the repos sudo apt-get update and then install the nagios plugins and the NPRE server: sudo apt-get install nagios-plugins nagios-nrpe-server lets modify the npre config file to allow our Nagios server to connect to this server sudo nano /etc/nagios/find the line ‘allowed_hosts=127.0.0.0 and add the IP address of your Nagios server so the entire string looks like this ‘allowed_hosts=127.0.0.0,192.168.1.200” save the file and exit.