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".
"Warning" is shown as "bad" after first
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: "Warning" is shown as "bad" after fi
I would suggest you yo use following expression: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".
Code: Select all
("%SuggestedSimpleStatus%"=="DOWN")
Max
-
- Posts: 76
- Joined: Wed Mar 21, 2007 5:51 am
- Location: Klarup (AAlborg), Demark
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
%SuggestedXXX% variables were designed to avoid such issues. We recommend to use %SuggestedXXX% variables (%SuggestedStatus%, %SuggestedSimpleStatus%, etc) in "Warning/Normal" expressions.mos-eisley wrote:Every second test, this does not work, e.g. I get like Normal,Host is alive, Normal,Host is alive
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