Invert Regex
Posted: Thu May 30, 2013 12:24 pm
Linux Distribution and version? CentOS, 2.6.18-308.8.2.el5PAE
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? No
Are you using a proxy? No
Are you using SSL? Yes
Nagios Version? Nagios XI 2012R1.8
Question:
I'm trying to monitor and alert when a phrase shows up on a web page that uses xml using check_http invert regex option; However, I do not know how to go about doing this.
We normally monitor and alert on web page content, so if a particular word is not found = alert. We would like to do the opposite, when if a certain word or phrase IS found, then alert.
I understand I can build it out with the "Website Wizard" in Xi, and then modify it in CCM, but I do not know syntax to use for the $ARG1. Looking to alert if the word "LEAD tools" is found.
Please help.
Thank you,
Eddie
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? No
Are you using a proxy? No
Are you using SSL? Yes
Nagios Version? Nagios XI 2012R1.8
Question:
I'm trying to monitor and alert when a phrase shows up on a web page that uses xml using check_http invert regex option; However, I do not know how to go about doing this.
We normally monitor and alert on web page content, so if a particular word is not found = alert. We would like to do the opposite, when if a certain word or phrase IS found, then alert.
I understand I can build it out with the "Website Wizard" in Xi, and then modify it in CCM, but I do not know syntax to use for the $ARG1. Looking to alert if the word "LEAD tools" is found.
Please help.
Thank you,
Eddie