[Xymon] Send apache /server-status page to server via client.
jlaidman at rebel-it.com.au
Wed Oct 30 00:49:51 CET 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xymon