[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Trying to create a graph
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Trying to create a graph
- From: Patrick Nixon <pnixon (at) gmail.com>
- Date: Fri, 11 Jun 2010 13:55:20 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wDFLGIfUB+S2NPCoSg8hpdKwbEob87LzdnFrA4iH0is=; b=l2HnFkroAn1yQuIb6yJPctigR1VDd3BJIPZYZOsejyMCREQjfOP60w4wd2psm0krUI Pl7EVqVCH6LcHwHPb1awB6HjgqNkpOEzmdKZfvSOd0bzVFXTSx39aKDdV5IEjqjHKugf CKzM9M+sWySEpbpXhaCGIQWA07jTtJ6B9VkA8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nrb2iOHRFCS58UDM56sgy9Sl+SLUwyBpzx5gez1d1GfUPf8M+7WPIRVNsd2loP/lnF yyg90hjsXKaTIGQ0b0mGnhs6FdeTYVwNuHNl2hLqKBmxYu2YlrpA/Fe13Gdj7N/dysrf gBePOa7z2RK1zixbTtdys5jYvnWDPimNQWipM=
- References: <BCC2C1D482443C4995A420541C21C057010BE0 (at) SLXCG02.csw.l-3com.com>
two things I would look at
1.) See if you have actual data in the rrd file, if not, no graph
(rrdtool dump FILENAME)
2.) See if changeing it from label:value to label : value makes a difference.
On Wed, Jun 9, 2010 at 3:06 PM, <d.tom.schmitt (at) l-3com.com> wrote:
> All assistance is greatly appreciated!
>
>
>
>
>
> I have a simple number that I want to have graphed in Xymon.
>
> Running 4.3.0-0.beta2 on CentOS 5.4.
>
>
>
> I have a script that is populating the information from our Juniper SSLVPN
> device(s).
>
> I created a new ICON ‘online’ where there is a lot of information passed for
> display by clicking the ‘online’ icon.
>
> This is done using ‘bb’ with ‘status’.
>
>
>
> One of the values displayed is the number of web users.
>
> I create a file of values for a history but I want to pass the value from
> each run to the Xymon as ‘data’ to ‘bb’.
>
>
>
> The pair from each run is: USERS:277 with the 277 changing with
> every 5 minute run.
>
>
>
> I placed the script in the /home/xymon/server/ext directory called:
> SNMP-Juniper.sh
>
>
>
> Per the Xymon Help à custom graphs document:
>
>
>
> I edited the following files:
>
>
>
> /home/xymon/server/etc/hobbitlaunch.cfg
>
>
>
> # Tom Schmitt script in server/ext directory
>
> [online]
>
> ENVFILE /home/xymon/server/etc/hobbitserver.cfg
>
> CMD
> /home/xymon/server/ext/SNMP-Juniper.sh
>
> LOGFILE
> $BBSERVERLOGS/SNMP-Juniper.sh.log
>
> INTERVAL 5m
>
>
>
> /home/xymon/server/etc/hobbitgraph.cfg
>
> I only want to see a single line showing the number of USERS
> at the 5 minute timeframes.
>
>
>
> # Tom Schmitt SNMP-Juniper.sh in ext directory
>
> [online]
>
> TITLE Count of Juniper
> Users
>
> YAXIS Users
>
>
> DEF:in=online.rrd:online:AVERAGE
>
> AREA:in#00CC00:Usage
>
> COMMENT:Licensed for 600
> users\n
>
> GPRINT:in:LAST:Cur\: %6.2lf
> %s
>
> GPRINT:in:MAX: Max\: %6.2lf
> %s
>
> GPRINT:in:MIN: Min\: %6.1lf
> %s
>
> GPRINT:in:AVERAGE:Avg\:
> %6.2lf %s\n
>
> # End of SNMP-Juniper.sh graph
>
>
>
> /home/xymon/server/etc/hobbitserver.cfg
>
>
>
> At the end of the TEST2RRD=”…..,online=ncv”
>
> At the end of the GRAPHS=”…..,online” This
> was mentioned elsewhere so I tried it.
>
> Added the following line:
>
> NCV_online=”USERS:GAUGE”
>
>
>
>
>
> I only see a small graph box with “X hobbitgraph ncv:online” in the box
> under the icons: online and trends
>
> But no data graphed
>
> If you click on it, you get the hourly, daily, weekly monthly graph as a
> small box with no data either.
>
>
>
> Thanks,
>
>
>
> Tom Schmitt
>
> Senior IT Staff - R&D
>
> L-3 Communication Systems West
>
> 640 North 2200 West
>
> P.O. Box 16850
>
> Salt Lake City, UT 84116
>
> Phone (801) 594-3030
>
> Cell (801) 231-7230
>
> eFax (413) 480-6873
>
> D.Tom.Schmitt (at) L-3Com.com
>
> \\\\||////
>
> \ ~ ~ /
>
> | @ @ |
>
> --oOo---(_)---oOo--
>
>