Xymon Mailing List Archive search

Question about client-local.cfg

7 messages in this thread

list Colin Coe · Mon, 10 Mar 2014 06:47:58 +0800 ·
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?

Thanks

CC
Apologies all, subject now supplied...

-- 
RHCE#805007969328369
list Japheth Cleaver · Sun, 9 Mar 2014 16:45:34 -0700 ·
quoted from Colin Coe

On Sun, March 9, 2014 3:47 pm, Colin Coe wrote:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?

Thanks

CC
Hi Colin,

Well, the first (obvious) question would be whether 'enmac' or 'username'
were typos there -- or if they're not referring to the same path.
Otherwise I believe simple file globs (or their equivalent) are expected
there by logfetch and the '-l' option (ell) you're giving to 'ls' might be
confusing it. Can you try it without that?

HTH,

-jc
list Betsy Schwartz · Sun, 9 Mar 2014 19:56:53 -0400 ·
What's in analysis.cfg?
quoted from Colin Coe

On Mar 9, 2014, at 6:47 PM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
-rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?

Thanks

CC
Apologies all, subject now supplied...

-- 
RHCE#805007969328369
list Colin Coe · Mon, 10 Mar 2014 08:34:16 +0800 ·
Sheesh, this is why one should not post early on Monday morning prior
to second coffee....

The username is enmac but I was attempting to sanitize...

Ahh, of course.  we just want the filename, not the verbose output from 'ls'...

Many thanks

CC
quoted from Betsy Schwartz


On Mon, Mar 10, 2014 at 7:45 AM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:

On Sun, March 9, 2014 3:47 pm, Colin Coe wrote:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?

Thanks

CC
Hi Colin,

Well, the first (obvious) question would be whether 'enmac' or 'username'
were typos there -- or if they're not referring to the same path.
Otherwise I believe simple file globs (or their equivalent) are expected
there by logfetch and the '-l' option (ell) you're giving to 'ls' might be
confusing it. Can you try it without that?

HTH,

-jc

-- 

RHCE#805007969328369
list Paul Root · Mon, 10 Mar 2014 03:09:30 +0000 ·
My thought is that the line is too long. Like in a ps if you try to match on something that's way too long in the command line.
quoted from Colin Coe


-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of J.C. Cleaver
Sent: Sunday, March 09, 2014 6:46 PM
To: Colin Coe
Cc: xymon at xymon.com
Subject: Re: [Xymon] Question about client-local.cfg


On Sun, March 9, 2014 3:47 pm, Colin Coe wrote:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?

Thanks

CC
Hi Colin,

Well, the first (obvious) question would be whether 'enmac' or 'username'
were typos there -- or if they're not referring to the same path.
Otherwise I believe simple file globs (or their equivalent) are expected
there by logfetch and the '-l' option (ell) you're giving to 'ls' might be
confusing it. Can you try it without that?

HTH,

-jc
list Henrik Størner · Mon, 10 Mar 2014 10:45:28 +0100 ·
quoted from Colin Coe
Den 2014-03-09 23:47, Colin Coe skrev:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?
If the file data is present in the client data (check the "Client data" link on any status page), then the problem is with your analysis.cfg rules.

Regards,
Henrik
list Colin Coe · Tue, 11 Mar 2014 06:03:07 +0800 ·
Hi all

Thanks for the responses and tips but its all sorted now.
quoted from Henrik Størner

CC

On Mon, Mar 10, 2014 at 5:45 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
Den 2014-03-09 23:47, Colin Coe skrev:
On Mon, Mar 10, 2014 at 6:38 AM, Colin Coe <user-5b250cd7a540@xymon.invalid> wrote:
Hi all

Server info:
Host - RHEL6.5
Version - 4.3.17
Packaged by J Cleaver (Terabithia)

I'm having a problem with a definition in /etc/xymon/client-local.cfg.
---
[host=dmz_ap01]
file:`ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1`
---
The problem is that Xymon reports bad (red) with the page showing
---
 -rw-r--r-- 1 username groupname14314345 Mar 10  2014
/home/username/customer-data/CUST9100REP20140310002349.CSV
File is missing
---
Now, the file is not missing, and Xymon is correctly showing its mode,
size, ownership details, etc.
Any ideas what I've done wrong here?
If the file data is present in the client data (check the "Client data" link
on any status page), then the problem is with your analysis.cfg rules.

Regards,
Henrik

-- 

RHCE#805007969328369