Set test to Bad using expression?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

Set test to Bad using expression?

Post by mrw »

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..
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

"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.
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

Post by mrw »

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!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You are welcome!
Post Reply