Alexander Clouter wrote:
Hi,
Not a show stopper, but it seems doing a comparision on 'check:...' in unlang does not work (however using 'control:...' does):
$ man unlang "check" doesn't work, and isn't intended to work.
Turns out that it is actually doing is saying the *string* "check:LanWarden-Host-State" does not compare, rather than the *variable* 'check:LanWarden-Host-State'.
Replacing it with "%{check:LanWarden-Host-State}" (or 'control:LanWarden-Host-State') works around the problem however I was say that either that phrase 'looking for check items...' needs amending, or the code to be tweaked to align the behaviour of unlang to treat control/check equally. I vaguely recall that 'check' is depreated in favour 'control' however in it's current state the logic leads to madness...as I found out this morning :-/
Yup. Alan DeKok.