Re: check works until it is scheduled and then it fails
Posted: Fri Feb 19, 2016 3:22 pm
Go and edit that service and add single quotes around the data in the $ARG5$ field. Save it out and see if that helps.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
/_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252FCode: Select all
'/_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F'Code: Select all
nagios@dira4avbaza /usr/local/nagios/libexec> /usr/local/nagios/libexec/check_website -w 1500 -c 4000 -t 6000 -s -u '/_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F' portal.dir.texas.gov
HTTPS OK: 55ms - https://portal.dir.texas.gov/_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F|time=55ms;1500;4000;0;
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_website -w 1500 -c 4000 -t 6000 -s -u \'/_layouts/15/Sp.Login.Custom/Login.aspx\?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F portal.dir.texas.gov
OUTPUT: HTTPS UNKNOWN: N/A - https://portal.dir.texas.gov'/_layouts/15/Sp.Login.Custom/Login.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252FCode: Select all
HTTPS OK: 288ms - https://portal.dir.texas.gov/_layouts/15/Sp.Login.Custom/Login.aspx?ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F