[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Variable lines in graphs
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Variable lines in graphs
- From: "Hobbit Client" <hobbitdoubt (at) gmail.com>
- Date: Tue, 17 Apr 2007 14:23:08 +0200
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=p3MND+tag9JZURvILGAY3aGRjHGh5VuBkbOE8g8fPn6/En32+l2D3GU4CEU/Wy7CcE+bEUf/JaiGsPrm9NDUktG9Dw87ctxkVAbbb9IwQjSwRmbGubBL55HoMLttl8ImH7zmqvO59fX+Ybe4NMF30hNtDl9ZFmrtd+tu1a2WgRk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YeoGbKwoUPCcLe66fDVyq5fvC3OdtDtaWch68LEhwroD2slDtDaOM986H4uysy4xjVVI9mbBGMPuJyfPfAXpkrAzvPyrtrEFX3FbLHN+cY8zwjnNn2IjDon5VJIPTcVipmN46ZhWLhYCqozsnE8O7k/uJZi0HgLOUQBOF599oGk=
- References: <1c124db0704131348v29da0a90kd37036cd12df9e08 (at) mail.gmail.com> <20070416101247.GB2873 (at) cgoyard1.exp75.cvf> <1c124db0704160420h68cf8d02x7f3a07af9c2bdac6 (at) mail.gmail.com> <20070416115925.GC2873 (at) cgoyard1.exp75.cvf> <1c124db0704160601j485269bpbc29df193577136d (at) mail.gmail.com>
Hello,
I run the command as you told me and I have had some problems:
[root (at) proyServer hobbit-4.2.0]# patch -p1 < split-ncv2.patch
(Stripping trailing CRs from patch.)
patching file hobbitd/do_rrd.c
(Stripping trailing CRs from patch.)
patching file hobbitd/do_rrd.h
(Stripping trailing CRs from patch.)
patching file hobbitd/hobbitd_rrd.8
(Stripping trailing CRs from patch.)
patching file hobbitd/hobbitd_rrd.c
(Stripping trailing CRs from patch.)
patching file hobbitd/rrd/do_ncv.c
Hunk #1 FAILED at 5.
Hunk #2 FAILED at 18.
Hunk #3 FAILED at 94.
3 out of 3 hunks FAILED -- saving rejects to file hobbitd/rrd/do_ncv.c.rej
Then, I have recompiled, reintalled and restarted Hobbit and I have changed
hobbitserver.cfg and hobbitgraph.cfg:
Hobbitserver.cfg:
TEST2RRD="cpu=la,disk, ... , fan=ncv"
SPLITNCV_fan="fan1:GAUGE,fan2:GAUGE,fan3:GAUGE,fan4:GAUGE"
Hobbitgraph,cfg:
[fan]
FNPATTERN fan\.(.*)\.rrd
TITLE Fan Speed
YAXIS RPM
DEF:p (at) RRDIDX@= (at) RRDFN@:fan1:AVERAGE
DEF:p (at) RRDIDX@= (at) RRDFN@:fan2:AVERAGE
DEF:p (at) RRDIDX@= (at) RRDFN@:fan3:AVERAGE
DEF:p (at) RRDIDX@= (at) RRDFN@:fan4:AVERAGE
LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
GPRINT:p (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:p (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:p (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:p (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
The scripts send the information as:
fan1 : $fan1 rpm
fan2 : $fan2 rpm
...
according to the number of fans.
Now I don´t have any .rrd file. Can you help me? Thanks!
2007/4/16, Hobbit Client <hobbitdoubt (at) gmail.com>:
Thanks! I will try it.
2007/4/16, Charles Goyard <charles.goyard (at) orange-ftgroup.com >:
>
> Hobbit Client wrote :
> >
> > So, I have to add each line with "+" in the files you say
>
> Yes, you can do that manually if you want, but the "patch" command does
> it for you :)
>
> To keep it straight:
>
> - the patch applies to the source code. If you installed hobbit from a
> binary package rather than source, then you'll have to get the source
> first.
> - change to the source directory of hobbit (cd /usr/local/src/hobbit-
> 4.2.0)
> - run the command: patch -p1 < /path/to/split-ncv2.patch
> - recompile hobbit
> - reinstall (you can reinstall only hobbitd_rrd if you want)
> - restart hobbit (or just kill the hobbitd_rrd, it will be restarted)
>
>
> Hope that helps,
>
> --
> Charles Goyard - charles.goyard (at) orange-ftgroup.com - (+33) 1 45 38 01 31
>
> Orange Business Services - online multimedia // ingénierie
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>