<div dir="ltr">Have you considered creating a very simple client data message containing just the [free] section, and let Xymon parse the output?</div><br><div class="gmail_quote"><div dir="ltr">On Fri, 12 Oct 2018 at 09:46, John Thurston <<a href="mailto:john.thurston@alaska.gov">john.thurston@alaska.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We run xymon servers the old-school way*: local config of clients with <br>
client-side evaluation of thresholds. I run a mashup of ancient BB, <br>
newer BBPE, and even newer xymon clients.<br>
<br>
I'm in need of memory monitoring on a CentOS 7 host. The client I have <br>
there (I think it is a BBPE version) doesn't provide it. So I reached <br>
back and grabbed a bb-memory.sh from some other system. But it doesn't <br>
work cleanly :(<br>
<br>
For linux, the script captures the output of 'free -m' and then <br>
populates variables:<br>
   FREE_PHYS<br>
   FREE_ACT<br>
   FREE_SWAP<br>
by grepping lines from the result:<br>
   Mem<br>
   +<br>
   Swap<br>
and my version of 'free' (3.3.10) has moved the '+/-' information up <br>
into a new column in the 'Mem' line. I don't see a way to adjust the <br>
'free' command to return results in the old format, so I'll need to <br>
accommodate the new format in the shell script.<br>
<br>
Before I go dive in and engineer my own parser, I thought I'd ask here:<br>
   Does anyone have a bb-memory.sh they'd share with me?<br>
<br>
Alternatively, I could remove the old client and install something <br>
newer. But the last time I tried compiling the client with the <br>
'local-config' option, it didn't work out well. So my second question is:<br>
   Is there a linux client package that correctly support local-config?<br>
<br>
<br>
* Yeah, I know there are plenty who think this is a terrible idea and <br>
can't stand the concept. But I don't own most of the hosts. So I don't <br>
want to have them dragging my central code down to them. Nor do I know <br>
the business rules which define success or failure. It's up to the owner <br>
of the host to set those things.<br>
<br>
<br>
-- <br>
    Do things because you should, not just because you can.<br>
<br>
John Thurston    907-465-8591<br>
<a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a><br>
Department of Administration<br>
State of Alaska<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>