User Tools

Site Tools


server_monitoring:nagios

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
server_monitoring:nagios [2010/06/21 22:43] – created 172.26.14.218server_monitoring:nagios [2010/06/21 22:45] 172.26.14.218
Line 4: Line 4:
  
 ====== Installation ====== ====== Installation ======
- 
 Download the latest version of nagios while hot, from http://www.nagios.org/download Download the latest version of nagios while hot, from http://www.nagios.org/download
-<file>$ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz +<code>$ wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz 
 $ cd nagios-3.2.0 $ cd nagios-3.2.0
 $ ./configure $ ./configure
Line 15: Line 14:
 $ make install-commandmode $ make install-commandmode
 $ make install-config $ make install-config
-$ make install-webconf +$ make install-webconf</code
-</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. 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>+<code>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</code>
  
 Download and install plugins  Download and install plugins 
-<file> +<code>$ wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz
-$ wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz+
 $ tar xfz nagios-plugins-1.4.14.tar.gz $ tar xfz nagios-plugins-1.4.14.tar.gz
 $ cd nagios-plugins-1.4.14 $ cd nagios-plugins-1.4.14
-$ ./configure && make && make install  +$ ./configure && make && make install</code>
-</file>+
 Edit the configuration files to add host and services to be monitored: Edit the configuration files to add host and services to be monitored:
-<code>vim /usr/local/nagios/etc/objects/localhost.cfg </code>+<code>vim /usr/local/nagios/etc/objects/localhost.cfg</code>
  
 Check remote services http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat Check remote services http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat
-=== Accessing Nagios ===+====== Accessing Nagios ======
  
----- 
 http://172.26.0.205:4020/nagios/ http://172.26.0.205:4020/nagios/
  
 with  username = "nagiosadmin" and password = "nagios" with  username = "nagiosadmin" and password = "nagios"