KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Issue with Treat Warning Status as Bad

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Tue Feb 02, 2016 7:56 am    Post subject: Issue with Treat Warning Status as Bad Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11782
Location: USA

PostPosted: Tue Feb 02, 2016 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
eddymicro



Joined: 13 Nov 2002
Posts: 79

PostPosted: Tue Feb 02, 2016 9:20 am    Post subject: Reply with quote

Thanks Alex. I changed the test
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index