combine two combo statuses in one graph
Hi,
thanks to this e-mail list, I was able to use combo status for my hosts, but now I face another challenge: how can I combine multiple status graphs into one?
Scenario: a host (let's call it X) in my network is being monitored by two separate xymon proxy servers (let's call them A and B) and I use the combo.cfg file to combine the two tcp connections (from A and B) to one "conn" column. The two separate "conn" statuses from A and B work fine and have graphs, but the "main" graph unter my "main" host (X) is blank, because I had to define it with "#noconn" in my hosts.cfg (different subnet).
Is there a way to combine the two statuses into one graph under the main host's entry?
Thanks in advance!
Cheers Christoph
On Dienstag, 24. August 2021 09:59:17 CEST Christoph Zechner wrote:
Is there a way to combine the two statuses into one graph under the main host's entry?
Hi Christoph,
you can define additional graphs in /etc/graphs.d and make them beeing listed in the trends via the GRAPHS variable in xymonserver.cfg. Graph defintions can glob over files matching a specific naming, but to make them appear for the main host you will have to pull symlinks from each of the single hosts tcp.conn.rrd to the main hosts directory within /var/lib/xymon/rrd. Then you'll be able to match them with the names choosen for the symlinks in your graph definition.
The native graphs for the conn-Status are defined within /etc/graphs.cfg, man graphs.cfg shows the format and with rrdtool dump tcp.conn.rrd you can view
the structure of the rrd files.
I'm using the Paths used on Debian based systems for my above example. They differ on other Packages formats, but usually have equivalents.
Kind regards, Lars
-- Lars Kollstedt
Telefon: +49 6151 16-71027 E-Mail: lk at man-da.de
man-da.de GmbH Dolivostra?e 11 64293 Darmstadt
Sitz der Gesellschaft: Darmstadt Registergericht: Amtsgericht Darmstadt Handelsregisternummer: HRB 9484 Gesch?ftsf?hrer: Andreas Ebert
Hi Lars,
On 24/08/2021 11:20, Lars Kollstedt wrote:
On Dienstag, 24. August 2021 09:59:17 CEST Christoph Zechner wrote:
Is there a way to combine the two statuses into one graph under the main host's entry?
Hi Christoph,
you can define additional graphs in /etc/graphs.d and make them beeing listed in the trends via the GRAPHS variable in xymonserver.cfg. Graph defintions can glob over files matching a specific naming, but to make them appear for the main host you will have to pull symlinks from each of the single hosts tcp.conn.rrd to the main hosts directory within /var/lib/xymon/rrd. Then you'll be able to match them with the names choosen for the symlinks in your graph definition.
I did exactly this, but there was no additional graph anywhere... Did I understand you correctly that this new graph would only show up under "trends"? After writing several custom checks and defining custom graphs for them, I am somewhat familiar with the whole thing, but I thought it was possible to add (or replace the) to the default "conn" graph under my main host. :-/
The native graphs for the conn-Status are defined within /etc/graphs.cfg,
man graphs.cfgshows the format and withrrdtool dump tcp.conn.rrdyou can view the structure of the rrd files.I'm using the Paths used on Debian based systems for my above example. They differ on other Packages formats, but usually have equivalents.
I am using Debian as well, so this was very helpful. :-)
Best regards Christoph
Kind regards, Lars
Hi Christoph,
on Dienstag, 24. August 2021 13:45:50 CEST Christoph Zechner wrote:
I did exactly this, but there was no additional graph anywhere... Did I understand you correctly that this new graph would only show up under "trends"? The Status columns are showing graphs that are named like them, but you can only have one definition for "conn" so if you change this you must make sure to to not break the usual conn graph. e.g. by globbing with something like
FNPATTERN (conn.*).tcp.rrd.
In addition to this the GRAPHS variable contains a list of graphs showing up in the trends column. If you are referencing your definition there it will be available in the trends column.
After writing several custom checks and defining custom graphs for them, I am somewhat familiar with the whole thing, but I thought it was possible to add (or replace the) to the default "conn" graph under my main host. :-/ The graph definitions are global at least at far I know. But you should be able to overload the names by adding them a second time. But be aware the definition is only searching for matching RRDs in /var/lib/xymon/rrd/ <XyHostname>/. That's why I mentioned the symlinks, in the directory of the main host in my previous mail. They are needed to get the data from the single hosts in there to glob for them.
Kind regards, Lars
-- Lars Kollstedt
Telefon: +49 6151 16-71027 E-Mail: lk at man-da.de
man-da.de GmbH Dolivostra?e 11 64293 Darmstadt
Sitz der Gesellschaft: Darmstadt Registergericht: Amtsgericht Darmstadt Handelsregisternummer: HRB 9484 Gesch?ftsf?hrer: Andreas Ebert
Hi Christoph,
On Dienstag, 24. August 2021 14:49:11 CEST Lars Kollstedt wrote:
The Status columns are showing graphs that are named like them, but you can only have one definition for "conn" so if you change this you must make sure to to not break the usual conn graph. e.g. by globbing with something like
FNPATTERN (conn.*).tcp.rrd.
When searching for the definition of the conn I didn't find one. But the graphs for conn are working on that xymon server.
Might be conn is even a very special case.
Kind regards, Lars
-- Lars Kollstedt
Telefon: +49 6151 16-71027 E-Mail: lk at man-da.de
man-da.de GmbH Dolivostra?e 11 64293 Darmstadt
Sitz der Gesellschaft: Darmstadt Registergericht: Amtsgericht Darmstadt Handelsregisternummer: HRB 9484 Gesch?ftsf?hrer: Andreas Ebert
participants (2)
-
lk@man-da.de
-
zechner@vrvis.at