[Xymon] possible bug with combostatus when hostnames start with numbers?
Gavin Stone-Tolcher
g.stone-tolcher at its.uq.edu.au
Thu Mar 19 01:44:02 CET 2015
> 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?
Hmm, a direct email to you seems to have been delayed with a "451 SPF lookup failure" negotiating with mail.kkytbs.net?
So, I'll send to the list, not sure if these attachments will make it through:
For combo.debug.broken:
group-compress Nexus test
0.0.0.0 prndc2.nexus.comboalert # noconn DESCR:"alias:Test of ping to both PRN DC2 Nexus switches"
172.16.162.xx 01-0042-dc2-c2-ag01.netman.uq.edu.au # testip
172.16.162.xy 01-0042-dc2-c2-ag02.netman.uq.edu.au # testip
And
prndc2.nexus.comboalert.fping = ( 01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping && 01\-0042\-dc2\-c2\-ag02.netman.uq.edu.au.fping ) >=1
For combo.debug.ok:
group-compress Nexus test
0.0.0.0 prndc2.nexus.comboalert # noconn DESCR:"alias:Test of ping to both PRN DC2 Nexus switches"
172.16.162.xx a01-0042-dc2-c2-ag01.netman.uq.edu.au # testip
172.16.162.xy a01-0042-dc2-c2-ag02.netman.uq.edu.au # testip
And
prndc2.nexus.comboalert.fping = ( a01\-0042\-dc2\-c2\-ag01.netman.uq.edu.au.fping && a01\-0042\-dc2\-c2\-ag02.netman.uq.edu.au.fping ) >=1
Thanks for investigating.
Gavin Stone-Tolcher, IT Support Officer, Network Operations and Incident Response
Information Technology Services
The University of Queensland
Level 4, Prentice Building, St Lucia 4072
T: +61 7 334 66645, M: +61 401 140 838
E: g.stone-tolcher at its.uq.edu.au W: www.its.uq.edu.au
ITS: Service. Team. Accountability. Results.
IMPORTANT: This email and any attachments are intended solely for the addressee(s), contain copyright material and are confidential. We do not waive any legal privilege or rights in respect of copyright or confidentiality. Except as intended addressees are otherwise permitted, you do not have permission to use, disclose, reproduce or communicate any part of this email or its attachments. Statements, opinions and information not related to the official business of The University of Queensland are neither given nor endorsed by us. By using this email (including accessing any attachments or links) you agree we are not liable for any loss or damage of any kind arising in connection with any electronic defect, virus or other malicious code we did not intentionally include.
Please consider the environment before printing this email.
CRICOS Code 00025B
-----Original Message-----
From: J.C. Cleaver [mailto:cleaver at terabithia.org]
Sent: Wednesday, 18 March 2015 5:01 AM
To: Gavin Stone-Tolcher
Cc: 'xymon at xymon.com'
Subject: Re: [Xymon] possible bug with combostatus when hostnames start with numbers?
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combo.debug.broken
Type: application/octet-stream
Size: 3377 bytes
Desc: combo.debug.broken
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150319/5bc7e0ab/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combo.debug.ok
Type: application/octet-stream
Size: 3289 bytes
Desc: combo.debug.ok
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150319/5bc7e0ab/attachment-0001.obj>
More information about the Xymon
mailing list