Discussion:
conent match for monitoring web application
(too old to reply)
smeeta
2008-03-03 07:36:00 UTC
Permalink
Hi,
i want to monitor a particular web method.
I want to monitor the content match for the site.
Like my PING method that I am monitoring, gives the response as an xml block.
<?xml version="1.0" encoding="utf-8" ?>
- <PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>

for monitoring i tried with the following:
•If I use DoesNotMatchRegularExpression criteria with:
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
My web site health should be healthy. But it’s showing critical.

•Then I used the criteria MatchesRegularExpression with
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
In this case my web site state is healthy as expected.

<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>


•Now if I try with MatchesRegularExpression with
“<SkDbStatus>Failure</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
Its health should be critical as it’s not matching. But it’s still healthy.

The second case that I tried with is as follows:
•I changed some settings on the site itself so that it’s giving the response
as

<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Failure</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>

And tried with:
MatchesRegularExpression with
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”

I am surprised that the state is still healthy instead of critical.

can anyone please help me inthis issue...

Thanks,
Smeeta
Thomas CR
2008-03-12 20:02:00 UTC
Permalink
I am not sure what you really want, it looks like you are using Ops07 ?

I can give an script to check an webpage for at specific string ?
--
BR
Thomas CR
Post by smeeta
Hi,
i want to monitor a particular web method.
I want to monitor the content match for the site.
Like my PING method that I am monitoring, gives the response as an xml block.
<?xml version="1.0" encoding="utf-8" ?>
- <PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
My web site health should be healthy. But it’s showing critical.
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
In this case my web site state is healthy as expected.
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Failure</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
Its health should be critical as it’s not matching. But it’s still healthy.
•I changed some settings on the site itself so that it’s giving the response
as
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Failure</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
I am surprised that the state is still healthy instead of critical.
can anyone please help me inthis issue...
Thanks,
Smeeta
smeeta
2008-03-13 05:51:00 UTC
Permalink
Hi Thomas,
i am using Ops07 to monitor ping() method of my web application. i am
using content match criteria with does not match regular expression
condition. but it's not giving me expected result.
can you please provide the script that yuo are talking about.

Thanks,
Smeeta
Post by Thomas CR
I am not sure what you really want, it looks like you are using Ops07 ?
I can give an script to check an webpage for at specific string ?
--
BR
Thomas CR
Post by smeeta
Hi,
i want to monitor a particular web method.
I want to monitor the content match for the site.
Like my PING method that I am monitoring, gives the response as an xml block.
<?xml version="1.0" encoding="utf-8" ?>
- <PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
My web site health should be healthy. But it’s showing critical.
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
In this case my web site state is healthy as expected.
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Failure</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
Its health should be critical as it’s not matching. But it’s still healthy.
•I changed some settings on the site itself so that it’s giving the response
as
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Failure</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
I am surprised that the state is still healthy instead of critical.
can anyone please help me inthis issue...
Thanks,
Smeeta
Thomas CR
2008-03-17 10:06:01 UTC
Permalink
output = ""
With CreateObject("MSXML2.XMLHTTP")
.open "GET", "http://URL to check", False
.send

output = .responseText
End With

'Checks if the string exits

If InStr(output, "String to search for") Then
True.......
Else
False ......
End If
--
BR
Thomas CR
Post by smeeta
Hi Thomas,
i am using Ops07 to monitor ping() method of my web application. i am
using content match criteria with does not match regular expression
condition. but it's not giving me expected result.
can you please provide the script that yuo are talking about.
Thanks,
Smeeta
Post by Thomas CR
I am not sure what you really want, it looks like you are using Ops07 ?
I can give an script to check an webpage for at specific string ?
--
BR
Thomas CR
Post by smeeta
Hi,
i want to monitor a particular web method.
I want to monitor the content match for the site.
Like my PING method that I am monitoring, gives the response as an xml block.
<?xml version="1.0" encoding="utf-8" ?>
- <PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
My web site health should be healthy. But it’s showing critical.
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
In this case my web site state is healthy as expected.
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Success</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Failure</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
Its health should be critical as it’s not matching. But it’s still healthy.
•I changed some settings on the site itself so that it’s giving the response
as
<PingSkCwsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://pa.one.microsoft.com/ProductKey/">
<SkDbStatus>Failure</SkDbStatus>
<CwsCertStatus>Success</CwsCertStatus>
<CwsDbStatus>Success</CwsDbStatus>
</PingSkCwsResponse>
“<SkDbStatus>Success</SkDbStatus>.*<CwsCertStatus>Success</CwsCertStatus>.*<CwsDbStatus>Success</CwsDbStatus>”
I am surprised that the state is still healthy instead of critical.
can anyone please help me inthis issue...
Thanks,
Smeeta
Loading...