[Xymon] Multi-graphs with subgraphs do not show properly
W.J.M. Nelis
Wim.Nelis at nlr.nl
Wed Feb 22 11:08:01 CET 2012
Hello,
It seems that the combination of multi-graphs with sub-graphs may lead
to unexpected results.
A local test, with name diskstat, checks some performance measures of
disk I/O. (Basically it reads /proc/diskstats on a Linux machine, and
dumps the measurements of selected partitions into an RRD, one RRD per
partition.) As there is one set of measurements for each partition to
monitor, the graphs of diskstat are defined as multi-graphs:
In file cgioptions.cfg:
CGI_SVC_OPTS=".... -multigraphs=diskstat,diskstat0,diskstat1,diskstat2"
As one RRD contains 11 datasets, a number of subgraphs is defined to
show all the collected information. As shown above, there are 3
additional graphs to show it all. The various bits of configuration with
respect to test diskstat are:
xymonserver.cfg:
TEST2RRD="....,diskstat"
GRAPHS="....,diskstat::1,diskstat0::1,diskstat1::1,diskstat2::1"
tasks.cfg:
CMD xymond_channel --channel=status .... --extra-tests=diskstat
--extra-script=/home/nlr/xymon/server/ext/rrd_status.pl
Of course there are graph definitions for diskstat, diskstat0, diskstat1
and diskstat2 in file graphs.cfg. Script rrd_status.pl also adds a line like
<!-- linecount=N -->
to the status message, with N the number of partitions.
The layout of the page of test diskstat is correct. It shows the textual
output of script rrd_status.pl and the graph diskstat multiple times,
once per partition. The trends page is sometimes not as expected. If no
TRENDS are defined for the host in file hosts.cfg, and thus no
sub-graphs are selected, the trends column will show one diskstat graph
per partition, which is what I would expect.
However, if the sub-graphs are selected for a host by adding
TRENDS:*,diskstat:diskstat|diskstat0|diskstat1|diskstat2
to the entry of that host in hosts.cfg, the multiplicity of one, as
defined in variable GRAPHS, does not function any more. For a host with
two monitored partitions, the information of both partitions are shown
in one graph.
Did I miss something in configuring the combination of multi-graphs with
sub-graphs or is this an error in Xymon? Btw, we are using Xymon 4.3.7.
Kind regards,
Wim Nelis.
******************************************************************************************************************
The NLR disclaimer is valid for NLR e-mail messages.
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual
or legal commitment on the part of the sender.
This message may contain information that is not intended for you. If you are not the addressee or if this
message was sent to you by mistake, you are requested to inform the sender and delete the message.
Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic
transmission of messages.
******************************************************************************************************************
More information about the Xymon
mailing list