Hi all,
Im trying to build my own RRD graphs. I've done my shell-script already, and also I'm aware that I've got to modify hobbitgraph.cfg and hobbitserver.cfg.
But im not sure where should I put the --extra-script and --extra-tests options. Should I add another line to hobbitcgi.cfg ? If so, what would be the correct syntax?
Thanks,
Fabio
In <JLEJLJGJHPOLLNKDFKHOAEGNCAAA.fabio.flores at flytxt.com> "Fabio Flores" <fabio.flores at flytxt.com> writes:
Im trying to build my own RRD graphs. I've done my shell-script already, and also I'm aware that I've got to modify hobbitgraph.cfg and hobbitserver.cfg.
But im not sure where should I put the --extra-script and --extra-tests options. Should I add another line to hobbitcgi.cfg ? If so, what would be the correct syntax?
On the commandline for the hobbitd_larrd tool (ie. in hobbitlaunch.cfg)
Henrik
Thanks for the previous reply but I still couldnt get the graph. Here is the full picture of what Ive done!
- 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
- 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.
Then, I added the test "NumProcs" into the LARRDS= on my hobbitserver.cfg
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
- Re-started hobbit, and the graph is not there.
Any help would be more then appreciated.
Thanks,
Fabio
On Mon, Jun 06, 2005 at 12:49:18PM +0100, Fabio Flores wrote:
Thanks for the previous reply but I still couldnt get the graph. Here is the full picture of what Ive done!
Ive created the script that will collect the information: [snip]
After that I`ve inserted the following on my hobbitlauch.cfg: [snip]
Then, I added the test "NumProcs" into the LARRDS= on my hobbitserver.cfg
Finally I put this settings on my hobbitgraph.cfg
Looks OK - but: Do you have some extension script running on the client that sends in a status- or data-message for a "NumProcs" column ? The extra-scripts are for custom tests you run, so that kind of has to be setup first.
I'm also wondering if you're actually duplicating some data that is already there. The default Unix- and Windows BB clients report the number of processes running on the host - it's already available if you click on the "trends" column, just look at the graph titled "Users and Processes".
Regards, Henrik
I do have the script for my NumProcs monitor, on the hobbit console it shows:
|Tue Jun 7 12:28:31 BST 2005 |OK - 236 processes running
But again, no graph. Ive decided to start with a simple graph then move to a more complex one.
I cant see many things on the log files, apart from a few "2005-06-07 12:42:38 Unknown option : --larrd043" on bb-display.log
Anyone knows what the
"2005-06-07 12:42:38 Unknown option : --larrd043" on bb-display.log ?
Im still trying to produce my graph, but for some reason its not working. I wonder if is there anything else I could investigate. Any logs, outputs, etc.
Thanks
-----Original Message----- From: Fabio Flores [mailto:fabio.flores at flytxt.com] Sent: 07 June 2005 12:49 To: hobbit at hswn.dk Subject: RE: [hobbit] custom RRD data
I do have the script for my NumProcs monitor, on the hobbit console it shows:
|Tue Jun 7 12:28:31 BST 2005 |OK - 236 processes running
But again, no graph. Ive decided to start with a simple graph then move to a more complex one.
I cant see many things on the log files, apart from a few "2005-06-07 12:42:38 Unknown option : --larrd043" on bb-display.log
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Wed, Jun 08, 2005 at 11:13:40AM +0100, Fabio Flores wrote:
Anyone knows what the
"2005-06-07 12:42:38 Unknown option : --larrd043" on bb-display.log ?
The larrd-specific options for bbgen were dropped during one of the beta-versions. Just remove that from the bbgen command in hobbitlaunch.cfg
Henrik
Hi folks, Hi Henrik..
i am searching for an option to generate plaintext single service status availability report, as well done by "bb-replog.cgi", but using a mechanism which do it on a periodical basis. Something identical to "bbgen" reporting options, probably one i've overlooked yet.
Any help would be appreciated. :)
Greetings,
Anatoli Bogajewski
participants (3)
-
cits.bogajewski@daimlerchrysler.com
-
fabio.flores@flytxt.com
-
henrik@hswn.dk