check_http plugin usage
Posted: Sat Mar 31, 2018 7:42 am
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:
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?
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
}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
}