Test multiple URLs

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
SES
Posts: 15
Joined: Wed Jan 28, 2015 2:39 am

Test multiple URLs

Post by SES »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Setup "dummy" Ping localhost test.
Do not use Normal status.
Set Use Warning status if ('%::URL: URL1::SimpleStatus%'=='%::URL: URL2::SimpleStatus%')

Regards
Alex
SES
Posts: 15
Joined: Wed Jan 28, 2015 2:39 am

Post by SES »

Ah, why heavy if it can be simple :lol:

Thank you very much.


But i have another question.
Is it possible to setup a test without Bad status?
Because now we have always a test with bad status though all is good.
I can use "Normal" status expression. But is there an option to "disable" Bad status?

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Not sure I understand.
If 1 web server responds, another does not, you want to see "Host is alive" status for both items?
If 2 web servers respond, you want to see "Host is alive" status as well?
Then there is no reason to setup any tests...

Regards
Alex
SES
Posts: 15
Joined: Wed Jan 28, 2015 2:39 am

Post by SES »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Then set "Use Normal status" for URL tests (e.g. Use Normal status if '%SuggestedSimpleStatus%'=='DOWN')
Set Use Warning status if not ((%::URL:URL1::%FailureIteration%>0) xor (%::URL:URL2::FailureIteration%>0)) for "dummy" test

Regards
Alex
SES
Posts: 15
Joined: Wed Jan 28, 2015 2:39 am

Post by SES »

Hi,

now we have 4 URLs to check.

All is good if one URL is up.
If all URLs are down, or more than one URL is up it's BAD.

Can we realise this?

Thank you very much.

Regards
Sebastian
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Post Reply