|
View previous topic :: View next topic |
Author |
Message |
eddymicro
Joined: 13 Nov 2002 Posts: 95
|
Posted: Tue Feb 02, 2016 7:56 am Post subject: Issue with Treat Warning Status as Bad |
|
|
Alex,
If I set a test to (In this example a service test)
Treat Unknown : Not checked
Treat Warning status as Bad: Checked
Use Warning status if Checked: Checked -- set to: ('%SimpleStatus% '=='DOWN)'
Use Normal Status: Not Checked
When the test status is DOWN the status is correctly set to warning, when the status is UP the test remains in the warning state. I think it should go back to normal.
The reason we have made this test is that we want to trigger an action when the service is not running, but we do not really consider this a Failure, so we we do not want to display "BAD" only warning. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Tue Feb 02, 2016 8:32 am Post subject: |
|
|
Correct behavior, you are using wrong variable.
Quote from the manual
Quote: |
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 checks "Warning" and "Normal" expressions, processes "Tune up Reply" option and finally modifies current test status and statistisc counters (Status, Reply, Alive%, Passed tests, Failed tests, etc). |
Regards
Alex |
|
Back to top |
|
|
eddymicro
Joined: 13 Nov 2002 Posts: 95
|
Posted: Tue Feb 02, 2016 9:20 am Post subject: |
|
|
Thanks Alex. I changed the test |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|