[Xymon] Making COMPACT: work
Scott, Brian
brian.scott4 at det.nsw.edu.au
Wed Jun 17 07:03:06 CEST 2015
After years of wanting to use COMPACT: in hosts.cfg but never getting it to work, I finally decided to have a closer look.
It turns out there are a few small problems that need attention. In particular, the documentation is wrong about delimiters. If you use the syntax shown in the man page then it will crash (or not depending on some undocumented behaviour with strlen and NULL input).
The correct format is actually:
COMPACT:newfield=oldfield1|oldfield2|oldfield3,anothernewfield=oldfield4|oldfield5
Etc.
These patches correct the manpage, make the software more robust against crashes when you try the bad syntax, and fix a problem with clicking on the summary icon.
**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150617/7ff62f61/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xymon-compact.diff
Type: application/octet-stream
Size: 1884 bytes
Desc: xymon-compact.diff
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150617/7ff62f61/attachment.obj>
More information about the Xymon
mailing list