This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
crechet51
Posts: 24 Joined: Mon Aug 05, 2019 9:41 am
Post
by crechet51 » Fri Aug 16, 2019 3:41 am
Hi,
I have a site http
S , which I need to check with check_http and find a line in it that contains a specific word.
I do:
As I understand it: S - use https instead of http
I get:
Code: Select all
HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string '123' not found on 'https://site.com:443/'
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 16, 2019 6:47 am
it looks like the site you are pointing check_http to has a redirect, it would be easiest to set check_http to follow the redirect with the
-f follow flag
Code: Select all
check_http! -S -s "123" -f follow!
crechet51
Posts: 24 Joined: Mon Aug 05, 2019 9:41 am
Post
by crechet51 » Fri Aug 16, 2019 8:14 am
I set
and I get:
Code: Select all
check_http: Invalid onredirect option - -s
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 16, 2019 8:27 am
You missed the word
follow
crechet51
Posts: 24 Joined: Mon Aug 05, 2019 9:41 am
Post
by crechet51 » Fri Aug 16, 2019 8:48 am
Great! It's works. Thank you.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Aug 16, 2019 8:51 am
crechet51 wrote: Great! It's works. Thank you.
Great!
Locking