[xymon] Re: temperature test and graphing

Ryan Novosielski novosirj at umdnj.edu
Wed Jul 21 18:17:43 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Ryan Novosielski wrote:
>> Never got an answer on this. I'm hoping someone might know the story.
>>
>> On 06/15/2010 03:49 PM, Ryan Novosielski wrote:
>>
>>> Hi all,
>>>
>>> I've not used the name "temperature" for this test because it is
>>> obnoxiously long, instead substituting "temp" for the test name. I've
>>> since found that Xymon will automatically graph my temperature tests if
>>> I use the name "temperature" instead of temp. But, I still have no
>>> desire to do that. Would changing it to "temp" require me to edit the
>>> source code and recompile, or is this in config files? I can't find
>>> anything on the web that necessarily addresses this.
>>>
>>> Thanks for the pointers!
>>
>> On Jul 21, 2010 8:17, W.J.M. Nelis <Wim.Nelis at nlr.nl> wrote:
>>
>> Look at hobbitgraph.cfg: there is a section called temperature, but none
>> called temp.
>
> On 07/21/2010 08:28 AM, Ryan Novosielski wrote:
>
> Yeah, that I changed to [temp]. I'm assuming what I should be looking
> for are temp*.rrd files. If they are not there, is the client or the
> server not generating them? Where might I look to see why that is not
> happening?

OK, I got further with this. As it turns out, this IS hard coded in the
source code. First place is xymon-4.2.3/hobbitd/do_rrd.c as extracted
from the source:

- ---
# diff do_rrd.c.orig do_rrd.c
389c389
<       else if (strcmp(id, "temperature") == 0) res =
do_temperature_rrd(hostname, testname, msg, tstamp);
- ---
>       else if (strcmp(id, "temp") == 0) res =
do_temperature_rrd(hostname, testname, msg, tstamp);
- ---

...but there's also an included file, ./rrd/do_temperature.c:

- ---
# diff do_temperature.c.orig do_temperature.c
16c16
<
"DS:temperature:GAUGE:600:1:U",
- ---
>                                             "DS:temp:GAUGE:600:1:U",
84c84
<                       savech = *(p+1); *(p+1) = '\0';
setupfn("temperature.%s.rrd", bol); *(p+1) = savech;
- ---
>                       savech = *(p+1); *(p+1) = '\0';
setupfn("temp.%s.rrd", bol); *(p+1) = savech;
- ---

...I don't have graphs yet, but I think it might be the averages taking
awhile. I guess we'll see. I do have RRD files now; anyone have any idea
what to do if there are ultimately no graphs even with RRD files?

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxHHacACgkQmb+gadEcsb638gCgqf12Rl5CX6qQItSJW4erIZQU
tdUAoIO+t3ayjRzZewwzzcPd9HGuyZo+
=BZSj
-----END PGP SIGNATURE-----


More information about the Xymon mailing list