Dosent run the alart profile?

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
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Dosent run the alart profile?

Post by fve »

Hi

I had some funny behaver.

All my test is in subdir under root.

In one of the dir. none of the test execute the alart profile? But the test run as expecped.

Then I make a new dir called (xxx) and copy all the test to that dir, after that the alart profile was executed?

Can there be some bad configuration in the old dir?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Never heard about such a bihavior. :o
I suppose, there is some alerts configuration issue. For instance, you specified "Repeat 1 times" option in "Action properties" window. It means HostMonior will fire alerts only once - when status changes. If status of the tests in the folder is not changed, so alerts are not fired. When you copied tests into new folder, HostMontor created new tests, so status changed for the first time and alerts were fired.
http://www.ks-soft.net/hostmon.eng/mfra ... properties

Anyway, could you send all *.hml, *.lst and *.ini files to support@ks-soft.net and specify folder that causes the problem?
Please, compress the files before sending if possible.

Regards,
Max
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

I think you came up with the solution.

Both status was = OK when i attach the alert profile! I don't think it that way, the status must change.
I just think it as: The test is exec. and if the status is = OK the action is fired.
But when "status" and "last status" both was ok no action is fired?

When I make the copy to the new folder, both status was "clean" and therefore it worked, right.

How to handle with this?
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

Now go little deeper, if I change to advanced test and use %StatusID% == 7
will it hhen work as I expect.

One result of ok will fire my event!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

fve wrote:Now go little deeper, if I change to advanced test and use %StatusID% == 7
will it hhen work as I expect.
It will work, but is not a right approach, because some tests return "Host is alive" status, which is considered a "Good" status as well. I would suggest you to use %SimpleStatus% vairable. For instance, your expression will be like the following: ('%SimpleStatus%'=='UP')
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
==========================================
%SimpleStatus%
This macro may return one of the following text values:

- "UP" for good statuses (Host is Alive, Ok);
- "DOWN" for any bad status (No answer, Bad, Bad Contents); for Warning status when "Treat Warning as Bad" option is enabled; for Unknown status when "Treat Unknown as Bad" option is enabled
- "UNKNOWN" if status of the test is "Unknown" or "Unknown host" and "Treat Unknown as Bad" option is disabled; variable also returns "UNKNOWN" for statuses like WaitForMaster, OutOfSchedule, Paused
- "WARNING" when status of the test is "Warning" and "Treat Warning as Bad" option is disabled
==========================================

On the other hand, I do not see any reason to use "Advanced mode" action in this case. As I understand, you just need to start action each time test is performed, right? In this case you should use "Standard mode" action with "Repeat unitil status changes" option enabled. Quote from the manual: http://www.ks-soft.net/hostmon.eng/mfra ... dardaction
==========================================
Repeat: N times; or until status changes
Defines the number of repeats of the action if the status of the test was not changed. For example if you want to send an e-mail to a network administrator only once when test status changes, set this parameter to 1. If you need to execute action every time when test failed, set this option to "until status changes".
==========================================

Regards,
Max
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

Maybe just me but the option "repeat until change" I misunderstand it, I expext the result must change?

It work as you describe!

Thanks:-)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

fve wrote:Maybe just me but the option "repeat until change" I misunderstand it, I expext the result must change?
Not sure I understand this question. In fact, everything is pretty simple and convenient. As you may see, there are two areas in "Alert profiles" wndow: "Good status actions" area and "Bad" status actions area. If test changes status from "Good" to "Bad", HostMonitor will perform actions from "Bad" status area and vice versa. If test does not change its status, HostMonitor performs action accoding to the options, specified in "Action properties" window. So, if there is specified "Repeat 1 times" option, HostMonitor will perform actions just once. If "Repeat until status changes" option is selected, HostMonitor will execute action each time the test is performed untill status changes, because when status changes, HostMonitor will perform actions from another area ("Good" or "Bad" accordingly).

Regards,
Max
Post Reply