Website URL Monitor Questions
Posted: Wed Jun 27, 2018 3:06 pm
Hello.
I understand that with a Website URL Monitor, you can specify a string to search for in the content of the web page. So, for example, if it is configured to search for the word 'True' and a match is found, the status will be OK. If not, it will be 'Warning' or 'Critical'? (I haven't tested this yet)
Is it possible to do something a little more complex? We would like to be able to look for a return code in the page such as 2000, 3000, 4000, etc., and perhaps get OK for 2000, Warning for 3000 or Critical for 4000.
I'm not sure it matters, but the page we're monitoring currently returns XML:
SUCCESS is true or false
RETURNCODE is 2000, 3000 or 4000
RETURNMSG is one of the following:
Thank you.
Steve
I understand that with a Website URL Monitor, you can specify a string to search for in the content of the web page. So, for example, if it is configured to search for the word 'True' and a match is found, the status will be OK. If not, it will be 'Warning' or 'Critical'? (I haven't tested this yet)
Is it possible to do something a little more complex? We would like to be able to look for a return code in the page such as 2000, 3000, 4000, etc., and perhaps get OK for 2000, Warning for 3000 or Critical for 4000.
I'm not sure it matters, but the page we're monitoring currently returns XML:
Code: Select all
<LOGINRESULT>
<SUCCESS>true/false</SUCCESS>
<RETURNCODE>2000/3000/4000</RETURNCODE>
<RETURNMSG>message</RETURNMSG>
</LOGINRESULT>
RETURNCODE is 2000, 3000 or 4000
RETURNMSG is one of the following:
Code: Select all
RETURNCODE: 2000 RETURNMSG: "Success" (User found in DB as well as logged into blue)
RETURNCODE: 3000 RETURNMSG: "Failed to get user from EPMCOMM" (Failed to find user in database)
RETURNCODE: 4000 RETURNMSG: "Failed to get Process ID" (Failed to login to blue)
Steve