Page 1 of 1

check_http plugin usage

Posted: Sat Mar 31, 2018 7:42 am
by formher
Hi,

I am trying to setup monitoring for our internal web services http endpoints but I am not sure how to indicate the url in check_http plugin.
I see this example in localhost.cfg file:

Code: Select all

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             HTTP
	check_command			check_http
	notifications_enabled		0
        }
but when I change it to e.g below, and restart the nagios it doesn't even start. where and how should I put the endpoint checks?

Code: Select all

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             HTTP
	check_command			check_http_url!www.google.com
	notifications_enabled		0
        }

Re: check_http plugin usage

Posted: Mon Apr 02, 2018 11:17 am
by scottwilkerson
First we need to see hou you have the command for check_http defined

Then we can help you craft the URL, you do not change the command name, you change the arguments.

https://assets.nagios.com/downloads/nag ... acros.html

Re: check_http plugin usage

Posted: Mon Apr 02, 2018 4:22 pm
by formher
Thank you for responding. I figured out what was problem already.

Re: check_http plugin usage

Posted: Tue Apr 03, 2018 8:38 am
by scottwilkerson
Glad to hear it is resolved