Hi,
we want to check two URLs.
Only one URL should be UP.
If both are UP or both are DOWN it's a failure and we want an alarm.
Hostmonitor should alarm if:
URL1 AND URL2 is UP
OR
URL1 AND URL2 is DOWN
Now I have the following:
A simple URL Check for each URL.
And a "dummy" check (Ping to localhost) for comparing SimpleStatus of both URL Checks with following expressions:
Use Warning status if:
'%::URL: URL1::SimpleStatus%'=='UP'
and
'%::URL: URL2::SimpleStatus%'=='UP'
xor
'%::URL: URL1::SimpleStatus%'=='DOWN'
and
'%::URL: URL2::SimpleStatus%'=='DOWN'
Use Normal status if:
'%::URL: URL1::SimpleStatus%'=='UP'
and
'%::URL: URL2::SimpleStatus%'=='DOWN'
xor
'%::URL: URL1::SimpleStatus%'=='DOWN'
and
'%::URL: URL2::SimpleStatus%'=='UP'
I don't get the desired result.
What am I doing wrong?
Is there an option for the "dummy" check only to compare the test results of URL checks without selected test method?
Or am I doing it completely wrong?
Would you suggest another configuration for the mentioned issue?
Thank you very much.
Test multiple URLs
We have two URLs.
Only one of both URLs should be up.
If both are down or both are up it's bad for us.
For this we have the dummy check which compares the status respectively the reply of the two URL checks. So only this check alarms.
The status of the URL tests could be "No answer" but we have a view with bad checks and here always one of both URL checks would appear.
Sorry for my phrasing in english. I'm not really good.
Thanks.
Only one of both URLs should be up.
If both are down or both are up it's bad for us.
For this we have the dummy check which compares the status respectively the reply of the two URL checks. So only this check alarms.
The status of the URL tests could be "No answer" but we have a view with bad checks and here always one of both URL checks would appear.
Sorry for my phrasing in english. I'm not really good.
Thanks.
You may use long expression that will check status of each test.
Or you may put 4 URL tests into some folder (e.g. FolderA) and add another test into any other folder (e.g. Ping localhost into FolderB), then use option like Use Warning status if '%::Root\FolderA::FolderCurrent_BadTests%'==3
This way HostMonitor will set Warning status to Ping test when there are 3 "bad" test items in FolderA
Regards
Alex
Or you may put 4 URL tests into some folder (e.g. FolderA) and add another test into any other folder (e.g. Ping localhost into FolderB), then use option like Use Warning status if '%::Root\FolderA::FolderCurrent_BadTests%'==3
This way HostMonitor will set Warning status to Ping test when there are 3 "bad" test items in FolderA
Regards
Alex