Clustered Ping Tests

Need new test, action, option? Post request here.
Post Reply
Gerhard
Posts: 26
Joined: Mon Oct 16, 2006 8:25 am

Clustered Ping Tests

Post by Gerhard »

I have started working as a system engineer for a company which uses hostmon to test about 250 servers (various tests). A lot of servers are clustered and i would like to know if ité possible to implement clustered ping tests. One test which pings more servers and sets status bad (action)when all or more then one server doesn't reply .

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

Post by KS-Soft »

No, HostMonitor does not provide such option

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

@Gerhard:
A question:

What is the thing you really want to test ?
- All Cluster nodes are running ?
- - Then test each Cluster node i.e. with a ping

Or is it that you'd like to see if all your applications are working fine (no matter on wich Cluster Node).
- Then create one or more tests that tells you if the application is working.

Best regards

Juergen
Gerhard
Posts: 26
Joined: Mon Oct 16, 2006 8:25 am

Clustered Ping Tests

Post by Gerhard »

Juergen,

I wanted to have a ping test which warns me when 2/3 servers in the cluster become unavailable. Since these servers are used as contingency servers we do not want a warning when one server is down, because we have several servers and there is no problem when only one server is down.

Best regards,

Gerhard

PS: sorry for the late reply
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Gerhard,

I think, you may use "Advanced mode" actions in such case. http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction

For instance, if you have 3 servers in the cluster, and want to be warned when 2 servers are unavailable, you should setup ping test to ping each server (3 ping tests). Then you should create advanced mode action with following condition:

Code: Select all

(('%::PingServer1TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer2TestName::SimpleStatus%' == 'DOWN')) OR (('%::PingServer2TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer3TestName::SimpleStatus%' == 'DOWN')) OR (('%::PingServer1TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer3TestName::SimpleStatus%' == 'DOWN'))
and assign it to one of the ping tests.

On the another hand, you may use simplier conditions, and assign for ping test1 action with following condition:

Code: Select all

('%::PingServer2TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer3TestName::SimpleStatus%' == 'DOWN')
, for ping test2, action with following condition:

Code: Select all

(('%::PingServer1TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer3TestName::SimpleStatus%' == 'DOWN')
and for the ping test3 :

Code: Select all

('%::PingServer1TestName::SimpleStatus%' == 'DOWN') AND ('%::PingServer2TestName::SimpleStatus%' == 'DOWN')
In such case action will be triggered if two of three ping tests fail.

Regards,
Max
Last edited by KS-Soft Europe on Mon Nov 20, 2006 1:48 pm, edited 1 time in total.
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

I just wanted to start writing an AutoIt Script to offer it to Gerhard ...
... but as nearly always the solution is already implemented in HostMonitor ...
... and the great support is showing us "rookies" how to do it.

By the way where can I read some information about the "new" supporter "KS-Soft Europe".
Max has emproved the response time to questions significantly - although it was excellent before :P
Last edited by JuergenF on Mon Nov 20, 2006 1:58 pm, edited 1 time in total.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1) I thought Gerhard wants to use SINGLE ping test to check several servers.
One test which pings more servers and sets status bad (action)when all or more then one server doesn't reply
This is impossible.

2) If Gerhard agrees to create several test items (one item for each server) in the same folder, I think he needs single alerts, not repeated alerts after each test probe for any server. In such case its better to use different expressions, like
(%FolderCurrent_BadTests%==2) and
((('%::PingServer1TestName::SimpleStatus%' == 'DOWN') and (%::PingServer1TestName::Recurrences% == 1)) or
((('%::PingServer2TestName::SimpleStatus%' == 'DOWN') and (%::PingServer2TestName::Recurrences% == 1)) or
((('%::PingServer3TestName::SimpleStatus%' == 'DOWN') and (%::PingServer3TestName::Recurrences% == 1)))
Max has emproved the response time to questions significantly - although it was excellent before
Thats the point - Max is working while I am sleeping :)
So Max helps to customers from Asia and Europe, while I work mostly for North and South America

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

KS-Soft wrote: (%FolderCurrent_BadTests%==2) and
What if all three are down. Maybe better use
(%FolderCurrent_BadTests%>=2) and
KS-Soft wrote: Thats the point - Max is working while I am sleeping :)
You sleep :o
I thought you were working on the "warning" status :wink:
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What if all three are down. Maybe better use
HostMonitor may perform many tests at the same time however it sets test statuses one by one. So you will have predictable results: all tests are good -> then 1 test is bad -> 2 tests are bad -> 3 tests are bad
(%FolderCurrent_BadTests%>=2) and
If you want to receive 2 alerts (1st alert when 2 tests become bad, 2nd alert - 3 tests become bad), then yes
I thought you were working on the "warning" status
I want to release version 6.42, then start work on "warning" status

Regards
Alex
Post Reply