smeeta
2008-03-03 07:36:00 UTC
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
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