<div dir="ltr">Hi Ralph,<div>I have setup this script on client side to run after every 1 minute.</div><div>On server hosts.cfg i changed the line as below:</div><div><br></div><div>1.2.3.4   <a href="http://server1.example.com" target="_blank">server1.example.com</a>  # apache=<a href="http://127.0.0.1/server-status?auto" target="_blank">http://127.0.0.1/server-status?auto</a> noconn nofiles nobbd CLASS:WEB TRENDS:*,vmstat:vmstat1|vmstat3|vmstat4|vmstat5|apache:apache|apache1|apache2|apache3<br>


</div><div><br></div><div>But I am not getting the apache graph in trends. Could you tell what am I doing wrong?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 7:37 AM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You can simulate the "apache" tag in the xymon hosts.cfg by running little script on the client itself.  It reports the short-form server-status info as a data message that will be picked up on the xymon server and reported on the trends page.<div>



<br></div><div>Ralph Mitchell<br><div><br></div><div>===== cut - here =====</div><div><div>#!/bin/sh</div><div><br></div><div>STATE=`curl -s -S <a href="http://localhost/server-status?auto" target="_blank">http://localhost/server-status?auto`</a></div>



<div><br></div><div>$XYMON  $XYMSRV  "data $MACHINE.apache</div><div>$STATE"</div><div><br></div><div>exit 0</div></div><div><div>===== cut - here =====</div></div></div><div><br></div><div><br></div></div><div class="gmail_extra">



<br><br><div class="gmail_quote"><div><div>On Tue, Oct 29, 2013 at 7:49 PM, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_quote">On 29 October 2013 19:48, deepak deore <span dir="ltr"><<a href="mailto:deepakdeore2004@gmail.com" target="_blank">deepakdeore2004@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">/server-stauts page can be accessed from localhost, is there a way where xymon client can send /server-status page to the server ?</blockquote>





</div><div class="gmail_extra"><br></div></div>You can just write a script on the client to fetch via localhost, and report to the Xymon server via a status message.</div><div class="gmail_extra"><br></div><div class="gmail_extra">





However, if you're unable to get a script running on the client, you can probably do something in client-local.cfg on the Xymon server.  For example, setup a "file:" entry like so:</div><div class="gmail_extra">





<br></div><div class="gmail_extra">  file:`( echo "client/apache-status $MACHINE.$OSTYPE"; echo "[server-status]"; wget -q -O- <a href="http://127.1/server-status" target="_blank">http://127.1/server-status</a> ) | $XYMON $XYMSRV @ >/dev/null`</div>





<div class="gmail_extra"><br></div><div class="gmail_extra">You should end up with the server status output in the client data for the server.  You can then fetch it server-side from a script by using:</div><div class="gmail_extra">





<br></div><div class="gmail_extra">  $XYMON $XYMSRV "clientlog $SERVERNAME section=server-status"</div><div class="gmail_extra"><br></div><div class="gmail_extra">and parse it for whatever you need.</div><span><font color="#888888"><div class="gmail_extra">





<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">J</div><div class="gmail_extra"><br></div></font></span></div>
<br></div></div>_______________________________________________<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" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>