Xymon Mailing List Archive search

Trying to create a graph

list Tom Schmitt
Wed, 9 Jun 2010 13:06:46 -0600
Message-Id: <user-934b02d90736@xymon.invalid>

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  XXXXX

Phone (XXX) XXX-XXXX

Cell      (XXX) XXX-XXXX

eFax    (XXX) XXX-XXXX

user-9c1ae820b621@xymon.invalid

           \\\\||////

             \ ~  ~ /  

             | @  @ |   

--oOo---(_)---oOo--