View previous topic :: View next topic |
Author |
Message |
mrw
Joined: 08 Oct 2012 Posts: 179
|
Posted: Tue Oct 04, 2016 3:31 am Post subject: Set test to Bad using expression? |
|
|
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 |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue Oct 04, 2016 7:24 am Post subject: |
|
|
"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 |
|
|
mrw
Joined: 08 Oct 2012 Posts: 179
|
Posted: Tue Oct 04, 2016 7:34 am Post subject: |
|
|
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 |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue Oct 04, 2016 7:41 am Post subject: |
|
|
You are welcome! |
|
Back to top |
|
|
|