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
Issues with check_http service definition
Re: Issues with check_http service definition
Hi stecino,
The issue is with the following line:
The illegal character is the "?", you would need to remove it for the reload to pass.
Kind Regards,
Gary Shergill
The issue is with the following line:
Code: Select all
service_description https://gamepass.nfl.com/nflgp/secure/packages?Code: Select all
service_description https://gamepass.nfl.com/nflgp/secure/packagesGary Shergill
Re: Issues with check_http service definition
stecino, let us know if gshergill's suggestion solved your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issues with check_http service definition
Thanks did the trick!!!