Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Thursday, June 13, 2013

Nagios: Unable to check HTTPS service using check_http

Nagios is a powerful IT infrastructure monitoring solution available in market. It provides monitoring graphically. I installed Nagios Core on a server and after the completion of nagios configuration, I checked that Nagios is not able to ping the host on which https is enabled. 



Nagios: Unable to check HTTPS service using check_http

After spending lot of time in this issue, I came up with a solution. I just need to make change in two configuration files and the problem is resolved.
1. Add one service in commands.cfg file: Add the below command in commands.cgf file (/usr/local/nagios/etc/objects)
      define command { 
            command_name       check_https 
            command_line       $USER1$/check_http -H $HOSTADDRESS$ -S -e HTTP 
      }
2. Change service in host configuration file: Open the host configuration file in any desired editor and search check_http service in  configuration file. Then change the check_command from "check_http" to "check_https". Now save these changes and restart nagios service.
      define service{
            use                     local-service ; Name of service template to use
            host_name               host_name
            service_description     HTTP
            check_command           check_https
            notifications_enabled   0
      }

and after restarting the nagios services the issue was resolved.


Nagios: Unable to check HTTPS service using check_http
Hurry..

No comments:

Post a Comment