Receiving 1 email instead of multiple... ?

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
SMTechnology
Posts: 5
Joined: Wed Dec 06, 2006 5:39 am

Receiving 1 email instead of multiple... ?

Post by SMTechnology »

Hi!

I am using Host monitor 6.51b (and its working real well, thanks!) to monitor my customers servers and devices connected to them.

I have set up a ping test for each of these devices, and when it produces an 'unknown' or 'bad' result, hostmonitor emails me.

What I want to do doesnt seem possible to me, but I'll ask anyway! When I returned to the office this morning, I had nearly 600 emails, reporting bad results from devices. these devices are on 24/7, but sometime due to power cuts and customers turning servers off (?), they go down.

What I want to know is, is there a way of receiving 1 email from Host Monitor instead of multiple when several devices go down on the same network? For instance, if 3 or more devices on bob's network send a 'bad' result, then I would like to receive 1 email containing the details of the failures instead of three seperate emails...

in reality, it won't be so bad if I only received three, but 100 of emails are a nuisance! thanks KS-Soft... :D
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

I think you may use Advanced Mode action:
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
You may build any expression that suits your needs. You may try expression like this:

Code: Select all

('%::Ping_test_1_Name::SimpleStatus%'=='DOWN') AND ('%::Ping_test_2_Name::SimpleStatus%'=='DOWN')
('%::Ping_test_3_Name::SimpleStatus%'=='DOWN') AND 
.... etc

On the other hand, you may adjust standard mode action to alert you after three or four unsuccessful tests. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... dardaction
=====================
Start when N consecutive Bad/Good results occur
This parameter determines when to execute an action. For example you want to send a message to a network administrator's pager after three unsuccessful tests of the web server consecutively, set this parameter to 3. If you want to start action right after the test status was changed, set parameter to 1.
=====================
If your network is not much reliable, it helps you to avoid receiving unwished emails.

Regards,
Max
SMTechnology
Posts: 5
Joined: Wed Dec 06, 2006 5:39 am

Post by SMTechnology »

Thought as much, thanks. I have already set them to send an email after two consecutive failures...

Is there an expression for what I want to do? can anyone suggest one?
SMTechnology
Posts: 5
Joined: Wed Dec 06, 2006 5:39 am

Post by SMTechnology »

SMTechnology wrote:Thought as much, thanks. I have already set them to send an email after two consecutive failures...

Is there an expression for what I want to do? can anyone suggest one?
Ah, thanks, didnt see that there!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

SMTechnology wrote:Is there an expression for what I want to do? can anyone suggest one?
You may use expression like:

Code: Select all

('%::Ping_test_1_Name::SimpleStatus%'=='DOWN') AND ('%::Ping_test_2_Name::SimpleStatus%'=='DOWN') 
('%::Ping_test_3_Name::SimpleStatus%'=='DOWN') AND 
.... etc
Instead of Ping_test_X_Name you shuld substitute the real test names.

Please note, this expression is a bit simplified. I would recommend you to use more variables in the expression. For instance, you may use "%Recurrences%" variable.
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro

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

Post by KS-Soft »

Probably you may setup some test to check network connection (e.g. ping router), and use this test as Master test for other items.
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Regards
Alex
SMTechnology
Posts: 5
Joined: Wed Dec 06, 2006 5:39 am

Post by SMTechnology »

Wo thanks Alex, thats a great idea!
Post Reply