<div dir="ltr">Hi y'all<div><br></div><div>I have some questions about the use of supplemental client messages (by specifying a collector ID in the "client" message).  The man page has very little to say on the matter.</div><div><br></div><div>I want to have a client-side script that collects the latest BIND DNS statistics and feeds them to the Xymon server via a supplemental client message.  This is achieved using the following type of command (simplified for the exercise):</div><div><br></div><div>{</div><div>  echo "<span style="line-height:1.5">client/named_stats $MACHINE.$SERVEROSTYPE $CONFIGCLASS"</span></div><div><span style="line-height:1.5">  echo "[named_stats]"</span></div><div><span style="line-height:1.5">  cat /path/to/latest/named.stats</span></div><div><span style="line-height:1.5">} | </span><span style="line-height:1.5">$XYMON $XYMSRV "@"</span></div><div><br></div><div>This generates the following in the client data webpage:</div><div><br></div><div><begin example></div><div>[collector:named_stats]</div><div>client/named_stats dns.example.com.freakos</div><div> freakos</div><div><br></div><div>[named_stats]</div><div>+++ Statistics Dump ++ (1234567890)<br></div><div>...</div><div>++ Outgoing Queries ++<br></div><div>[View: default]</div><div>     12345 A</div>        345 NS<br>...<br>++ Resolver Statistics ++<div>[Common]</div><div>      9693 mismatch responses received<div>[View: default]<br>...<br><div><end example></div><div><br></div><div>My questions regarding this are:</div><div><br></div><div>1. Should I be including the $CONFIGCLASS in the report, like other client messages?  Xymon puts the class onto a newline when I do this.  The man page says the class is optional for a client message, but if I wanted to change the class, I don't think I would be able to.  Or maybe it only makes sense to specify the class for the main client message, and not supplemental ones.</div><div><br></div><div>2. When I write the server-side processor, I'll need to collect the output by specifying the client section name of [named_stats].  But there's also a "[collector:named_stats] section heading that gets created automatically.  Should I be adding the "[named_stats]" section at all, or instead making use of the [collector:named_stats] that gets created regardless?  It probably doesn't matter if I have both, but I don't want to break anything, including some future intended use of these extra client messages.</div><div><br></div><div>3. The content of the client data section I'm sending happens to have square bracketed terms like "[Common]" and "[View: default]".  This makes it impossible for me to fetch the whole [named-stats] section.  My instinct is to escape these somehow, but I don't know of any standard "Xymon" way of doing this beyond a simple backslash.</div></div></div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div>