Page 1 of 1

How to check website return code and Text

Posted: Tue Jan 28, 2020 5:04 am
by ibmkenexa
Hi Team,

I need to create a monitor to check return code and content at same time. Please guide me where to specify both. I am using Website URL tool from configuration wizard.

Two conditions need to check at a time from same URL

Conditions:
Response code is 200 && Response Body contains the word UNAVAILABLE

Thank you.

Re: How to check website return code and Text

Posted: Tue Jan 28, 2020 5:36 pm
by mbellerue
Our check_http plugin won't do both the return code and text at the same time. If you have Nagios XI Enterprise, you could use the website wizard to create the standard HTTP check and a Regex Match check, and then tie them together with BPI.

Other than that, you might have to see if you can find a plugin on the Nagios Exchange, which we can help you setup if you find one, or make your own plugin.