Event ID

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
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Event ID

Post by jromariz »

Hi,

Is there something link an "event id" in hostmon? I mean a unique identifier field for each alert event in hostmon?

Thanks for helping.

Regards,


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

Event ID

Post by KS-Soft Europe »

You may use %FailureID% macro-variable, that can be used to identify failure.

Quote from manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
This variable allows you to use unique failure ID as parameter of the actions. HostMonitor assigns unique failure ID for each failed test and keeps the same ID when test fails several times in a row (note: "failure" conditions may depend on "Treat Unknown as Bad" or "Treat Warning as Bad" test properties). HostMonitor assigns different IDs for different test items; it assigns new unique ID when test restores "good" status and then fails again. HostMonitor sets %FailureID% variable to 0 when test has "good" status.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi,

Thanks for helping. Just one more doubt: which action should I create to write a registry to a text file with some information about the event, including this one?

Regards,


Jromariz.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Never mind, just found a way. But another question: As described on the manual "...HostMonitor sets %FailureID% variable to 0 when test has "good" status...". The problem is that I would like to track the failure by it´s ID and when hostmon sets the %FailureID% to 0 when test reports "good" status, it is not possible to associate the event by the ID anymore.

Hope you´ll understand.

Any ideas?


Thanks.


Jromariz.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi,

Once again I´ve found the solution: I´ll use %LastFailureID%.


Thanks anyway.


Regards,

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

Post by KS-Soft »

If you check list of macro variables you will find %LastFailureID% just below %FailureID%.
I think that's what you need :)

Regards
Alex
Post Reply