[Xymon] Is it 'procs' or 'processes'?
John Horne
john.horne at plymouth.ac.uk
Thu Mar 22 13:18:54 CET 2012
On Thu, 2012-03-22 at 11:13 +1100, Jeremy Laidman wrote:
> On Thu, Mar 22, 2012 at 5:10 AM, John Horne <john.horne at plymouth.ac.uk> wrote:
> > It seems that the 'graphs.cfg' file has a section for 'processes', but
> > no section for 'procs', so Xymon does not know how to display the
> > 'procs' graph. If I create a 'procs' section, then I get a graph.
>
> I think the procs=processes mapping is for backwards-compatibility.
> But it still should work as-is. On my system I simply created a new
> "[processes]" definition in graphs.cfg to get the graph, like so:
>
The default 'graphs.cfg' file already contains a 'processes' section:
[processes]
FNPATTERN ^processes.(.+).rrd
TITLE Process counts
YAXIS #
DEF:cnt at RRDIDX@=@RRDFN@:count:AVERAGE
LINE2:cnt at RRDIDX@#@COLOR@:@RRDPARAM@
GPRINT:cnt at RRDIDX@:LAST: \: %10.1lf (cur)
GPRINT:cnt at RRDIDX@:MAX: \: %10.1lf (max)
GPRINT:cnt at RRDIDX@:MIN: \: %10.1lf (min)
GPRINT:cnt at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n
As can be seen it filters on the RRD file 'processes'.
Only the default '[users]' section filters on the 'procs.rrd' file.
>
> I needed no other changes for the graph to show up.
>
Nope. With nothing in graphs.cfg saying how 'procs' should be shown and
using 'procs.rrd', no graph shows up.
> Note that the procs RRD file should be shown on the trends page (as
> "Users and Processes"), regardless of this adjustment.
>
Yes, using the '[users]' section above from the default graphs.cfg file:
[users]
TITLE Users and Processes
YAXIS #
DEF:p=procs.rrd:la:AVERAGE
DEF:u=users.rrd:la:AVERAGE
AREA:p#00CC00:Processes
LINE1:u#000099:Users
[snipped]
> Also, I think that there will be no "files" graph unless you define a
> file with a "TRACK" option in analysis.cfg. Same for "ports".
>
Yes, and 'procs'. Basically any test that doesn't draw a graph by
default but requires some configuration to be done. This leads to the
problem of no graph showing but the 'zoom' icon alone appearing. I'm
still working on how that might be fixed.
It is confusing because basically I end up with a 'procs.rrd' file
(after configuring a PROC in analysis.cfg), but nothing in 'graphs.cfg'
to say how to display it, and no 'processes.cfg' file but a section in
'graphs.cfg' saying how to display it (if it exists). In xymonserver.cfg
(TEST2RRD) it seems that for 'procs' the 'processes' file (service)
should be used - but it doesn't exist, 'procs' does. Confusing.
John.
--
John Horne Tel: +44 (0)1752 587287
Plymouth University, UK Fax: +44 (0)1752 587001
More information about the Xymon
mailing list