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

Set test to Bad using expression?

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
mrw



Joined: 08 Oct 2012
Posts: 179

PostPosted: Tue Oct 04, 2016 3:31 am    Post subject: Set test to Bad using expression? Reply with quote

Hi,
The title is a bit confusing.. sorry

I have a SNMP test that returns a simple integer value.
Currently I have it set to Alert when "is <> from 3". The return value can be anything from 0 to 100.
But now I need to change this to also include the value 1.
Something like "is <> from 3 and is <> from 1".

I canĀ“t figure out how to do this. Is this possible to achieve somehow?

//Andreas..
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Oct 04, 2016 7:24 am    Post subject: Reply with quote

"Bad" status cannot be set using expression.
However you may set "Warning" status. It behaves like Bad status if "Treat Warning as Bad" option is enabled.

You may enable "Use Warning status if" option with expression like the following:
('%SuggestedReply%'<>'1') AND ('%SuggestedReply%'<>'3')

Please note, "Use Warning status if" option is located on "Test properties" dialog and can be hidden.
Just press small [+] icon above "Help" button to show "Optional status processing" options.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mrw



Joined: 08 Oct 2012
Posts: 179

PostPosted: Tue Oct 04, 2016 7:34 am    Post subject: Reply with quote

Thanks!
That worked!

I had to also change the Alert check to "is < than 0" to make sure the test never is Bad to get the desired result.

Thanks again!
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Oct 04, 2016 7:41 am    Post subject: Reply with quote

You are welcome!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting 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