New Variable for"SimplifiedStatus"

Need new test, action, option? Post request here.
Post Reply
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

New Variable for"SimplifiedStatus"

Post by JuergenF »

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
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

Hi Alex,

I think we can forget about this request.
It's much easier, as Thomas taught me here :D

http://www.ks-soft.net/cgi-bin/phpBB/vi ... ght=#15562

Many thanks and Happy new Year

Juergen
Post Reply