<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 March 2015 at 16:32, Brandon Dale <span dir="ltr"><<a href="mailto:BDale@kitchengroup.com.au" target="_blank">BDale@kitchengroup.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div><span class="">
<p class="MsoNormal">  It shouldn't be difficult to do this.  Xymon has special parsing code for Devmon status messages.<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I couldn’t get this to work with the battery,power and powerin test for that ups template. I found this where someone had the same issue:
<a href="http://lists.xymon.com/pipermail/xymon/2011-April/031424.html" target="_blank">http://lists.xymon.com/pipermail/xymon/2011-April/031424.html</a></span></p></div></div></blockquote><div><br></div><div>Yeuch, that's an ugly hack.</div><div><br></div><div>There's special parsing code within Xymon that looks in status messages for the string "<!--DEVMON" (10 chars, no space) and I think this triggers it to look for a graph to display.</div><div><br></div><div>Elsewhere, there's a match against "<!--DEVMON RRD: " (16 chars) that appears to be for remapping the test name to an RRD base filename.</div><div><br></div><div>It could be that including one or both of these in your "message" file will give Xymon the hint that you want the graph displayed.</div><div><br></div><div>Actually, I think it's the first.  This is parsed in lib/htmllog.c.  The logic goes like this:</div><div><br></div><div>if a test has a graph</div><div>  then if a test starts with "devmon"</div><div>    assume that it has no graph</div><div>    if the status message has <!--DEVMON</div><div>      then assume that it has a graph</div><div><br></div><div>So the "devmon=xyz" form causes the code to assume there's no graph.  It's only if there is a subsequent "<!--DEVMON" string that Xymon will expect a graph.</div><div><br></div><div>J</div><div><br></div></div></div></div>