Issues with check_http service definition
Posted: Thu Sep 12, 2013 8:46 pm
Hi all This is what what I have
define service{
use generic-service
host_name gamepass.nfl.com
service_description https://gamepass.nfl.com/nflgp/secure/packages?
check_command check_https!6!8!'/nflgp/secure/packages?wl=JAC&team=JAC&nlrefer=JAC'
notifications_enabled 1
}
when trying to reloading nagios I am seeing
Error: The description string for service 'https://gamepass.nfl.com/nflgp/secure/packages?' on host 'gamepass.nfl.com' contains one or more illegal characters.
when I run this explicitly, and bellow is following the check_https command definition
[root@stageutil01 libexec]# ./check_http -S -H gamepass.nfl.com -w 6 -c 8 -u '/nflgp/secure/packages?wl=JAC&team=JAC&nlrefer=JAC'
HTTP OK: HTTP/1.1 200 OK - 8616 bytes in 0.460 second response time |time=0.460193s;6.000000;8.000000;0.000000 size=8616B;;;0
How do I setup URI in the service definition so that nagios reload takes it
define service{
use generic-service
host_name gamepass.nfl.com
service_description https://gamepass.nfl.com/nflgp/secure/packages?
check_command check_https!6!8!'/nflgp/secure/packages?wl=JAC&team=JAC&nlrefer=JAC'
notifications_enabled 1
}
when trying to reloading nagios I am seeing
Error: The description string for service 'https://gamepass.nfl.com/nflgp/secure/packages?' on host 'gamepass.nfl.com' contains one or more illegal characters.
when I run this explicitly, and bellow is following the check_https command definition
[root@stageutil01 libexec]# ./check_http -S -H gamepass.nfl.com -w 6 -c 8 -u '/nflgp/secure/packages?wl=JAC&team=JAC&nlrefer=JAC'
HTTP OK: HTTP/1.1 200 OK - 8616 bytes in 0.460 second response time |time=0.460193s;6.000000;8.000000;0.000000 size=8616B;;;0
How do I setup URI in the service definition so that nagios reload takes it