Mail alert based on variables

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
Quantum
Posts: 56
Joined: Thu May 06, 2004 6:04 pm

Mail alert based on variables

Post by Quantum »

I am trying to make it easy to configure the mail alerts so that they go to the right people.

What I tryed to do is to have the folder comments hold the mail addresses of people interested in this item.

The mail alert is then configured as

Mail To: %Fcomment01%, %Fcomment02%
Subject: %FolderName% - %TestName% - Problem

The system, however did not resolve these folder comments to the mail addresses. Have I done it wrong ? or is this not possible ?


Q

p.s.

On a side note

I have configured my system to use Folders as the machine names, with the tests in each one.

For example (Red, is a testGeen is a folder

MyCo
>>Internal
>>>>FileServer
--------------Ping
--------------Space on C
--------------Space on D
>>>>MailServer
--------------Ping
--------------Space on C
--------------Space on D
--------------Port 25 Test
--------------Exchange Service Test
>>DMZ
>>>>Webserver
--------------Ping
--------------Space on C
--------------Space on D
--------------HTTP Header Test
>>>>Firewall
--------------Ping


Do you think this is a good layout ? Has anyone had issues using Hostmon this way ?

To all the other people reading this how do you deal with a large system where many people are responsible for different parts of the system ? many of whome only want to see what they are responsible for ?

All ideas wolcome

-Q
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

[quote]Mail To: %Fcomment01%, %Fcomment02%
Subject: %FolderName% - %TestName% - Problem [/quote]

Use %FCommentLine1% instead of %FCommentLine01%

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

Post by KS-Soft »

Do you think this is a good layout ? Has anyone had issues using Hostmon this way ?
HostMonitor doesn't care how you separate test items by folders. You may group test items as you wish, depending on what kind of reports/comments/statistics do you need.

Regards
Alex
Quantum
Posts: 56
Joined: Thu May 06, 2004 6:04 pm

Post by Quantum »

HostMonitor doesn't care how you separate test items by folders. You may group test items as you wish, depending on what kind of reports/comments/statistics do you need
Aye, but as with all realy open things of this complexity I am worried that the way I am using, which works well visualy, will actualy cause me problems in the future.

I was after some advice as to how other people have setup their folders in the above senario.


Oh and what is the seperator of the mail addresses ??? I have tryed ; and , but i cant get it to send to a list :(

Q
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Oh and what is the seperator of the mail addresses ??? I have tryed ; and , but i cant get it to send to a list
More than one destination addresses separating with a semicolon ;
That doesn't work? Could you check log in the SMTP popup window? You will see answers from your mail server.

Regards
Alex
Quantum
Posts: 56
Joined: Thu May 06, 2004 6:04 pm

Post by Quantum »

I looked at the SMTP output and indeed the a ; does not seem to be accepted.

Sould it be ?

Q
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What do you mean?
"... ; does not seem to be accepted."? HostMonitor does not send a ;
You should see something like

Code: Select all

[07/13/2004 12:33:16 PM] > RCPT TO:<line1@ks-soft.net>
[07/13/2004 12:33:16 PM] < 250 ok
[07/13/2004 12:33:16 PM] > RCPT TO:<line2@ks-soft.net>
[07/13/2004 12:33:16 PM] < 250 ok
What do you see?

Regards
Alex
Quantum
Posts: 56
Joined: Thu May 06, 2004 6:04 pm

Post by Quantum »

Fixed it

I feel very stupid

The issue was actualy with the name I chose for the mail to come from :oops:

Can't have spaces.

Sorry.

Q
[/quote]
Post Reply