4.3.0 RC1 - Metrics Report
list Brian Majeska
Anyone else having problems getting a the Metrics Report to display a graph with multiple hosts on it? I get a broken link for the graph for CPU, RAM, Ping, etc... It works for singles hosts, just not when multiple hosts are selected. • Brian Majeska
list Henrik Størner
▸
In <AANLkTimP4bO-jm9=user-75f2cb618d17@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:
Anyone else having problems getting a the Metrics Report to display a graph with multiple hosts on it? I get a broken link for the graph for CPU, RAM, Ping, etc...
It works for singles hosts, just not when multiple hosts are selected.
The Metrics Report silently fails, if the data you request is not collected for one of the included hosts. So you probably included a host where there is no client. Regards, Henrik
list Brian Majeska
Is there any way to debug this? :-) Its not working for any of my hosts no matter which metric I choose. Say for a simple one, both hosts have a current and updated tcp.conn.rrd file. rrdtool dump shows they both have a DS called: sec Each can produce a graph individually, it only fails when multiple hosts are combined: host 1: works http://server.example.com/xymon-cgi/showgraph.sh?host=host01.example.com&service=conn&graph_start=1296374400&graph_end=1296460799&graph=custom&action=view host 2: works http://server.example.com/xymon-cgi/showgraph.sh?host=host02.example.com&service=conn&graph_start=1296374400&graph_end=1296460799&graph=custom&action=view combined: fails http://server.example.com/xymon-cgi/showgraph.sh?host=host01.example.com,host02.example.com&service=conn&graph_start=1296374400&graph_end=1296460799&graph=custom&action=view Any hints or pointers would be appreciated. -- Brian Majeska
▸
On Thu, Jan 27, 2011 at 3:42 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:In <AANLkTimP4bO-jm9=user-75f2cb618d17@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:Anyone else having problems getting a the Metrics Report to display a graph with multiple hosts on it? I get a broken link for the graph for CPU, RAM, Ping, etc...It works for singles hosts, just not when multiple hosts are selected.The Metrics Report silently fails, if the data you request is not collected for one of the included hosts. So you probably included a host where there is no client. Regards, Henrik
list Henrik Størner
In <AANLkTi=user-d3cf8e6dcb7d@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes: Hi Brian,
▸
Is there any way to debug this? :-) Its not working for any of my hosts no matter which metric I choose.
maybe You're the victim of a configuration error in the default "graphs.cfg" that ships with the 4.3.0 beta-3 and RC1 files. I just tried this on the www.xymon.com demo-site, and indeed the metrics graphs are broken. The problem is in the "multi" graph definitions. These include an FNPATTERN setting, but this is not really used as a "pattern" in the regular-expression sense. It is used directly as the filename of the RRD file to pull the data from. The default graphs.cfg file got that mixed up. So if you look into graphs.cfg you'll find this definition: [conn-multi] FNPATTERN ^tcp.conn.rrd TITLE PING Round-trip time YAXIS Seconds DEF:p at RRDIDX@=@RRDFN@:sec:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ The FNPATTERN should NOT have the "^" in front of "tcp.conn.rrd". If you delete that, I think your "Ping time" metrics will suddenly work. The same error was done on all of the "multi" graph definitions that the Metrics report uses: la-multi, la1-multi, ram-multi etc. Just remove that "^" from the beginning of all the FNPATTERN definitions. Thanks for noticing and reporting this. It would have been annoying to ship 4.3.0 with this issue. Regards, Henrik
list Brian Majeska
Yay! You made my day Henrik. Thank you for figuring it out. I was about to wipe and re-install back to 4.2.x because my boss depends on those graphs ;-) -- Brian Majeska
▸
On Mon, Jan 31, 2011 at 3:17 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:In <AANLkTi=user-d3cf8e6dcb7d@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes: Hi Brian,Is there any way to debug this? :-) Its not working for any of my hosts no matter which metric I choose.maybe You're the victim of a configuration error in the default "graphs.cfg" that ships with the 4.3.0 beta-3 and RC1 files. I just tried this on the www.xymon.com demo-site, and indeed the metrics graphs are broken. The problem is in the "multi" graph definitions. These include an FNPATTERN setting, but this is not really used as a "pattern" in the regular-expression sense. It is used directly as the filename of the RRD file to pull the data from. The default graphs.cfg file got that mixed up. So if you look into graphs.cfg you'll find this definition: [conn-multi] FNPATTERN ^tcp.conn.rrd TITLE PING Round-trip time YAXIS Seconds DEF:p at RRDIDX@=@RRDFN@:sec:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ The FNPATTERN should NOT have the "^" in front of "tcp.conn.rrd". If you delete that, I think your "Ping time" metrics will suddenly work. The same error was done on all of the "multi" graph definitions that the Metrics report uses: la-multi, la1-multi, ram-multi etc. Just remove that "^" from the beginning of all the FNPATTERN definitions. Thanks for noticing and reporting this. It would have been annoying to ship 4.3.0 with this issue. Regards, Henrik