[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Sending data from script to an rrd
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Sending data from script to an rrd
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Wed, 18 Oct 2006 13:24:06 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dMR95muB+zQ22+Wq9aLUOP4LrcSXow8xwgXriigIwK5F16EtjykolpXVVM8bhrps6yoZL4e3XD5Xi+NUcFyixrK+Pwjjb8PYNUlrIF5vbwuJxsIu8bQhlQ3XwwFw3eizbk+FdUqRWBheB2Ah5UpiBImyqqljgnAdWQHiRxm1c5A=
- References: <64402.10.0.0.1.1161193350.squirrel@www.tumfatig.net> <45366EA0.5020600@solutionsforprogress.com>
On 10/18/06, Rob Munsch <rmunsch (at) solutionsforprogress.com> wrote:
I've gone over the manpages and i'm still confused, sorry. Do i need to
call another channel with the --extra-tests option? Is it in a config
file somewhere? The sample script of "weather in Copenhagen" is a
little opaque, it just shows a bunch of echoes but not their context.
Is THAT script called by another within hobbit? Lastly is there a howto
somewhere for exporting one's custom script data to RRD?
When you add the --extra-script option in the [rrdstatus] block, what
you're doing is handing the hobbit_rrd program another way to process
information. Your script is fired up with the hostname, column name
and the name of a file containing the log message, all on the command
line. The hobbit_rrd then watches the script's standard output for
dataset definitions (in case the RRD doesn't exist yet), then a number
of colon-separated values to stuff into the RRD. hobbit_rrd takes
care of the RRD creation and stuffing, you just need to echo out the
correct format.
It took me several iterations to get this straight... :)
Ralph