<br><br><div class="gmail_quote">On Thu, Dec 20, 2012 at 11:20 PM, David Rosenstrauch <span dir="ltr"><<a href="mailto:darose@darose.net" target="_blank">darose@darose.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi just wondering if anyone might know of a plugin that does what I'm<br>
looking for.<br>
<br>
The idea is that it would work similar to check_mysql_query, in that it<br>
checks the numeric value return by a query against warning and critical<br>
threshold values.  But instead of querying mysql, it would just cat the<br>
contents of a text file.  I.e., read the first line and first column of<br>
a text file, parse it as a number, and then compare it against the<br>
threshold values.<br>
<br>
It obviously wouldn't be too hard to write a plugin like this, but I<br>
figured I'd try to see if one existed in order to not re-invent the wheel.<br>
<br>
A search through Nagios Exchange didn't turn anything up.  But I thought<br>
someone on the list might know of one, or have already written one<br>
themselves.<br>
<br>
Thanks,<br>
<br>
DR<br>
<br></blockquote><div><br>Hi,<br><br><font face="courier new,monospace">I wrote something similar to this a while back, it looks at data pairs in a text file eg <DataName>:<DataValue>.<br><br>It should not be to hard to make it work with csv, you will have to ignore the shoddy coding though!<br>

<br><a href="http://23.me.uk/scripts/check_jmxview.pl.text">http://23.me.uk/scripts/check_jmxview.pl.text</a><br></font><font face="courier new,monospace"><font face="courier new,monospace"><a href="http://23.me.uk/scripts/">http://23.me.uk/scripts/</a></font>check_jmxview.server.cfg.text<br>

<br>I might even be able to find the Nagios related config for this if needs be.<br><br>Ritchie<br clear="all"></font><div>--<br><-- <a href="http://23.me.uk/2" target="_blank">http://23.me.uk/2</a> --><br><--Time flies like an arrow; fruit flies like a banana.  --></div>

 
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
------------------------------------------------------------------------------<br>
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial<br>
Remotely access PCs and mobile devices and provide instant support<br>
Improve your efficiency, and focus on delivering more value-add services<br>
Discover what IT Professionals Know. Rescue delivers<br>
<a href="http://p.sf.net/sfu/logmein_12329d2d" target="_blank">http://p.sf.net/sfu/logmein_12329d2d</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>