[Xymon] possible bug with combostatus when hostnames start with numbers?

Gavin Stone-Tolcher g.stone-tolcher at its.uq.edu.au
Mon Mar 16 03:30:57 CET 2015


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.


Cheers,
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<mailto:g.stone-tolcher at its.uq.edu.au> W: www.its.uq.edu.au<http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150316/a8af2dc9/attachment.html>


More information about the Xymon mailing list