"Warning" is shown as "bad" after first

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
mpedersen
Posts: 7
Joined: Thu Apr 19, 2007 3:23 am
Location: Copenhagen, Denmark

"Warning" is shown as "bad" after first

Post by mpedersen »

I have installed version 6.75 and are using the Hostmonitor for the below:

If you setup a test with "Use Warning status if ("%Status%"=="Bad")" the first time the status is "bad" the monitor show status "bad" insted of "warning". Second time the test executes, the status is shown correctly as "warning".
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: "Warning" is shown as "bad" after fi

Post by KS-Soft Europe »

mpedersen wrote:If you setup a test with "Use Warning status if ("%Status%"=="Bad")" the first time the status is "bad" the monitor show status "bad" insted of "warning". Second time the test executes, the status is shown correctly as "warning".
I would suggest you yo use following expression:

Code: Select all

 ("%SuggestedSimpleStatus%"=="DOWN")
Regards,
Max
mos-eisley
Posts: 76
Joined: Wed Mar 21, 2007 5:51 am
Location: Klarup (AAlborg), Demark

Post by mos-eisley »

I have same issue with v6.54 (I know it is not the newest, yes :-) I have:

Use "Warning" status if: ("%StatusID%"==10)
Use "Normal" status if: ("%StatusID%"==01)

Every second test, this does not work, e.g. I get like Normal,Host is alive, Normal,Host is alive
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

mos-eisley wrote:Every second test, this does not work, e.g. I get like Normal,Host is alive, Normal,Host is alive
%SuggestedXXX% variables were designed to avoid such issues. We recommend to use %SuggestedXXX% variables (%SuggestedStatus%, %SuggestedSimpleStatus%, etc) in "Warning/Normal" expressions.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... rmalstatus
==================
IMPORTANT note: HostMonitor checks logical expressions after test check is done and "reverse alert" option is processed.
I.e.

* HostMonitor performs the test;
* processes "Reverse alert" option;
* sets "suggested" macro variables (%SuggestedStatus%, %SuggestedSimpleStatus%, %SuggestedReply%, %SuggestedRecurrences% and %FailureIteration%) without touching regular counters (%Status%, %Reply%, %Recurrences%, etc);
* then HostMonitor evaluates "Warning" and "Normal" expressions and finally modifies current test status and statistisc counters (Status, Reply, Alive%, Passed tests, Failed tests, etc).
==================

Regards,
Max
Post Reply