Issues with check_http service definition

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Issues with check_http service definition

Post 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
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Issues with check_http service definition

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with check_http service definition

Post by lmiltchev »

stecino, let us know if gshergill's suggestion solved your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: Issues with check_http service definition

Post by stecino »

Thanks did the trick!!!
Locked