On Sun, March 15, 2015 7:30 pm, Gavin Stone-Tolcher wrote:
I have some devices with names like
"01-0042-dc2-c2-ag01.netman.uq.edu.au".
With a combo.cfg entry like this:
prndc2.nexus.comboalert.fping = (
01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping &&
01\-0042\-dc2\-d8\-ag01.netman.uq.edu.au.fping ) >=1
The resulting test produces output like so:
(01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping&&01\-0042\-dc2\-d8\-ag01.netman.uq.edu.au.fping)>=1
= (01\-0042\-1&&01\-0042\-1)>=1 = 0
clear dc2-c2-ag01.netman.uq.edu.au.fping
clear dc2-d8-ag01.netman.uq.edu.au.fping
Errors occurred during evaluation:
compute((01\-0042\-1&&01\-0042\-1)>=1) returned error 4
It looks like it is having a problem with those names for some reason,
truncating the name in the first part of the result
"dc2-c2-ag01.netman.uq.edu.au" instead of
"01-0042-dc2-c2-ag01.netman.uq.edu.au"
and then compute bit having just "01\-0042\-1"?
Whereas simply prefixing the letter "a" to the hostname entries like so
"a01-0042-dc2-c2-ag01.netman.uq.edu.au" :
prndc2.nexus.comboalert.fping = (
a01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping &&
a01\-0042\-dc2\-d8\-ag01.netman.uq.edu.au.fping ) >=1
Produces the expected output:
(a01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping&&a01\-0042\-dc2\-d8\-ag01.netman.uq.edu.au.fping)>=1
= (1&&1)>=1 = 1
green a01-0042-dc2-c2-ag01.netman.uq.edu.au.fping
green a01-0042-dc2-d8-ag01.netman.uq.edu.au.fping
Any ideas? It looks like a bug to me.
Hi,
I believe I've found the issue here. Can you send me a run of this (with
and without the prefixed alphabetic character) with --debug enabled?
Regards,
-jc