Disable Private log entry for out of schedule items

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
Blitzkrieg
Posts: 3
Joined: Wed Feb 01, 2006 5:58 pm

Disable Private log entry for out of schedule items

Post by Blitzkrieg »

Hi Guys,

We have configured our AHM to output status changes to a private log file. We then wrote a custom application to look for the existence of this log file and then GSM SMS us whatever alerts were listed in the log file.

This works perfectly, except for the checks that run according to a time schedule. Every time a job goes out of schedule, it writes it to the log file, and therefore we get notified via SMS...the same thing then happens when the job goes in to schedule.

Is it possible to configure AHM to NOT log in/out of schedule changes to the log file as we do not want to be notified when it is in/out of schedule? If this isn't possible now, can this please be added to a Wish-List?

Thanks Alex....great app!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We have configured our AHM to output status changes to a private log file. We then wrote a custom application to look for the existence of this log file and then GSM SMS us whatever alerts were listed in the log file.
Interesting configuration... Why you do not use standard alert configuration - start alert when test status changes?
Just add "Execute external program" action into alert profile, so HostMonitor will launch your SMS sender when test fails.

Regards
Alex
Blitzkrieg
Posts: 3
Joined: Wed Feb 01, 2006 5:58 pm

Post by Blitzkrieg »

Thanks for the quick reply!

AHM is configured to output to different log files for different types of tests. For example, if a network link goes down, then there is an infrastructure.txt private log file...then our infrastructure dept is then SMS'ed....we then have a different private log file for SQL teams etc.

Our SMS application has some distribution lists within it, so depending on which log file exists, a different group of people will be notified. The SMS app runs as a service as it also performs a few other tasks as well.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, I still do not understand why do you start alert "when log file exists". Logs are for loggings. SMS can be triggered by different action.

Anyway. If you do not want to see some statuses in the log, disable "private log" option and add "Record HM log" action. Using "advanced" mode for the action you may specify what records should be recorded. E.g. you may use expression like (('%Status%'=='Bad') or ('%Status%'=='Bad contents')) and (%Recurrences%=1)

Regards
Alex
Blitzkrieg
Posts: 3
Joined: Wed Feb 01, 2006 5:58 pm

Post by Blitzkrieg »

We use the logs because AHM does not have support for GSM modems to send SMS alerts.

We can't run the "external program" option because our SMS software does not allow us to pass parameters to it like which group to SMS etc.

I tried your suggestion of using the HM Log, but it is not logging anything in to the log file i specified.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We use the logs because AHM does not have support for GSM modems to send SMS alerts
Right.
We can't run the "external program" option because our SMS software does not allow us to pass parameters to it like which group to SMS etc
If software checks private log file, it may check some other file that can be created by the same "Execute external program" action and contain information you need.
I tried your suggestion of using the HM Log, but it is not logging anything in to the log file i specified.
If you are using condition that I provided as example, then record will be added only if test status changes from "Ok" or "Host is alive" to "Bad" or "Bad contents". Probably you need to modify that expression to suit your needs.

Regards
Alex
Post Reply