Xymon Mailing List Archive search

analysis.cfg checks failing

3 messages in this thread

list John D. Alexander · Wed, 10 Dec 2014 00:39:59 +0000 ·
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<mailto: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/>;
[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.
list Vernon Everett · Wed, 10 Dec 2014 08:59:04 +0800 ·
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 <
quoted from 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>*
quoted from John D. Alexander
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/>;
quoted from John D. Alexander

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
list John D. Alexander · Wed, 10 Dec 2014 01:02:30 +0000 ·
Vernon,

Right you are!  Gahh..  It was staring at me the whole time as I was comparing the file between a working server and this one.

Thanks much.  It’s those little details.

John Alexander
quoted from Vernon Everett

From: Vernon Everett [mailto:user-b3f8dacb72c8@xymon.invalid]
Sent: Tuesday, December 09, 2014 4:59 PM
To: John D. Alexander
Cc: xymon at xymon.com
Subject: Re: [Xymon] analysis.cfg checks failing

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<mailto: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<http://server.mydomain.com>;
quoted from Vernon Everett
                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<mailto:user-43e31ec8d822@xymon.invalid>
Feeney Wireless, LLC  - PO Box 2549, Eugene, Oregon 97402

(Free) XXX-XXX-XXXX<tel:XXX-XXX-XXXX>   (P) XXX-XXX-XXXX<tel:XXX-XXX-XXXX>     (F) XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
quoted from Vernon Everett
www.feeneywireless.com<http://www.feeneywireless.com/>;
[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