Is a Url content check with more than one redirect possible?
Posted: Tue Apr 21, 2020 4:56 am
Hi - Relatively new to NagiosXI and strugling with one url check. Details are:
NagiosXI 5.6.13
(nagios-plugins 2.2.1)
Using the Website URL check to monitor a url and match content this works fine on all the urls that only have one redirect. Redirect is set to follow and content match to look for text found on a terms and conditions page. If I run the check, it fails and the page appears to look for the text in is is actually the 1st redirect of 2 to the actual site (No idea why it was set this way it's somebody elses creation).
So without posting the url in here for privacy reasons is there any way to force the check_xiservice_http to hang in there until it gets to the page it needs to read the content from?
the check in $ARG1$ looks like the below if that helps
-s "This website does" -f follow -I x.x.x.x -u "/hxxxx/xxx-xxx-game" -S --sni -p 443
the error I get looks like the below (makes no difference if I use port 80 on the end or 443)
HTTP CRITICAL: HTTP/1.1 200 OK - string 'This website does' not found on 'http://www.xxxxx.com:80/hxxxx/404Redire ... x.com/xxxx' - 11847 bytes in 0.360 second res
NagiosXI 5.6.13
(nagios-plugins 2.2.1)
Using the Website URL check to monitor a url and match content this works fine on all the urls that only have one redirect. Redirect is set to follow and content match to look for text found on a terms and conditions page. If I run the check, it fails and the page appears to look for the text in is is actually the 1st redirect of 2 to the actual site (No idea why it was set this way it's somebody elses creation).
So without posting the url in here for privacy reasons is there any way to force the check_xiservice_http to hang in there until it gets to the page it needs to read the content from?
the check in $ARG1$ looks like the below if that helps
-s "This website does" -f follow -I x.x.x.x -u "/hxxxx/xxx-xxx-game" -S --sni -p 443
the error I get looks like the below (makes no difference if I use port 80 on the end or 443)
HTTP CRITICAL: HTTP/1.1 200 OK - string 'This website does' not found on 'http://www.xxxxx.com:80/hxxxx/404Redire ... x.com/xxxx' - 11847 bytes in 0.360 second res