Trying to create a graph
Tim McCloskey
tm at freedom.com
Wed Jun 9 22:37:24 CEST 2010
Not sure if this will help or just mis-guide you so take with a grain of salt.
Your config looks very similar to one of the graphs I recently added for a NetApp box. One thing that I did differently is in the use of the names. Here is an example:
hobbitserver.cfg:NCV_NA2CPU="NA2CPU:GAUGE"
NA2CPU=ncv is also defined in the other two vars in that file.
hobbitgraph.cfg
...
[NA2CPU]
-W redacted
TITLE NetApp2 CPU Busy
YAXIS NA2 CPU
DEF:NA2CPU=NA2CPU.rrd:NA2CPU:AVERAGE
COMMENT:5 min delayed \n
AREA:NA2CPU#00CC00:NA2CPU
GPRINT:NA2CPU:LAST: \: %5.0lf (cur)
GPRINT:NA2CPU:MAX: \: %5.0lf (max)
GPRINT:NA2CPU:MIN: \: %5.0lf (min)
GPRINT:NA2CPU:AVERAGE: \: %5.0lf (avg)\n
...
Regards,
Tim
________________________________________
From: d.tom.schmitt at L-3com.com [d.tom.schmitt at L-3com.com]
Sent: Wednesday, June 09, 2010 12:06 PM
To: hobbit at hswn.dk
Cc: W.J.M. Nelis
Subject: [hobbit] Trying to create a graph
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--
More information about the Xymon
mailing list