[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] how to decrease default step of 300sec to 60sec in hobbitd_rrd
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] how to decrease default step of 300sec to 60sec in hobbitd_rrd
- From: Thomas Eckert <tom (at) IT-Eckert.de>
- Date: Sun, 08 Nov 2009 14:21:24 +0100
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1257686564; l=2894; s=domk; d=it-eckert.de; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:To:MIME-Version:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=94zwWOywyRNt13MKpLGgBuC5Ap4=; b=OnPLEjapmKZbB6IkyycIRs/JbSDW0NcvCjOTH37khycHebBnd1GA69m9+ry7NYmI+Z9 pDN24CBuYIowZwrNsnozrKxKmpHYHoaCBVEFVd1Im7t1BTHfDpiOCR9O49l+qj5wyOLhs Rmct/aZ67plU7R5tx03lmQRh/EVxWCUQId4=
- Organization: IT-Beratung Eckert - http://www.it-eckert.de/
- References: <OFA8C61BA8.CF568BAA-ONC1257667.007A6DF6-C1257667.007D99F3 (at) de.ibm.com>
- User-agent: Thunderbird 2.0.0.23 (X11/20091023)
Hi Norbert,
from a grep in the source (xymon-4.3.0_beta2) I _guess_ that it's in
hobbitd/do_rrd.c: around line 52:
/* How often do we feed data into the RRD file */
#define DEFAULT_RRD_INTERVAL 300
static int rrdinterval = DEFAULT_RRD_INTERVAL;
To make use of all this you need to send data every minute too of course.
Cheers,
Thomas
Norbert Kriegenburg wrote:
> Hi guys,
>
> we are monitoring with BigBrother/bbgen/xymon since a couple of years now
> with great success.
> Nothings beats the flexibility and speed of xymon.
>
> But now I have a problem I can't find a solution for (xymon 4.2.3. on
> RHEL):
>
> I have to design all the rrd files to collect data with a cycle of 60sec
> insted of the default 300sec.
> I found the places where I have to set up the new definitions of the RRAs
> in hobbitd_rrd.c:
>
> static char rra1[] = "RRA:AVERAGE:0.5:1:2880"; /* 60s for 2d */
> static char rra2[] = "RRA:AVERAGE:0.5:5:20160"; /* 60s for 2w */
> static char rra3[] = "RRA:AVERAGE:0.5:15:5760"; /* 900s for 8w */
> static char rra4[] = "RRA:AVERAGE:0.5:60:12096"; /* 1h for 18m */
> static char rra5[] = "RRA:MAX:0.5:1:2880";
> static char rra6[] = "RRA:MAX:0.5:5:20160";
> static char rra7[] = "RRA:MAX:0.5:15:5760";
> static char rra8[] = "RRA:MAX:0.5:60:12096";
>
> and the definitions in do_*.c to: sprintf(dsdef, "DS:lambda:%s:120:U:U",
> dstype);
> and so on to reflect the shorter cycle.
>
> Compiled everything, and copy the new hobbit_rrd as hobbit_rrd1minute into
> $BBHOME/bin
> I created a new channel (in parallel to the working hobbit_rrd) with own
> rrd-dir and logfile:
>
> [rrdstatus1minute]
> ENVFILE /opt/xymon/server/etc/hobbitserver.cfg
> NEEDS hobbitd
> CMD hobbitd_channel --channel=status --log=
> $BBSERVERLOGS/rrd-status1minute.log hobbitd_rrd1minute --rrddir=
> $BBVAR/rrd1minute
> INTERVAL 1m
>
> Everything is working, the rrdfiles where created, but if I do a "rrdtool
> info examplefile.rrd", I only find the default step of 300s:
>
> rrd_version = "0003"
> step = 300
> last_update = 1257631284
> ds[lambda].type = "GAUGE"
> ds[lambda].minimal_heartbeat = 120
>
> There are no values collected ("NaN"), and all files where updated only
> every 5min and not every 60s.
>
> I did'nt find the place, where I can define the rrdcreate with "--step
> 60".
>
> Unfortunately I have no chance to switch everything to extra-scripts,
> because we have a quite complex and dynamic environment in our monitoring
> and I'm glad, that everything is running smooth (mostly using SPLITNCV).
>
> Any hints, what I have to change to collect my rrd-values with a 60sec
> cycle?
>
> help is greatly appreciated
> thank you
>
> Mit freundlichen Grüßen / Kind regards
>
> Norbert Kriegenburg
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>