Hi Alex,
when we use expressions we have to deal with different Strings for the possible statuses.
Example:
CPU test:
("%SuggestedReply%" > "10 %") and (("%Status%" == "Ok") or (("%Status%" == "Normal") and (%CurrentStatusIteration% < 2)))
PING test:
("%SuggestedReply%" > "200 ms") and (("%Status%" == "Host is alive") or (("%Status%" == "Normal") and (%CurrentStatusIteration% < 2)))
Would be easier to have a new variable %SimplifiedStatus% (or other name)
Possible values:
- UP
- DOWN
- UNKNOWN
- INACTIVE
- NORMAL
- WARNING
That could harmonise the expressions to
CPU test:
("%SuggestedReply%" > "10 %") and (("%SimplifiedStatus%" == "UP") or (("%SimplifiedStatus%" == "NORMAL") and (%CurrentStatusIteration% < 2)))
PING test:
("%SuggestedReply%" > "200 ms") and (("%SimplifiedStatus%" == "UP") or (("%SimplifiedStatus%" == "NORMAL") and (%CurrentStatusIteration% < 2)))
... and then you can use Global UserDefinedVariable
udv_a_name = "(("%SimplifiedStatus%" == "UP") or (("%SimplifiedStatus%" == "NORMAL") and (%CurrentStatusIteration% < 2)))"
("%SuggestedReply%" > "200 ms") and %udv_a_name%
("%SuggestedReply%" > "10 %") and %udv_a_name%
I think formerly %SimpleStatus% was designed for that but it doesn't deal with "Normal" and only in some cases with "Warning" as far as I have understood. Or will you change %SimpleStatus% to completly reflect the new statuses.
Best regards
Juergen
New Variable for"SimplifiedStatus"
Hi Alex,
I think we can forget about this request.
It's much easier, as Thomas taught me here
http://www.ks-soft.net/cgi-bin/phpBB/vi ... ght=#15562
Many thanks and Happy new Year
Juergen
I think we can forget about this request.
It's much easier, as Thomas taught me here

http://www.ks-soft.net/cgi-bin/phpBB/vi ... ght=#15562
Many thanks and Happy new Year
Juergen