[Xymon] Send apache /server-status page to server via client.

Ralph Mitchell ralphmitchell at gmail.com
Wed Oct 30 03:07:06 CET 2013


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.

Ralph Mitchell

===== cut - here =====
#!/bin/sh

STATE=`curl -s -S http://localhost/server-status?auto`

$XYMON  $XYMSRV  "data $MACHINE.apache
$STATE"

exit 0
===== cut - here =====




On Tue, Oct 29, 2013 at 7:49 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>wrote:

> On 29 October 2013 19:48, deepak deore <deepakdeore2004 at gmail.com> wrote:
>
>> /server-stauts page can be accessed from localhost, is there a way where
>> xymon client can send /server-status page to the server ?
>
>
> You can just write a script on the client to fetch via localhost, and
> report to the Xymon server via a status message.
>
> 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:
>
>   file:`( echo "client/apache-status $MACHINE.$OSTYPE"; echo
> "[server-status]"; wget -q -O- http://127.1/server-status ) | $XYMON
> $XYMSRV @ >/dev/null`
>
> 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:
>
>   $XYMON $XYMSRV "clientlog $SERVERNAME section=server-status"
>
> and parse it for whatever you need.
>
>
> J
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131029/88011b00/attachment.html>


More information about the Xymon mailing list