Xymon Mailing List Archive search

citirx user graph (sendmail graph)

3 messages in this thread

list Richard Deal · Wed, 25 May 2005 08:44:01 -0400 ·
Thanks I made that change and it looks good.
Any chance of getting the ntpstat script or having hobbit generate the ntpstat data with the built in ntp test?

I have added this entry for the sendmail monitoring:

[sendmail1]
        FNPATTERN sendmail.(.*).rrd
        TITLE Sendmail Reject/Discards
        YAXIS Messages
        DEF:p at RRDIDX@IN=@RRDFN@:msgsrej:AVERAGE
        DEF:p at RRDIDX@OUT=@RRDFN@:msgsdis:AVERAGE
        CDEF:p at RRDIDX@IN1=p at RRDIDX@IN,300,*
        CDEF:p at RRDIDX@OUT1=p at RRDIDX@OUT,300,*
        LINE1:p at RRDIDX@IN1#@COLOR@:@RRDPARAM@ REJ
        LINE2:p at RRDIDX@OUT1#@COLOR@:@RRDPARAM@ DIS
        COMMENT:\n
        GPRINT:p at RRDIDX@IN1:LAST:@RRDPARAM@ rej  %5.1lf (cur)
        GPRINT:p at RRDIDX@IN1:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@IN1:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@IN1:AVERAGE: \: %5.1lf (avg)
        COMMENT:\n
        GPRINT:p at RRDIDX@OUT1:LAST:@RRDPARAM@ dis  %5.1lf (cur)
        GPRINT:p at RRDIDX@OUT1:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@OUT1:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@OUT1:AVERAGE: \: %5.1lf (avg)\n
        COMMENT:\n


-----Original Message-----
From: Andy France [mailto:user-ee2a9e4eaf57@xymon.invalid] 
Sent: Tuesday, May 24, 2005 6:04 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] citirx user graph

user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) wrote on 24/05/2005 23:17:32:
http://www.hswn.dk/~henrik/citrix.zip
The citrix.bat file must run as a BBNT client extension - you probably
need to change the path to the BBNT\logs directory for your setup.
The Hobbit graphs should appear automagically.

Henrik
On Tue, May 24, 2005 at 06:46:00AM -0400, Deal, Richard wrote:
yes very interested, this is something we have been looking for to
help monitor our citrix cluster and keep track of license usage.
Thanks

-----Original Message-----
From: Henrik Storner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Tue 5/24/2005 5:11 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] citirx user graph

In <user-3e1b083d6fc9@xymon.invalid>
"Deal, Richard" <user-f6f804cb0a50@xymon.invalid> writes:
What script is used to generate the data for the citrix user graph
that
is defined in hobbit?
It doesn't seem to be using the bb-citrix.pl script on deadcat.
No, this is a custom BBNT client extension I wrote for work. It's
basically the output from "query session" passed through a filter
that counts the number of "Active" sessions and prints out "42 users
active" at the end of the report and sends it off to a "citrix" status
column in Hobbit.

If you're interested, I can put it up for download somewhere.

Regards,
Henrik
--
Henrik Storner
Cheers Henrik.  I was kind of wondering where that graph was going to come
from too!

Just in case any one else is interested, I have updated my hobbitgraph.cfg
entry for the citrix graph from:

[citrix]
        TITLE Citrix Users
        YAXIS # Users
        DEF:u=citrix.rrd:users:AVERAGE
        LINE2:u#FF0000:Users
        COMMENT:\n
        GPRINT:u:LAST:Current \: %5.1lf\n
        GPRINT:u:MIN:Min     \: %5.1lf\n
        GPRINT:u:AVERAGE:Average \: %5.1lf\n
        GPRINT:u:MAX:Max     \: %5.1lf\n

to:

[citrix]
        TITLE Citrix Users
        YAXIS # Users
        DEF:u=citrix.rrd:users:AVERAGE
        LINE2:u#FF0000:Users
        -l 0
        GPRINT:u:LAST: \: %5.1lf (cur)
        GPRINT:u:MAX: \: %5.1lf (max)
        GPRINT:u:MIN: \: %5.1lf (min)
        GPRINT:u:AVERAGE: \: %5.1lf (avg)\n

This makes the layout of the legend more consistent with the other graphs.

HTH,
Andy.

#####################################################################################

This email is intended for the person to whom it is addressed
only. If you are not the intended recipient, do not read, copy
or use the contents in any way. The opinions expressed may not
necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').

While every effort has been made to verify the information
contained herein, ZESPRI does not make any representations 
as to the accuracy of the information or to the performance
of any data, information or the products mentioned herein.
ZESPRI will not accept liability for any losses, damage or
consequence, however, resulting directly or indirectly from
the use of this e-mail/attachments.
#####################################################################################
list Henrik Størner · Sun, 29 May 2005 08:22:58 +0200 ·
On Wed, May 25, 2005 at 08:44:01AM -0400, Deal, Richard wrote:
Any chance of getting the ntpstat script 
It's basically this:


   #!/bin/sh

   $BB $BBDISP "data $MACHINE.ntpstat

   `ntpq -c \"rv 0 offset\"`
   "

   exit 0

Now, this won't work with the 4.0.3 ntpstat handler because I started
out with an existing script that did some formatting of the output. But
from 4.0.4 the "ntpq -c rv" output will be handled directly by Hobbit
and generate your ntpstat graph.

or having hobbit generate the ntpstat data with the built in ntp test?
I'm not 100% sure, but I think you cannot get the ntpstat data remotely.

I have added this entry for the sendmail monitoring:
Thanks, added.


Henrik
list Richard Deal · Tue, 31 May 2005 09:25:50 -0400 ·
To get the data remotely just add the remote hostname to the ntpq
command
rdeal at rdeal-lx % ntpq -c "rv 0 offset" ranger
assID=0 status=06a4 leap_none, sync_ntp, 10 events,
event_peer/strat_chg, offset=0.752

also to compensate for the output requirement I am using:
#!/bin/sh

$BB $BBDISP "data $MACHINE.ntpstat

`ntpq -c \"rv 0 offset\" | awk 'BEGIN {FS = \"=\"} $1 != \"offset\"
{print;} $1 == \"offset\" {print \"Offset: \", $2}' `
"

exit 0

probably a cleaner way to make the change but this is the first thing
that came to mind ;)
quoted from Henrik Størner


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Sunday, May 29, 2005 2:23 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] citirx user graph (sendmail graph)

On Wed, May 25, 2005 at 08:44:01AM -0400, Deal, Richard wrote:
Any chance of getting the ntpstat script 
It's basically this:


   #!/bin/sh

   $BB $BBDISP "data $MACHINE.ntpstat

   `ntpq -c \"rv 0 offset\"`
   "

   exit 0

Now, this won't work with the 4.0.3 ntpstat handler because I started
out with an existing script that did some formatting of the output. But
from 4.0.4 the "ntpq -c rv" output will be handled directly by Hobbit
and generate your ntpstat graph.

or having hobbit generate the ntpstat data with the built in ntp test?
I'm not 100% sure, but I think you cannot get the ntpstat data remotely.

I have added this entry for the sendmail monitoring:
Thanks, added.


Henrik