Trying to create a graph

d.tom.schmitt at L-3com.com d.tom.schmitt at L-3com.com
Wed Jun 9 21:06:46 CEST 2010


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--

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100609/da615080/attachment.html>


More information about the Xymon mailing list