I am trying to monitor website performance through Nagios by doing the following:
in windows.cfg file I have the host already defined (the same host is checking for disk space, etc)
In the same file I have added a service to monitor a website
Code: Select all
define service{
use generic-service
host_name myhostname
service_description HTTP
check_command check_http -H myurl
}
Code: Select all
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
Error: Service check command 'check_http -H myurl' specified in service 'HTTP' for host 'myhostname' not defined anywhere!
Additional Info: I am able to run this command check_http -H myurl from the terminal session and get a response.
I feel that I might have missed defining definition some place and wonder if anyone knows about the missing puzzle ....
Thanks!