[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xymon] Aggregation of data from multiple machines in to a single graph



Thanks Steve and Henrik for your suggestions. I have managed to put a link in the title page for the mail servers that provides the multi-graph in the manner that Henrik suggested and it works like a dream.

It would be nice to include it as a graph in the generated page, but what I have is great for now.

|\/|artin

-----Original Message-----
From: Henrik "Størner [mailto:henrik (at) hswn.dk] 
Sent: 09 November 2010 18:34
To: xymon (at) xymon.com
Subject: Re: [xymon] Aggregation of data from multiple machines in to a single graph

In <11707_1289309067_4CD94B8B_11707_20800_1_1F7B01020EC4D04DA17703634B9E888E0A01CFF4 (at) ULPGCTMVMAI003.EU.COLT> "Ward, Martin" <Martin.Ward (at) colt.net> writes:

>I have a number of mail servers and I have tailored the Xymon client config=
> on each server to return the number of emails in the deferred mail queue. =
>What I would like is to have a single graph that displays all these values =
>together (in the same way that it displays graph for all the different disk=
>s on a single server).  I know that the graphs can be created as I run an e=
>xternal command to generate the graphs and display them in a web page outsi=
>de of Xymon. It would be nice to be able to have a configuration item for a=
> given Xymon page and data value such that it creates an RRD graph for ever=
>y server on that page which has that data value in its RRD file.

Presumably, you have a graph definition for your single-host graph. Guess
it looks somewhat like the "swap" graph:

[swap]
	TITLE Swap Utilization
	YAXIS % Used
	DEF:p=memory.swap.rrd:realmempct:AVERAGE
	LINE2:p#0000FF:% Swap used

Now, if you look at the graph definitions, you'll see that there is an
"swap-multi" graph also. This is almost identical, except it uses an
"FNPATTERN" definition:

[swap-multi]
	TITLE Multi-host Swap Utilization
	FNPATTERN memory.swap.rrd
	YAXIS % Used
	DEF:p (at) RRDIDX@= (at) RRDFN@:realmempct:AVERAGE
	LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@

The "multi" definition is used whenever there is more than one host names in the
"hostname" parameter for the hobbitgraph.sh CGI script. This is used by the
"Metrics report", whose web form template is in the ~xymon/server/web/hostgraphs_form
file. Try defining a "mailq-multi" graph in hobbitgraphs.cfg and then referencing 
this via the hostgraphs-form - it should give you a way of at least getting a 
graph showing the mail-queue for your servers.

Unfortunately, error messages are difficult to capture when you're working on this.
One common pitfall is to include a server in the list which hasn't got the data
for the graph - this just gives you a blank webpage, no error. Try beginning with
a multi-graph of just one host - when that works, adding more hosts should work OK.



Regards,
Henrik


To unsubscribe from the xymon list, send an e-mail to
xymon-unsubscribe (at) xymon.com



[Colt Disclaimer]
The message is intended for the named addressee only and may not be disclosed
to or used by anyone else, nor may it be copied in any way. The contents of
this message and its attachments are confidential and may also be subject to
legal privilege. If you are not the named addressee and/or have received this
message in error, please advise us by e-mailing abuse (at) colt.net and delete the
message and any attachments without retaining any copies. Internet
communications are not secure and Colt does not accept responsibility for this
message, its contents nor responsibility for any viruses. No contracts can be
created or varied on behalf of Colt Technology Services, its subsidiaries,
group companies or affiliates ("Colt") and any other party by email
communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate
potential viruses and unsolicited promotional emails. For more information
refer to www.colt.net or contact us on +44(0)20 7390 3900