Xymon Mailing List Archive search

Is it 'procs' or 'processes'?

4 messages in this thread

list John Horne · Wed, 21 Mar 2012 18:10:47 +0000 ·
Hello,

Using Xymon 4.3.7, I am a little confused with the 'procs' test.

As far as I can tell, after installation the 'procs' test will run and a
column is produced. Also an RRD (procs.rrd) is created for each client
and the server itself. However, the RRD graph is not shown (see my
previous email about the 'zoom icon' alone showing), and this seems to
be because the 'xymonserver.cfg' file in the TEST2RRD definition has
'procs=processes'.

The comments in the file indicate that this means the column 'procs'
will be created, but data for a graph comes from the 'processes.rrd'
file. But that file doesn't exist, so no graph.

If I change the 'xymonserver.cfg' file to just say 'procs' in the
TEST2RRD section, then I get the graph name showing but still no graph.

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'm not quite sure where the 'processes' bit comes from, but it seems
that perhaps the 'xymonserver.cfg' and 'graphs.cfg' files should only
refer to 'procs'. The 'procs' test runs, but produces no graph because,
by default, Xymon seems to be expecting 'processes'.


John.

-- 
John Horne                   Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX
list Jeremy Laidman · Thu, 22 Mar 2012 11:13:36 +1100 ·
quoted from John Horne
On Thu, Mar 22, 2012 at 5:10 AM, John Horne <user-e95f1ec2f147@xymon.invalid> 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:

[processes]
        TITLE Process counts
        YAXIS processes
        DEF:cnt=procs.rrd:la:AVERAGE
        LINE2:cnt#00CC00:Processes
        GPRINT:cnt:LAST: \: %10.1lf (cur)
        GPRINT:cnt:MAX: \: %10.1lf (max)
        GPRINT:cnt:MIN: \: %10.1lf (min)
        GPRINT:cnt:AVERAGE: \: %10.1lf (avg)\n

I needed no other changes for the graph to show up.

Note that the procs RRD file should be shown on the trends page (as
"Users and Processes"), regardless of this adjustment.

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".
list John Horne · Thu, 22 Mar 2012 12:18:54 +0000 ·
quoted from Jeremy Laidman
On Thu, 2012-03-22 at 11:13 +1100, Jeremy Laidman wrote:
On Thu, Mar 22, 2012 at 5:10 AM, John Horne <user-e95f1ec2f147@xymon.invalid> 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.
quoted from Jeremy Laidman
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
quoted from Jeremy Laidman
          [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.
quoted from John Horne


John.

-- 
John Horne                   Tel: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX
list Jeremy Laidman · Mon, 26 Mar 2012 12:18:05 +1100 ·
quoted from John Horne
On Thu, Mar 22, 2012 at 11:18 PM, John Horne <user-e95f1ec2f147@xymon.invalid> wrote:
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
Aha, so it does.  Mine is after this one (actually, in an included
file) and so it replaces this one.

It seems like there are two ways to get process graphs: one via procs
from the standard client messages, and the other via TRACK against one
or more process names.  There seems to be elements of both in the
configuration, and there's a conflict.

I'm guessing that the "procs.rrd" file was the original (requiring a
processes=procs mapping), but at some stage the TRACK option was added
to create "processes.*.rrd" and graphs.cfg was adjusted, but the other
configs weren't fixed up.  Due to the mapping, there's a naming
collision, and so we can't have both work at the same time.

Cheers
Jeremy