Xymon Mailing List Archive search

analysis.cfg checks failing

list Vernon Everett
Wed, 10 Dec 2014 08:59:04 +0800
Message-Id: <user-07cd9484e4e5@xymon.invalid>

Hi John

HOST=foo
        PROC   /usr/bin/mysql           1 -1 red

No = in the PROC line.

From the top comments in analysis.cfg
#
*PROC processname minimumcount maximumcount color [TRACK=id]
[TEXT=displaytext]*#             The "ps" listing sent by the client will
be scanned for how many
#             processes containing "processname" are running, and this is
then
#             matched against the min/max settings defined here. If the
running
#             count is outside the thresholds, the color of the "procs"
status
#             changes to "color".
#             To check for a process that must NOT be running: Set minimum
and
#             maximum to 0.
#
#             "processname" can be a simple string, in which case this
string must
#             show up in the "ps" listing as a command. The scanner will
find
#             a ps-listing of e.g. "/usr/sbin/cron" if you only specify
"processname"
#             as "cron".
#             "processname" can also be a Perl-compatiable regular
expression, e.g.
#             "%java.*inst[0123]" can be used to find entries in the
ps-listing for
#             "java -Xmx512m inst2" and "java -Xmx256 inst3". In that case,
#             "processname" must begin with "%" followed by the
reg.expression.
#             If "processname" contains whitespace (blanks or TAB), you
must enclose
#             the full string in double quotes - including the "%" if you
use regular
#             expression matching. E.g.
#                 PROC "%hobbitd_channel --channel=data.*hobbitd_rrd" 1 1
yellow
#             or
#                 PROC "java -DCLASSPATH=/opt/java/lib" 2 5
Regards
Vernon


On 10 December 2014 at 08:39, John D. Alexander <
user-9a0964743c57@xymon.invalid> wrote:
 All,


I’ve just installed Xyon onto CentOS 7 (x86_64).  As usual, it’s working
like a charm, except..


HOST= lines in analysis.cfg are not being evaluated.  An example:


HOST=server.mydomain.com

                PROC=mysql


The server is defined in hosts.cfg and MariaDB is running on the server,
but the procs remain clear saying “No process checks defined”


Anyone got any insight?


TIA.


*John Alexander*
Network Administrator
*user-43e31ec8d822@xymon.invalid <user-43e31ec8d822@xymon.invalid>*
Feeney Wireless, LLC  - PO Box 2549, Eugene, Oregon 97402

(Free) XXX-XXX-XXXX   (P) XXX-XXX-XXXX     (F) XXX-XXX-XXXX
*www.feeneywireless.com* <http://www.feeneywireless.com/>;

[image: FW_Acronym_email] <http://feeneywireless.com/>;

This email transmission is intended only for the addressee shown above. It
may contain information that is privileged, confidential or otherwise
protected from disclosure. Any review, dissemination or use of this
transmission or its contents by persons other than the addressee is
strictly prohibited! If you have received this email transmission in error
please notify us immediately.

-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton