[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] custom RRD data
- To: <hobbit (at) hswn.dk>
 
- Subject: RE: [hobbit] custom RRD data
 
- From: "Fabio Flores" <fabio.flores (at) flytxt.com>
 
- Date: Mon, 6 Jun 2005 12:49:18 +0100
 
- Importance: Normal
 
Thanks for the previous reply but I still couldnt get the graph. Here is the
full picture of what Ive done!
1) Ive created the script that will collect the information:
|#!/bin/sh
|# Input parameters: Hostname, testname (column), and messagefile
|HOSTNAME="$1"
|TESTNAME="$2"
|FNAME="$3"
|
|#NumProcs
|
|if [ "$TESTNAME" = "NumProcs" ]
|then
|        # Analyze the message we got
|        numprocs=`grep "^OK - " $FNAME | awk '{print $2}'`
|
|       # The RRD dataset definitions
|        echo "DS:numprocs:GAUGE:600:0:1000"
|
|        # The filename
|        echo "numprocs.rrd"
|
|        # The data
|        echo "$numprocs"
|fi
|
|exit 0
2) After that I`ve inserted the following on my hobbitlauch.cfg:
|--extra-script=/usr/local/hobbit/server/etc/customgraphs.sh --extra-test=Nu
mProcs
on both [larrdstatus] and [larrddata] blocks.
3) Then, I added the test "NumProcs" into the LARRDS= on my hobbitserver.cfg
4) Finally I put this settings on my hobbitgraph.cfg
|[NumProcs]
|        TITLE Number of Processes Running
|        YAXIS Processes
|        DEF:numprocs=numprocs.rrd:numprocs:AVERAGE
|        LINE2:numprocs#00CCCC:Number of Processes
|        COMMENT:\n
|        GPRINT:numprocs:LAST: \: %5.1lf (cur)
|        GPRINT:numprocs:MAX: \: %5.1lf (max)
|        GPRINT:numprocs:MIN: \: %5.1lf (min)
|        GPRINT:numprocs:AVERAGE: \: %5.1lf (avg)\n
5) Re-started hobbit, and the graph is not there.
Any help would be more then appreciated.
Thanks,
Fabio