David<div><br></div><div>One option is to send the output to a logfile (eg using "logger" for a syslog-managed file, or just "echo $MSG >> $LOGFILE"), and then monitor the log in Xymon.</div><div>

<br></div><div>This requires an entry in client-local.cfg to fetch the log data, and an entry in analysis.cfg to look for strings and generate alarms.  Check out the man pages for these two files for more information.  Here is an example from my configuration:</div>

<div><br></div><div>client-local.cfg:</div><div>  [dns1]</div><div><div>  log:/var/log/named/named.log:1024</div><div>        ignore \s(general|xfer-in|xfer-out):\sinfo:</div><div><div>  log:/var/tmp/svnsync.log:1024</div>

</div><div><br></div><div><br></div></div><div>analysis.cfg</div><div>  HOST=%^dns\d+</div><div><div>        LOG /var/log/named/named.log "%(critical|general: error:)" COLOR=red "IGNORE=%(zone serial unchanged)"</div>

</div><div><div>        LOG /var/tmp/svnsync.log %(ERROR) COLOR=red</div><div>        LOG /var/tmp/svnsync.log %(WARNING) COLOR=yellow</div></div><div><div><br></div><div>So here, I'm monitoring both the named.log file and the svnsync.log file.  I generate red or yellow alerts based on the log entries.</div>

<div><br></div></div><div>Cheers</div><div>Jeremy<br><br><div class="gmail_quote">On Wed, Jul 4, 2012 at 5:25 AM, Balderston, David <span dir="ltr"><<a href="mailto:dbalders@ucsd.edu" target="_blank">dbalders@ucsd.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey.  I have taken over zymon in my department recently and am just getting used to it.  Sorry if this is a repeat question, but everything I'm finding is for hobbit not xymon and it seems to be quite different.  I wrote a script that outputs the result to a file.  Im trying to have xymon alert based on certain phrases in the file.<br>


<br>
So on our main server page we have all of the ping imap etc.  We have a msgs column that is looking at system files.  Do you know where in the file structure this setting is located?  I cannot find where this is set so i can change it from the system files to the look at the right file.   Also, if someone has an example of what the syntax that i would put into that file to have it search that file, that would be amazing.  Lastly, do i need to do this on each client machine, or can it be done once on the server?<br>


<br>
thank you so much for your help.  I really appreciate it.<br>
<br>
David Balderston<br>
Core Bio Services<br>
<a href="mailto:dbalders@ucsd.edu">dbalders@ucsd.edu</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div><br></div>