How to define a Warning level alert ?

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
MeikiL
Posts: 10
Joined: Sat Jan 24, 2009 4:04 pm

How to define a Warning level alert ?

Post by MeikiL »

Is there a posibility in AHM to define different levels of alerts ?
Example : if disk space < 10G then issue warning, if <5G then error, if <2G then disaster.
In the "Color Profiles" window and in the associated help topic I see a lot of different texts in the "Status" column - also in the "Dynamic View Properties" - but in the "Test Properties" there is only "Alert".
How do I define "Warnings" ?
Did I miss something ??
Meiki
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Example : if disk space < 10G then issue warning, if <5G then error, if <2G then disaster.
Disaster? There is no such status.
However you may define when test should set Ok (or Host is alive), Normal, Warning and Bad (or No answer) statuses.
Use "optional status processing" options: http://www.ks-soft.net/hostmon.eng/mfra ... processing

If you do not see such options in Test Properties dialog, click on [+] sign located beside "Reverse alert" option
http://www.ks-soft.net/images/hostmon7/tedit2.gif

Regards
Alex
MeikiL
Posts: 10
Joined: Sat Jan 24, 2009 4:04 pm

Post by MeikiL »

OK - click on this tiny little overseen [+] did the trick !
Thank you gentleman for sacrifying your Sunday night to answer stupid beginers questions !
Yours,
Meiki
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No problem :)

Regards
Alex
MeikiL
Posts: 10
Joined: Sat Jan 24, 2009 4:04 pm

Post by MeikiL »

In continuation with the Warning Level - I managed correctly to define warning level - and if the condition comes true - the orange indicators are lit. But there is no other action taken (I expected a "Warning" mail).
However - when the condition ceases to exist - the indicators return to green and a "Change to Normal - Previous state Warning" message is sent.
Did I again overlook something or is this a feature ?
Meiki
MeikiL
Posts: 10
Joined: Sat Jan 24, 2009 4:04 pm

Post by MeikiL »

In continuation with the Warning Level - I managed correctly to define warning level - and if the condition comes true - the orange indicators are lit. But there is no other action taken (I expected a "Warning" mail).
However - when the condition ceases to exist - the indicators return to green and a "Change to Normal - Previous state Warning" message is sent.
Did I again overlook something or is this a feature ?
Meiki
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

In continuation with the Warning Level - I managed correctly to define warning level - and if the condition comes true - the orange indicators are lit. But there is no other action taken (I expected a "Warning" mail).
HostMonitor does not setup actions by itself. If you want special action for Warning status, you should setup this action.

Note: there is "Treat Warning status as Bad" option that defines HostMonitor's behavior when test status changes
Quote from the manual
==================
"Treat Unknown status as Bad" and "Treat Warning status as Bad" options do HAVE an influence on the following features:
- Tray icon: when the option is disabled, "unknown"/"warning" test item will trigger yellow icon (unless there are "red" test items already in the list); enabled "Treat * status as Bad" option tells HostMonitor to use red icon color when test status changes to "unknown"/"warning"

- %SimpleStatus% macro variable returns "WARNING" string for Warning test items when "Treat Warning as Bad" option is disabled; otherwise it returns "DOWN" string. The variable returns "UNKNOWN" and "DOWN" for Unknown tests accordingly.

- Actions: most important - these options define HostMonitor's behavior when test status changes.
If options are disabled, HostMonitor will reset recurrences counter for each status change (bad <-> unknown <-> warning). Also, if options are disabled, HostMonitor will not start standard actions for "Unknown" and/or "Warning" statuses (however you may use advanced actions). As a result this leads to reset of Acknowledged flag, so if you acknowledge Warning status and then status of the test changes to Bad, HostMonitor clears ACK flag and starts specified "bad" actions. Therefore you may need to acknowledge test status again.
If options are enabled, HostMonitor treats "bad", "unknown" and "warning" as the same status and will not reset "recurrences" counter, will not clear ACK flag either but will start standard actions for "Unknown" and/or "Warning" statuses.
==================
http://www.ks-soft.net/hostmon.eng/mfra ... processing

In other words, if you want different actions for Warning and Bad statuses, you may unmark "Treat Warning status as Bad" option and setup "advanced mode" action for Warning status using expression like ('%Status%'=='Warning') and (%Recurrences%==1)

Regards
Alex
MeikiL
Posts: 10
Joined: Sat Jan 24, 2009 4:04 pm

Post by MeikiL »

Advanced Actions solved the problem.
Thank you Alex,
Meiki
Post Reply