Posts

Showing posts from July, 2013

How to add check_http as a service in Nagios Monitoring using NRPE

Before we add the check_http service to check status of HTTP Server on a remote server , it is assumed that we already have a running Nagios Server . If this is not done yet , please configure a Nagios Server by following the steps from the link below.      

http://zaman4linux.blogspot.in/2012/04/configuring-nagios-to-monitor-services.html


                                            REMOTE SERVER  
1. On the Remote host which  we want to monitor for HTTP service , execute  the following steps.

$ /usr/local/nagios/libexec/check_http  -I 
HTTP OK: HTTP/1.1 200 OK - 40321 bytes in 0.090 second response time |time=0.090395s;;;0.000000 size=40321B;;;0


If the above command works fine for you , update nrpe.cfg with the check_http plugin

# vim /usr/local/nagios/etc/nrpe.cfg

command[check_http]=/usr/local/nagios/libexec/check_http -I 192.168.2.142


                                     MONITORING SERVER

1. Execute the following command and look for a response from the remote server.

# /usr/local/nagios…

How to reset MySQL 'root password.

Step 1 .
        Stop MySQL database using the following command