[Xymon] Custom script working as the builtin http test

Heine Andersen heine.andersen at gmail.com
Wed Nov 7 15:17:09 CET 2012


ofc, thx for the help, everything is working now :)


On Tue, Nov 6, 2012 at 4:13 PM, W.J.M. Nelis <Wim.Nelis at nlr.nl> wrote:

> Hello Heine,
>
>
>  Great ! now im getting data in two rrd files, i just cant display them,
>> this is what i put in my graphs.cfg
>>
>> [mqnet]
>> FNPATTERN ^mqnet.(.+).rrd
>> TITLE MQ Put Get Times
>> YAXIS ms
>> DEF:put at RRDIDX@=@RRDFN@:ms:**AVERAGE
>> DEF:get at RRDIDX@=@RRDFN@:ms:**AVERAGE
>> LINE2:put at RRDIDX@#@COLOR@:@**RRDPARAM@
>> LINE2:get at RRDIDX@#@COLOR@:@**RRDPARAM@
>> GPRINT:put at RRDIDX@:LAST:Put \: %5.1lf%s (cur)
>> GPRINT:put at RRDIDX@:MAX: \: %5.1lf%s (max)
>> GPRINT:put at RRDIDX@:MIN: \: %5.1lf%s (min)
>> GPRINT:put at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
>> GPRINT:get at RRDIDX@:LAST:Get\: %5.1lf%s (cur)
>> GPRINT:get at RRDIDX@:MAX: \: %5.1lf%s (max)
>> GPRINT:get at RRDIDX@:MIN: \: %5.1lf%s (min)
>> GPRINT:get at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
>>
>> the graphs are just blank, any tips on how to debug this ?
>>
> Assuming you've used the DEVMON way as described below, you will have two
> datasets (DS) in both RRD files. The DS-names are 'put' and 'get'. You can
> check this by using 'rrdtool info mqnet*rrd'. If this is correct, you can
> change the DEF lines in the graph-definition accordingly, that is replace
> ms by put or get.
>
> HTH,
>   Wim Nelis.
>
>  On Tue, Nov 6, 2012 at 1:51 PM, W.J.M. Nelis <Wim.Nelis at nlr.nl
>> <mailto:Wim.Nelis at nlr.nl>> wrote:
>>
>>     Hello,
>>
>>
>>         I'm trying to write a server side script to monitor MQ put/get
>>         status and
>>         times,
>>         the script output looks like this :
>>
>>
>>         Tue Nov 6 09:08:38 CET 2012
>>
>>
>>         MQ1 - OK
>>
>>         put : 21
>>         get : 20
>>         MQ2 - OK
>>
>>         put : 20
>>         get : 20
>>
>>
>>         The script works well, but i can't figure out how to do the graphs
>>         the same
>>         way as the built in
>>         http, that is with multiple test showing up in the same graph, is
>> that
>>         possible ?
>>
>>     I can think of three different ways to do this type of work in Xymon.
>> A
>>     relative simple way is to use the same way devmon is using.
>>
>>     If you make the output of the script to contain something like:
>>
>>     <!-- linecount=2 -->
>>     <!--DEVMON RRD: XYZ 0 0
>>     DS:put:GAUGE:600:0:U DS:get:GAUGE:600:0:U
>>     mq1 21:20
>>     mq2 20:20
>>     -->
>>
>>     and add to xymonserver.cfg:
>>     TEST2RRD= ...,ABC=devmon
>>
>>     (in which ABC is the name of the test / column), you're done. It will
>>     create for the host for which this test is reported two RRD's called
>>     XYZ.mq1.rrd and XYZ.mq2.rrd. With a suitable graph definition you can
>>     show this in one graph.
>>
>>     HTH,
>>     Wim Nelis.
>>
>
>
>
>
> ****************************************************************
> ********************************************************
>
> The NLR disclaimer is valid for NLR e-mail messages.
>
> This message is only meant for providing information. Nothing in this
> e-mail message amounts to a contractual
> or legal commitment on the part of the sender.
> This message may contain information that is not intended for you. If you
> are not the addressee or if this
> message was sent to you by mistake, you are requested to inform the sender
> and delete the message.
> Sender accepts no liability for damage of any kind resulting from the
> risks inherent in the electronic
> transmission of messages.
>
> ****************************************************************
> ********************************************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20121107/6ae3c03e/attachment.html>


More information about the Xymon mailing list