User Tools

Site Tools


server_monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
server_monitoring [2009/11/17 12:21] 172.26.0.166server_monitoring [2009/11/19 14:51] 172.26.0.166
Line 78: Line 78:
 $ cd nagios-3.2.0 $ cd nagios-3.2.0
 $ ./configure $ ./configure
-$ make all </file>+$ make all 
 $ useradd nagios $ useradd nagios
 $ make install $ make install
Line 85: Line 85:
 $ make install-config $ make install-config
 $ make install-webconf $ make install-webconf
 +</file>
 === Configuration === === Configuration ===
  
 ---- ----
 +Running the following command will create a new file called htpasswd.users in the /usr/local/nagios/etc directory. It will also create an username/password entry for nagiosadmin. You will be asked to provide a password that will be used when nagiosadmin authenticates to the web server.
 +<code>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin </code>
 +
 +Download and install plugins 
 +<file>
 +$ wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz
 +$ tar xfz nagios-plugins-1.4.14.tar.gz
 +$ cd nagios-plugins-1.4.14
 +$ ./configure && make && make install 
 +</file>
 +Edit the configuration files to add host and services to be monitored:
 +<code>vim /usr/local/nagios/etc/objects/localhost.cfg </code>
 +
 +Check remote services http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat
 +=== Accessing Nagios ===
 +
 +----
 +http://172.26.0.205:4020/nagios/
 +
 +with  username = "nagiosadmin" and password = "nagios"
 +