[Xymon] Send apache /server-status page to server via client.
deepak deore
deepakdeore2004 at gmail.com
Wed Oct 30 08:41:57 CET 2013
Hi Ralph,
I have setup this script on client side to run after every 1 minute.
On server hosts.cfg i changed the line as below:
1.2.3.4 server1.example.com #
apache=http://127.0.0.1/server-status?autonoconn nofiles nobbd
CLASS:WEB
TRENDS:*,vmstat:vmstat1|vmstat3|vmstat4|vmstat5|apache:apache|apache1|apache2|apache3
But I am not getting the apache graph in trends. Could you tell what am I
doing wrong?
On Wed, Oct 30, 2013 at 7:37 AM, Ralph Mitchell <ralphmitchell at gmail.com>wrote:
> 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`<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/20131030/fce91720/attachment.html>
More information about the Xymon
mailing list