Hi all
Is there any way to define a graph definition for values that may or may not be available.
Let's work with CPU temperature, just as an example.
In hobbitserver.cfg, I can define this NCV_systemp="*:GAUGE" (And the other ncv definitions) It then generates rrd files for all the servers.
However, some systems have 1 cpu, some have 2, and some 4. So the rrd files only have entries for the number of CPUs.
In the hobbitgraph.cfg we can define the graph, with 4 cpu temperatures, but if the rrd file doesn't contain 4 fields (i.e. system has only 2 CPUs), it doesn't generate a graph. It is also not possible to have a separate graph definition for 1, 2 and 4 CPU systems.
The other way round it, is to have each CPU in a separate file, and define FNPATTERN= with a wildcard. But how do we get the ncv module to put each field in a sepreate rrd file?
Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
Hi Vernon,
You need to write your own backend data collector and have hobbit pass the data to it through a change in hobbitlaunch. You parse the data yourself at the server side and then build a single rrd file for every entry. You then use the FNPATTERN as you have already specified...
From memory, I think this is lightly covered in the man pages.
Cheers
Phil
2008/10/27 Everett, Vernon <Vernon.Everett at woodside.com.au>:
Hi all
Is there any way to define a graph definition for values that may or may not be available.
Let's work with CPU temperature, just as an example.
In hobbitserver.cfg, I can define this NCV_systemp="*:GAUGE" (And the other ncv definitions) It then generates rrd files for all the servers.
However, some systems have 1 cpu, some have 2, and some 4. So the rrd files only have entries for the number of CPUs.
In the hobbitgraph.cfg we can define the graph, with 4 cpu temperatures, but if the rrd file doesn't contain 4 fields (i.e. system has only 2 CPUs), it doesn't generate a graph. It is also not possible to have a separate graph definition for 1, 2 and 4 CPU systems.
The other way round it, is to have each CPU in a separate file, and define FNPATTERN= with a wildcard. But how do we get the ncv module to put each field in a sepreate rrd file?
Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
Hi Phil
Have you, or anybody else on the list, got an example of such a script?
Thanks Vernon
-----Original Message----- From: Phil Wild [mailto:philwild at gmail.com] Sent: Thursday, 30 October 2008 4:43 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Graph definitions
Hi Vernon,
You need to write your own backend data collector and have hobbit pass the data to it through a change in hobbitlaunch. You parse the data yourself at the server side and then build a single rrd file for every entry. You then use the FNPATTERN as you have already specified...
From memory, I think this is lightly covered in the man pages.
Cheers
Phil
2008/10/27 Everett, Vernon <Vernon.Everett at woodside.com.au>:
Hi all
Is there any way to define a graph definition for values that may or may not be available.
Let's work with CPU temperature, just as an example.
In hobbitserver.cfg, I can define this NCV_systemp="*:GAUGE" (And the other ncv definitions) It then generates rrd files for all the servers.
However, some systems have 1 cpu, some have 2, and some 4. So the rrd files only have entries for the number of CPUs.
In the hobbitgraph.cfg we can define the graph, with 4 cpu temperatures, but if the rrd file doesn't contain 4 fields (i.e. system has only 2 CPUs), it doesn't generate a graph. It is also not possible to have a separate graph definition for 1, 2 and 4 CPU systems.
The other way round it, is to have each CPU in a separate file, and define FNPATTERN= with a wildcard. But how do we get the ncv module to put each field in a sepreate rrd file?
Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
Hi Vernon, Phil,
I'm actually using custom scripts, as I wanted a bit more flexible formatting in the report. There is however an easier way if you want to have a standard NCV report - use SPLITNCV instead of NCV. There was a brief question about this back in the summer, but the only source of info I've found really is the sourcecode.
In hobbitserver.cfg, instead of NCV_<testname> write SPLITNCV_<testname>. Everything else is as for NCV.
This will generate one RRD file for each colon-defined <datasource> line in the test file, named "<testname>,<datasource>.rrd" (and yes the first separator is a comma). Internally the RRD file datasource is named "lambda", as there is only one datasource per file.
Then in the hobbitgraph.cfg definition, use something like
FNPATTERN ^<testname>.(.+).rrd # yes the first separator is a full-stop/period TITLE and YAXIS as usual DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDMETA@ GPRINT:p at RRDIDX@:LAST:@RRDMETA@ \: %5.1lf%s (cur)
etc
(I assume you know about the replaceable parameters in the definition language - it all looked very byzantine when I first came across it a few weeks ago, but I can explain it if necessary)
There is a problem though in that SPLITNCV is broken in the version I have (4.3 snapshot from August) - it tries defining two datasource lines both calls lambda in the same file. You will have to fix one line of code:
In hobbitd\rrd\do_ncv.c, 20 lines from the bottom there is a line if (split_ncv && (paridx > 1)) {
Change the 1 to 0. Recompile, copy hobbitd_rrd from <build>/hobbitd to <hobbit>/server/bin, and restart hobbit. It then works.
If you want to go the external script route, that snapshot was also broken, but I believe it is now fixed in the latest snapshot. The way I did it is in these two replies: http://www.hswn.dk/hobbiton/2008/10/msg00159.html http://www.hswn.dk/hobbiton/2008/10/msg00248.html
Graham Nayler
----- Original Message ----- From: "Everett, Vernon" <Vernon.Everett at woodside.com.au> To: <hobbit at hswn.dk> Sent: Thursday, October 30, 2008 1:34 PM Subject: RE: [hobbit] Graph definitions
Hi Phil
Have you, or anybody else on the list, got an example of such a script?
Thanks Vernon
-----Original Message----- From: Phil Wild [mailto:philwild at gmail.com] Sent: Thursday, 30 October 2008 4:43 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Graph definitions
Hi Vernon,
You need to write your own backend data collector and have hobbit pass the data to it through a change in hobbitlaunch. You parse the data yourself at the server side and then build a single rrd file for every entry. You then use the FNPATTERN as you have already specified...
From memory, I think this is lightly covered in the man pages.
Cheers
Phil
2008/10/27 Everett, Vernon <Vernon.Everett at woodside.com.au>:
Hi all
Is there any way to define a graph definition for values that may or may not be available.
Let's work with CPU temperature, just as an example.
In hobbitserver.cfg, I can define this NCV_systemp="*:GAUGE" (And the other ncv definitions) It then generates rrd files for all the servers.
However, some systems have 1 cpu, some have 2, and some 4. So the rrd files only have entries for the number of CPUs.
In the hobbitgraph.cfg we can define the graph, with 4 cpu temperatures, but if the rrd file doesn't contain 4 fields (i.e. system has only 2 CPUs), it doesn't generate a graph. It is also not possible to have a separate graph definition for 1, 2 and 4 CPU systems.
The other way round it, is to have each CPU in a separate file, and define FNPATTERN= with a wildcard. But how do we get the ncv module to put each field in a sepreate rrd file?
Regards Vernon
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
-- Tel: 0400 466 952 Fax: 0433 123 226 email: philwild AT gmail.com
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (3)
-
graham.nayler@hallmarq.net
-
philwild@gmail.com
-
Vernon.Everett@woodside.com.au