[hobbit] Variable lines in graphs
Hobbit Client
hobbitdoubt at gmail.com
Tue Apr 17 14:23:08 CEST 2007
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@=@RRDFN@:fan1:AVERAGE
DEF:p at RRDIDX@=@RRDFN@:fan2:AVERAGE
DEF:p at RRDIDX@=@RRDFN@:fan3:AVERAGE
DEF:p at RRDIDX@=@RRDFN@:fan4:AVERAGE
LINE2:p at RRDIDX@#@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
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070417/8f7f604f/attachment.html>
More information about the Xymon
mailing list