Page 1 of 1

Issues with check_http service definition

Posted: Thu Sep 12, 2013 8:46 pm
by stecino
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

Re: Issues with check_http service definition

Posted: Fri Sep 13, 2013 3:51 am
by gshergill
Hi stecino,

The issue is with the following line:

Code: Select all

service_description https://gamepass.nfl.com/nflgp/secure/packages?
The illegal character is the "?", you would need to remove it for the reload to pass.

Code: Select all

service_description https://gamepass.nfl.com/nflgp/secure/packages
Kind Regards,

Gary Shergill

Re: Issues with check_http service definition

Posted: Fri Sep 13, 2013 10:39 am
by lmiltchev
stecino, let us know if gshergill's suggestion solved your problem.

Re: Issues with check_http service definition

Posted: Fri Sep 13, 2013 12:33 pm
by stecino
Thanks did the trick!!!