[Xymon] lib-xymonrrd.c problem..
Buchan Milne
bgmilne at staff.telkomsa.net
Wed May 11 08:28:09 CEST 2011
On Tuesday, 10 May 2011 18:12:10 Steve Staples wrote:
> Hi!
>
> This is my first post here... I am just trying to make some small
> changes to our xymon system, and I am having some weird issues...
>
> we are using the 4.3.0 branch, and the issues i am running into, are
> with the devmon if_load pages.
>
> The thing that I am doing, is in this page there is the table at the
> top, and a bunch of graphs on the bottom (i didn't set this up, and i am
> assuming that this is the "default"). I am trying to create a link from
> the table, that will open the corresponding graph url (as if i had
> scrolled down to the graph and click on it).
Well, note that the HTML creating the table is generated by devmon, not by
Xymon.
> I had it sort of working with some creative javascripting, but after
> looking into it, it wasn't 100%.
>
> the "table" is not sorted at all,
Hmm, the table *should* be sorted, but possibly differently from the way the
graphs are ...
> but the "graphs" section is sorted
> based on the rrd name.
>
>
> is there anyway (i am sure that there is) to put the same value from the
> transforms file {ifLoad} into the ./lib/xymonrrd.c file? does that
> make sense?
No it doesn't. Put your HTML/JS in the messages file.
> doesn't have to be that {ifLoad} perse, but something that
> i can make match from teh table to the graphs...
>
> i was thinking in this area, to add the 'id=\"ifload_%s\"':
> static const char *xymonlinkfmt = "<table summary=\"%s Graph
> \"><tr><td><A HREF=\"%s&action=menu\" id=\"ifload_%s\"><IMG BORDER=0
> SRC=\"%s&graph=hourly&action=view\" ALT=\"xymongraph %s
> \"></A></td><td>.....
>
> If you could point me in the right direction, I would be greatful :)
You may also want to look at the method I used in the devmon weathermap:
http://staff.telkomsa.net/~bgmilne/xymon/weathermap/fifa.html
Code here:
http://staff.telkomsa.net/~bgmilne/xymon/
But, maybe we should discuss it further on the devmon list.
Regards,
Buchan
More information about the Xymon
mailing list