Xymon Mailing List Archive search

file monitoring

22 messages in this thread

list Thomas Pedersen · Thu, 11 Jan 2007 15:56:05 +0100 ·
hi all,

Trying to get file monitoring to work. Works find with fixed filenames 
but I need to match a pattern in a directory and find the oldest file. 
If more than say 7200 sec old in mtime then generate an alert.

in client-local.cfg I have

file:`ls -t /ftp/input/* | tail -1`

which produces the oldest file name on the web page.

I have the following in hobbit-clients.cfg

   FILE %/ftp/input/*.gz RED mtime<7200

but I get no alarms.

Any ideas ?
list Martin Flemming · Sun, 27 Nov 2011 20:15:43 +0100 (CET) ·
Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

        Martin
list Tim McCloskey · Sun, 27 Nov 2011 11:45:22 -0800 ·
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.
quoted from Martin Flemming

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

        Martin
list Martin Flemming · Sun, 27 Nov 2011 20:56:12 +0100 (CET) ·
Hmm, good question, Tim !

don't really know, cause it's a default csw-package CSWhobbitc ...

.. but apperently it's not enabled :-(

thanks for answer

 	martin
quoted from Tim McCloskey

On Sun, 27 Nov 2011, Tim McCloskey wrote:
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

       Martin

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Tim McCloskey · Sun, 27 Nov 2011 15:34:47 -0800 ·
Before chasing that around too much, can you just build one client from scratch to see how it goes?  Client does not require much, pcre and some other standard stuff.  I use gmake from /usr/sfw/bin/gmake on our x86 Solaris boxes, if that helps.

The build will be just to (quickly?) eliminate or nominate large file support as the culprit.
quoted from Martin Flemming
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Martin Flemming [user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:56 AM
To: xymon at xymon.com
Subject: Re: [Xymon] file monitoring

Hmm, good question, Tim !

don't really know, cause it's a default csw-package CSWhobbitc ...

.. but apperently it's not enabled :-(

thanks for answer

        martin

On Sun, 27 Nov 2011, Tim McCloskey wrote:
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

       Martin

Gruss

        Martin Flemming
list Martin Flemming · Tue, 29 Nov 2011 19:01:27 +0100 (CET) ·
.. the build (hobbit-4.2.0 also 4.3.5) doesn't run :-(

.. and thinking the subject should be somthing like with LFS/Solaris/x86 ...

because of this,  i think

http://lists.xymon.com/archive/2011-March/030995.html
[Xymon] LFS support check failed for standard file support - xymon 3.0

Hi all;
I have comment this behavior before to Henrik. (Yes the problem arises for sdt and large fs support).
The script expects some different numbers that the program output.
For example on Solaris 10 32bits the last number that program returns is 
the maximum value for an int so is 32,767 and the negative sign; as I 
.talked to Henrik looks to me an endiannes issue about that calculation (I 
guess). Since the value on Solaris Sparc (64bits) is really different.

  ~/hobbit-4.2.0 # MAKE=gmake sh -x  build/lfs.sh
+ echo Checking for Large File Support ...
Checking for Large File Support ...
+ cd build
+ gmake -f Makefile.test-lfs clean
+ uname -s
OS=SunOS
+ gmake -f Makefile.test-lfs
+ [ 0 -ne 0 ]
+ ./test-lfs-std 4
STDRES=4:1:-78192452309090304
+ test 4:1:-78192452309090304 != 4:1:0 -a 4:1:-78192452309090304 != 8:1:0
+ echo ERROR: LFS support check failed for standard file support
ERROR: LFS support check failed for standard file support
+ exit 1
[heimdal2] ~/hobbit-4.2.0 #

The problem seems not be resolvable, is it ? :-(

I've got no luck like Asif :-(

http://lists.xymon.com/archive/2011-March/031002.html
quoted from Tim McCloskey


martin


On Sun, 27 Nov 2011, Tim McCloskey wrote:
Before chasing that around too much, can you just build one client from scratch to see how it goes?  Client does not require much, pcre and some other standard stuff.  I use gmake from /usr/sfw/bin/gmake on our x86 Solaris boxes, if that helps.

The build will be just to (quickly?) eliminate or nominate large file support as the culprit.
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Martin Flemming [user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:56 AM
To: xymon at xymon.com
Subject: Re: [Xymon] file monitoring

Hmm, good question, Tim !

don't really know, cause it's a default csw-package CSWhobbitc ...

.. but apperently it's not enabled :-(

thanks for answer

       martin

On Sun, 27 Nov 2011, Tim McCloskey wrote:
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

       Martin

Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid
list Tim McCloskey · Wed, 30 Nov 2011 11:40:53 -0800 ·
Solaris 10 x86 LFS Large File Support cludge.

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-std test-lfs.c 
test-lfs.c: In function `main':
test-lfs.c:15: warning: long long int format, different type arg (arg 4)

[xymon-4.3.5/build]# ./test-lfs-std 4
4:1:-76788513399373824

[xymon-4.3.5/build]# getconf LFS_CFLAGS
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-std test-lfs.c `getconf LFS_CFLAGS`
[xymon-4.3.5/build]# ./test-lfs-std 4
8:1:0

[xymon-4.3.5/build]# getconf LFS64_CFLAGS
-D_LARGEFILE64_SOURCE

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-lfs test-lfs.c `getconf LFS64_CFLAGS` -D_FILE_OFFSET_BITS=64
[xymon-4.3.5/build]# ./test-lfs-lfs 8
8:1:0

I'm out of time on this one but the cludge above has been tested on a handful of Solaris 10 x86 boxes (64bit), tested on global zone and child zone.
There is some info in sys/types.h and the man page for lfcompile.  xymon/hobbit version should not matter, and this is NOT a xymon issue.  

STDRES="`./test-lfs-std 4`"
        if test "$STDRES" != "4:1:0" -a "$STDRES" != "8:1:0"; then

I did say cludge, right?

Regards, 

Tim
quoted from Martin Flemming


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Martin Flemming [user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:56 AM
To: xymon at xymon.com
Subject: Re: [Xymon] file monitoring

Hmm, good question, Tim !

don't really know, cause it's a default csw-package CSWhobbitc ...

.. but apperently it's not enabled :-(

thanks for answer

        martin

On Sun, 27 Nov 2011, Tim McCloskey wrote:
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

       Martin

Gruss

        Martin Flemming
list Martin Flemming · Wed, 30 Nov 2011 21:29:39 +0100 (CET) ·
For me works :-)

Thanks a lot for your work !

martin
quoted from Tim McCloskey

On Wed, 30 Nov 2011, Tim McCloskey wrote:
Solaris 10 x86 LFS Large File Support cludge.

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-std test-lfs.c
test-lfs.c: In function `main':
test-lfs.c:15: warning: long long int format, different type arg (arg 4)

[xymon-4.3.5/build]# ./test-lfs-std 4
4:1:-76788513399373824

[xymon-4.3.5/build]# getconf LFS_CFLAGS
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-std test-lfs.c `getconf LFS_CFLAGS`
[xymon-4.3.5/build]# ./test-lfs-std 4
8:1:0

[xymon-4.3.5/build]# getconf LFS64_CFLAGS
-D_LARGEFILE64_SOURCE

[xymon-4.3.5/build]# gcc -Wall -o test-lfs-lfs test-lfs.c `getconf LFS64_CFLAGS` -D_FILE_OFFSET_BITS=64
[xymon-4.3.5/build]# ./test-lfs-lfs 8
8:1:0

I'm out of time on this one but the cludge above has been tested on a handful of Solaris 10 x86 boxes (64bit), tested on global zone and child zone.
There is some info in sys/types.h and the man page for lfcompile.  xymon/hobbit version should not matter, and this is NOT a xymon issue.

STDRES="`./test-lfs-std 4`"
       if test "$STDRES" != "4:1:0" -a "$STDRES" != "8:1:0"; then

I did say cludge, right?

Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Martin Flemming [user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:56 AM
To: xymon at xymon.com
Subject: Re: [Xymon] file monitoring

Hmm, good question, Tim !

don't really know, cause it's a default csw-package CSWhobbitc ...

.. but apperently it's not enabled :-(

thanks for answer

       martin

On Sun, 27 Nov 2011, Tim McCloskey wrote:
Do you have large file support enabled when you built the xymon client on the x86 boxes?   Can you stat the file from the command line?  Sounds like lfs was not enabled in the build.

----- Original Message -----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Sunday, November 27, 2011 11:15 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: [Xymon] file monitoring


Hi !

I've monitor one file, which should be updated on 4 hosts all 15 minutes

On two host this analysis.cfg entry still works

FILE /var/heimdal/heimdal.pag  COLOR=red mtime<920


These machines are running clients with OS:
SunOS netra33 5.8 Generic_108528-27 sun4u sparc SUNW,UltraAX-i2


But unfortunatley on  the other two machines
OS: SunOS heimdal2 5.10 Generic_141445-09 i86pc i386 i86pc

i've got errro-messages "File is missing" :-(

and a look into the client-data-msg shows :

[file:/var/heimdal/heimdal.pag]
ERROR: Value too large for defined data type


Any hint is welcome :-)

cheers

       Martin

Gruss

       Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

list Nelandran N Moodley · Tue, 3 Jan 2012 09:32:08 +0200 ·
Hi

I'm trying to monitor all file (permissions) of all files in a directory viz:/var/adm.

I have the following entries in client-local.cfg

[sunos]
log:/var/adm/%.*:10240
log:/var/adm/messages %ERROR|CRIT COLOR=red
log:/var/adm/messages %WARNING|NOTICE COLOR=yellow IGNORE=lpr

analysis.cfg
       LOG %.* WARNING COLOR=yellow
        LOG %/var/adm/messages %(I/O|read).error COLOR=red
        FILE /var/adm/messages SIZE>0 MTIME<600 yellow
        FILE %.* MODE=644 red

It only reports on /var/adm/messages file.

What am I doing wrong?

Many thanks

Nelandran Moodley | Unix Systems Engineer | Group Technology Infrastructure | Standard Bank of South Africa | XX Borrowdale Road | RiverClub | Sandton | RSA
[cid:image001.png at 01CCC9FA.20D70070] user-c8de40b6a1a3@xymon.invalid<mailto:user-131d44444d6e@xymon.invalid>
Office: +XX XX XXX XXXX
Mobile: +XX XX XXXXXXX


Standard Bank email disclaimer and confidentiality note
Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email user-e5d4af142413@xymon.invalid (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
list Henrik Størner · Tue, 03 Jan 2012 09:09:19 +0100 ·
quoted from Nelandran N Moodley
On 03-01-2012 08:32, Moodley, Nelandran N wrote:
I’m trying to monitor all file (permissions) of all files in a directory
viz:/var/adm.

I have the following entries in client-local.cfg

[sunos]
log:/var/adm/%.*:10240
log:/var/adm/messages %ERROR|CRIT COLOR=red
log:/var/adm/messages %WARNING|NOTICE COLOR=yellow IGNORE=lpr
First, You should only use "log" for log-files, i.e. files where you want to have the actual contents of the files sent to Xymon for checking. If you only want to monitor file permissions, then use a "file:" definition instead.

Second, you cannot use wild-card filenames in the client-local.cfg file. As the man-page says:

"If  you  want to check multiple files using a wildcard, you must use a command to generate the filenames. Putting wildcards directly into the file: entry will not work."

So something like this should do the trick:

file:`ls /var/adm/`


Regards,
Henrik
list Ralph Mitchell · Sat, 7 Jan 2012 14:59:22 -0500 ·
quoted from Henrik Størner
On Tue, Jan 3, 2012 at 3:09 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 03-01-2012 08:32, Moodley, Nelandran N wrote:
I’m trying to monitor all file (permissions) of all files in a directory
viz:/var/adm.

I have the following entries in client-local.cfg

[sunos]
log:/var/adm/%.*:10240
log:/var/adm/messages %ERROR|CRIT COLOR=red
log:/var/adm/messages %WARNING|NOTICE COLOR=yellow IGNORE=lpr
First, You should only use "log" for log-files, i.e. files where you want
to have the actual contents of the files sent to Xymon for checking. If you
only want to monitor file permissions, then use a "file:" definition
instead.

Second, you cannot use wild-card filenames in the client-local.cfg file.
As the man-page says:

"If  you  want to check multiple files using a wildcard, you must use a
command to generate the filenames. Putting wildcards directly into the
file: entry will not work."

So something like this should do the trick:

file:`ls /var/adm/`
I was wondering - is it (or could it become) possible to enter wildcard
hostnames? Something like:

        [www.*.domain.com]
        file:/var/log/xxx.log

with the intention that the file: and log: entries be sent to any host
matching the wildcard.

Thanks,

Ralph Mitchell
list Jamison Maxwell · Tue, 10 Jan 2012 13:30:41 -0500 ·
I am trying to monitor a file, this file is located at /mnt/fs/test, however, when I configure it in client-local.cfg and analysis.cfg I still get the "No Files Checked" message with a clear status.  Is there something I'm missing here?

analysis.cfg:
HOST=hostname.domain.com
        FILE /mnt/fs/test SIZE>1 COLOR=red

client.local.cfg:
HOST=hostname.domain.com
        file:/mnt/fs/test

I have other entries, such as LOG configured under this host, and they work fine, but just this file test.

Any help is appreciated,
Jamison Maxwell
list Paul Root · Tue, 10 Jan 2012 13:08:33 -0600 ·
Well it should be client-local.cfg not client.local.cfg.  and it isn't a per machine definition, it's a platform definition. You'd want something like:

[linux]
File:/mnt/fs/test

Paul Root    - Engineer III
Managed Services Systems - CenturyLink
quoted from Jamison Maxwell


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jamison Maxwell
Sent: Tuesday, January 10, 2012 12:31 PM
To: xymon at xymon.com
Subject: [Xymon] File Monitoring

I am trying to monitor a file, this file is located at /mnt/fs/test, however, when I configure it in client-local.cfg and analysis.cfg I still get the "No Files Checked" message with a clear status.  Is there something I'm missing here?

analysis.cfg:
HOST=hostname.domain.com
        FILE /mnt/fs/test SIZE>1 COLOR=red

client.local.cfg:
HOST=hostname.domain.com
        file:/mnt/fs/test

I have other entries, such as LOG configured under this host, and they work fine, but just this file test.

Any help is appreciated,
Jamison Maxwell

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
list Jamison Maxwell · Tue, 10 Jan 2012 14:09:48 -0500 ·
Oops, mis-typed, and if I only wanted it for one host?  Or is the only option to have all machines of that platform send that data despite it only existing on one system?  I was under the impression that both types of specification, hosts and platforms were available in client-local.cfg.


Jamison Maxwell
p. XXX XXX XXXX
user-87d336c3dce6@xymon.invalid<mailto:user-87d336c3dce6@xymon.invalid>
quoted from Paul Root

From: Root, Paul [user-76fdb6883669@xymon.invalid]
Sent: Tuesday, January 10, 2012 2:08 PM
To: Jamison Maxwell; xymon at xymon.com
Subject: RE: [Xymon] File Monitoring

Well it should be client-local.cfg not client.local.cfg.  and it isn’t a per machine definition, it’s a platform definition. You’d want something like:

[linux]
File:/mnt/fs/test

Paul Root    - Engineer III
Managed Services Systems - CenturyLink


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Jamison Maxwell
Sent: Tuesday, January 10, 2012 12:31 PM
To: xymon at xymon.com
Subject: [Xymon] File Monitoring

I am trying to monitor a file, this file is located at /mnt/fs/test, however, when I configure it in client-local.cfg and analysis.cfg I still get the "No Files Checked" message with a clear status.  Is there something I'm missing here?

analysis.cfg:
HOST=hostname.domain.com
        FILE /mnt/fs/test SIZE>1 COLOR=red

client.local.cfg:
HOST=hostname.domain.com
        file:/mnt/fs/test

I have other entries, such as LOG configured under this host, and they work fine, but just this file test.

Any help is appreciated,
Jamison Maxwell

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
list Jamison Maxwell · Tue, 10 Jan 2012 14:51:33 -0500 ·
Ah, thanks so much for the clarification.


Jamison Maxwell

From: Larry Barber [user-6ef9c2864140@xymon.invalid]
Sent: Tuesday, January 10, 2012 2:34 PM
To: Jamison Maxwell
Subject: Re: [Xymon] File Monitoring

No, you can have a per-machine specification in addition to the platform specification:


       The file is divided into sections, delimited by "[name]" lines.  A section name can be either an operating system identifier - linux, solaris,  hp-ux,
       aix,  freebsd,  openbsd,  netbsd,  darwin  - or a hostname. When deciding which section to send to a client, Xymon will first look for a section named
       after the hostname of the client; if such a section does not exist, it will look for a section named by the operating system of the client. So you can
       configure special configurations for individual hosts, and have a default configuration for all other hosts of a certain type.

Thanks,
Larry Barber
quoted from Jamison Maxwell

On Tue, Jan 10, 2012 at 1:09 PM, Jamison Maxwell <user-87d336c3dce6@xymon.invalid<mailto:user-87d336c3dce6@xymon.invalid>> wrote:
Oops, mis-typed, and if I only wanted it for one host?  Or is the only option to have all machines of that platform send that data despite it only existing on one system?  I was under the impression that both types of specification, hosts and platforms were available in client-local.cfg.


Jamison Maxwell

p. XXX XXX XXXX<tel:770%20605%206653>
quoted from Jamison Maxwell
user-87d336c3dce6@xymon.invalid<mailto:user-87d336c3dce6@xymon.invalid>

From: Root, Paul [user-76fdb6883669@xymon.invalid]
Sent: Tuesday, January 10, 2012 2:08 PM
To: Jamison Maxwell; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: RE: [Xymon] File Monitoring

Well it should be client-local.cfg not client.local.cfg.  and it isn’t a per machine definition, it’s a platform definition. You’d want something like:

[linux]
File:/mnt/fs/test

Paul Root    - Engineer III
Managed Services Systems - CenturyLink


From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Jamison Maxwell
Sent: Tuesday, January 10, 2012 12:31 PM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] File Monitoring

I am trying to monitor a file, this file is located at /mnt/fs/test, however, when I configure it in client-local.cfg and analysis.cfg I still get the "No Files Checked" message with a clear status.  Is there something I'm missing here?

analysis.cfg:

HOST=hostname.domain.com<http://hostname.domain.com>;
        FILE /mnt/fs/test SIZE>1 COLOR=red

client.local.cfg:
HOST=hostname.domain.com<http://hostname.domain.com>;
quoted from Jamison Maxwell
        file:/mnt/fs/test

I have other entries, such as LOG configured under this host, and they work fine, but just this file test.

Any help is appreciated,
Jamison Maxwell

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
list Steve Holmes · Tue, 10 Jan 2012 15:50:04 -0500 ·
Ok see, this is real similar to the problem I'm having, except I can't get
it to work (Xymon 4.2.3).

My debian hosts are sending the following:

client xxxx.xxxxx.org.linux linux
[date]
Tue Jan 10 15:20:35 EST 2012
[uname]
Linux xxxx.xxxxx.org 2.6.26-2-amd64 x86_64
[osversion]
Debian 5.0.9

And the info page for that host is:

Hostname:xxxx.xxxxx.org OS:Debian 5.0.9
Linux xxxx.xxxxx.org 2.6.26-2-amd64 x86_64 Client S/W:

but I have put a [debian] section in client-local.cfg and also in
hobbit-clients.cfg and it is still looking for files defined under [linux].

Our [debian] servers keep some files in a different location than our other
Linux servers (Redhat) so the Debian servers get "File is missing" errors
and I have to disable the test to prevent the warning from showing up. Not
a good situation especially since we are in the process of convincing the
admins of the Debian systems that it's ok to let us use Xymon to monitor
their systems which they have been monitoring using Nagios :-(.

Am I missing something?

Thanks,
Steve Holmes
Purdue University
quoted from Jamison Maxwell

On Tue, Jan 10, 2012 at 2:51 PM, Jamison Maxwell <user-87d336c3dce6@xymon.invalid>wrote:
 Ah, thanks so much for the clarification.


Jamison Maxwell

*From:* Larry Barber [user-6ef9c2864140@xymon.invalid]
*Sent:* Tuesday, January 10, 2012 2:34 PM
*To:* Jamison Maxwell
*Subject:* Re: [Xymon] File Monitoring

 No, you can have a per-machine specification in addition to the platform
specification:


       The file is divided into sections, delimited by "[name]" lines.  A
section name can be either an operating system identifier - linux,
solaris,  hp-ux,
       aix,  freebsd,  openbsd,  netbsd,  darwin  - or a hostname. When
deciding which section to send to a client, Xymon will first look for a
section named
       after the hostname of the client; if such a section does not exist,
it will look for a section named by the operating system of the client. So
you can
       configure special configurations for individual hosts, and have a
default configuration for all other hosts of a certain type.

Thanks,
Larry Barber

On Tue, Jan 10, 2012 at 1:09 PM, Jamison Maxwell <user-87d336c3dce6@xymon.invalid>wrote:
 Oops, mis-typed, and if I only wanted it for one host?  Or is the only
option to have all machines of that platform send that data despite it only
existing on one system?  I was under the impression that both types of
specification, hosts and platforms were available in client-local.cfg.


Jamison Maxwell
p. XXX XXX XXXX

user-87d336c3dce6@xymon.invalid
quoted from Jamison Maxwell

*From:* Root, Paul [user-76fdb6883669@xymon.invalid]
*Sent:* Tuesday, January 10, 2012 2:08 PM
*To:* Jamison Maxwell; xymon at xymon.com
*Subject:* RE: [Xymon] File Monitoring

   Well it should be client-local.cfg not client.local.cfg.  and it
isn’t a per machine definition, it’s a platform definition. You’d want
something like:


[linux]

File:/mnt/fs/test


Paul Root    - Engineer III

Managed Services Systems - CenturyLink


*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
Behalf Of *Jamison Maxwell
*Sent:* Tuesday, January 10, 2012 12:31 PM
*To:* xymon at xymon.com
*Subject:* [Xymon] File Monitoring


I am trying to monitor a file, this file is located at /mnt/fs/test,
however, when I configure it in client-local.cfg and analysis.cfg I still
get the "No Files Checked" message with a clear status.  Is there something
I'm missing here?


analysis.cfg:

HOST=hostname.domain.com
        FILE /mnt/fs/test SIZE>1 COLOR=red


client.local.cfg:

HOST=hostname.domain.com
        file:/mnt/fs/test


I have other entries, such as LOG configured under this host, and they
work fine, but just this file test.


Any help is appreciated,

Jamison Maxwell

This communication is the property of CenturyLink and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

-- 

If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Jeremy Laidman · Wed, 11 Jan 2012 10:07:41 +1100 ·
quoted from Steve Holmes
On Wed, Jan 11, 2012 at 7:50 AM, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
Ok see, this is real similar to the problem I'm having, except I can't get
it to work (Xymon 4.2.3).

My debian hosts are sending the following:

client xxxx.xxxxx.org.linux linux

The bit after the hostname is used to define the OS type.  This is
obtained, at the client, from the lower-cased output of "uname -s", but can
be overridden by defining in xymonclient.cfg by setting SERVEROSTYPE.  See
the man page for xymonclient.cfg for info.  If you add
"SERVEROSTYPE=debian" into xymonclient.cfg (and restart xymon), then you
should get your client data showing this:

client xxxx.xxxxx.org.debian linux

I haven't tried this, but it might do what you want.
quoted from Steve Holmes

Our [debian] servers keep some files in a different location than our
other Linux servers (Redhat) so the Debian servers get "File is missing"
errors and I have to disable the test to prevent the warning from showing
up.

I have a global [linux] section, and per-host definitions where they
deviate.  It's a bit of a hassle replicating the same definitions for a
bunch of identical hosts, but I only have to set it up once per host.

J
list Steve Holmes · Wed, 11 Jan 2012 09:59:37 -0500 ·
Brilliant! That last paragraph led me to judicious use of PAGE= and a
"CLASS=linux EXPAGE=" line that works for me since all of the debian hosts
are on 3 pages (so far :-). And this way I didn't have to ask the debian
admins to change their Xymon client configuration.

Thanks!
Steve
quoted from Jeremy Laidman

On Tue, Jan 10, 2012 at 6:07 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On Wed, Jan 11, 2012 at 7:50 AM, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
Ok see, this is real similar to the problem I'm having, except I can't
get it to work (Xymon 4.2.3).

My debian hosts are sending the following:

client xxxx.xxxxx.org.linux linux

The bit after the hostname is used to define the OS type.  This is
obtained, at the client, from the lower-cased output of "uname -s", but can
be overridden by defining in xymonclient.cfg by setting SERVEROSTYPE.  See
the man page for xymonclient.cfg for info.  If you add
"SERVEROSTYPE=debian" into xymonclient.cfg (and restart xymon), then you
should get your client data showing this:

client xxxx.xxxxx.org.debian linux

I haven't tried this, but it might do what you want.

Our [debian] servers keep some files in a different location than our
other Linux servers (Redhat) so the Debian servers get "File is missing"
errors and I have to disable the test to prevent the warning from showing
up.

I have a global [linux] section, and per-host definitions where they
deviate.  It's a bit of a hassle replicating the same definitions for a
bunch of identical hosts, but I only have to set it up once per host.

J

-- 
If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Scot Kreienkamp · Thu, 8 Nov 2018 01:39:33 +0000 ·
Hi everyone,

I'm trying to monitor for the existence of some files.  I have the entries in client-local.config, and when the files exist they are being reported back properly.  I can see the data about each file when I click on it in the files area for the server.  The problem comes when the files don't exist.  The files entry for the server remains green, but when I click on the file that I'm monitoring it says ERROR: No such file or directory.  So Xymon client is sending back that it doesn't exist, but yet Xymon is still green.

Here's the client-local.cfg for that server:

[retvpgpdbak.na.lzb.hq]
file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc`
file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).sql.gz`
file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date +%F).tgz`
file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc`
file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz`

And the analysis.cfg

HOST=retvpgpdbak.na.lzb.hq
        FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc` red  TYPE=file SIZE>0 MTIME<108000


From the man-page, Xymon is supposed to send an alert if the file doesn't exist... So the only thing I can think of is that my analysis.cfg entry is wrong somehow.

Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162  | * XXX-XXX-XXXX | | * 7349151444 | *  user-9678697f1438@xymon.invalid<mailto:%7BE-mail%7D>
www<http://www.la-z-boy.com/>.la-z-boy.com<http://www.la-z-boy.com/>; | facebook.<https://www.facebook.com/lazboy>com<https://www.facebook.com/lazboy>/<https://www.facebook.com/lazboy>lazboy<http://facebook.com/lazboy>; | twitter.com/lazboy<https://twitter.com/lazboy>; | youtube.com/<https://www.youtube.com/user/lazboy>lazboy<https://www.youtube.com/user/lazboy>;

[cid:lzbVertical_hres.jpg]


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
Attachments (1)
list Thomas Eckert · Thu, 08 Nov 2018 07:04:31 +0100 ·
Hi Scot,
the command-substitution-style filename in analysis.cfg might be it. Try to convert that to a regex. As your client-local.cfg only sends data for your "good" files anyway this should produce the desired state.

All the best
Thomas


quoted from Scot Kreienkamp
On Nov 8, 2018 02:39, Scot Kreienkamp wrote:

Hi everyone,


I’m trying to monitor for the existence of some files. I have the entries in client-local.config, and when the files exist they are being reported back properly. I can see the data about each file when I click on it in the files area for the server. The problem comes when the files don’t exist. The files entry for the server remains green, but when I click on the file that I’m monitoring it says ERROR: No such file or directory. So Xymon client is sending back that it doesn’t exist, but yet Xymon is still green.


Here’s the client-local.cfg for that server:


[retvpgpdbak.na.lzb.hq]

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).sql.gz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date +%F).tgz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz`


And the analysis.cfg


HOST=retvpgpdbak.na.lzb.hq

FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc` red TYPE=file SIZE>0 MTIME<108000



From the man-page, Xymon is supposed to send an alert if the file doesn’t exist… So the only thing I can think of is that my analysis.cfg entry is wrong somehow.

Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate

One La-Z-Boy Drive | Monroe, Michigan 48162 | ( XXX-XXX-XXXX | | ) 7349151444 | * user-9678697f1438@xymon.invalid
www.la-z-boy.com | facebook.com/lazboy | twitter.com/lazboy | youtube.com/lazboy

quoted from Scot Kreienkamp


This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.

list Scot Kreienkamp · Thu, 8 Nov 2018 17:57:59 +0000 ·
That was indeed it.  I was expecting the same method (the backticks) would work in both, never thought about a regex.

Thanks Thomas!


Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
quoted from Thomas Eckert
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Thomas Eckert
Sent: Thursday, November 8, 2018 1:05 AM
To: xymon at xymon.com
Subject: Re: [Xymon] File monitoring

Hi Scot,

the command-substitution-style filename in analysis.cfg might be it. Try to convert that to a regex. As your client-local.cfg only sends data for your "good" files anyway this should produce the desired state.

All the best
Thomas


On Nov 8, 2018 02:39, Scot Kreienkamp <user-9678697f1438@xymon.invalid<mailto:user-9678697f1438@xymon.invalid>> wrote:

Hi everyone,


I’m trying to monitor for the existence of some files.  I have the entries in client-local.config, and when the files exist they are being reported back properly.  I can see the data about each file when I click on it in the files area for the server.  The problem comes when the files don’t exist.  The files entry for the server remains green, but when I click on the file that I’m monitoring it says ERROR: No such file or directory.  So Xymon client is sending back that it doesn’t exist, but yet Xymon is still green.


Here’s the client-local.cfg for that server:


[retvpgpdbak.na.lzb.hq]

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).sql.gz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date +%F).tgz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz`


And the analysis.cfg


HOST=retvpgpdbak.na.lzb.hq

        FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc` red  TYPE=file SIZE>0 MTIME<108000


From the man-page, Xymon is supposed to send an alert if the file doesn’t exist… So the only thing I can think of is that my analysis.cfg entry is wrong somehow.

Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162  | • XXX-XXX-XXXX | | • 7349151444 | •  user-9678697f1438@xymon.invalid<mailto:%7BE-mail%7D>
www<http://www.la-z-boy.com/>.la-z-boy.com<http://www.la-z-boy.com/>; | facebook.<https://www.facebook.com/lazboy>com<https://www.facebook.com/lazboy>/<https://www.facebook.com/lazboy>lazboy<http://facebook.com/lazboy>; | twitter.com/lazboy<https://twitter.com/lazboy>; | youtube.com/<https://www.youtube.com/user/lazboy>lazboy<https://www.youtube.com/user/lazboy>;

[cid:lzbVertical_hres.jpg]


This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
list Galen Johnson · Thu, 8 Nov 2018 13:16:18 -0500 ·
yeah...be careful to use pcre and not the same regex you would use on the
command line.  Got bit by that myself.

For example, 'foo*' (cli) does not equal 'foo.*' (pcre)

=G=

On Thu, Nov 8, 2018 at 12:58 PM Scot Kreienkamp <
quoted from Scot Kreienkamp
user-9678697f1438@xymon.invalid> wrote:
That was indeed it.  I was expecting the same method (the backticks) would
work in both, never thought about a regex.


Thanks Thomas!


*Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | |
Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Thomas
Eckert
*Sent:* Thursday, November 8, 2018 1:05 AM
*To:* xymon at xymon.com
*Subject:* Re: [Xymon] File monitoring


Hi Scot,


the command-substitution-style filename in analysis.cfg might be it. Try
to convert that to a regex. As your client-local.cfg only sends data for
your "good" files anyway this should produce the desired state.


All the best

Thomas


On Nov 8, 2018 02:39, Scot Kreienkamp <user-9678697f1438@xymon.invalid>
quoted from Scot Kreienkamp
wrote:

Hi everyone,


I’m trying to monitor for the existence of some files.  I have the entries
in client-local.config, and when the files exist they are being reported
back properly.  I can see the data about each file when I click on it in
the files area for the server.  The problem comes when the files don’t
exist.  The files entry for the server remains green, but when I click on
the file that I’m monitoring it says ERROR: No such file or directory.  So
Xymon client is sending back that it doesn’t exist, but yet Xymon is still
green.


Here’s the client-local.cfg for that server:


[retvpgpdbak.na.lzb.hq]

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date
+%F).sql.gz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/basebackup-$(date
+%F).tgz`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).pgc`

file:`echo /automount/PITR/retvpgpdbak.na.lzb.hq/quartz-$(date +%F).sql.gz`


And the analysis.cfg


HOST=retvpgpdbak.na.lzb.hq

        FILE `echo /automount/PITR/retvpgpdbak.na.lzb.hq/rms-prod-$(date
+%F).pgc` red  TYPE=file SIZE>0 MTIME<108000


From the man-page, Xymon is supposed to send an alert if the file doesn’t
exist… So the only thing I can think of is that my analysis.cfg entry is
wrong somehow.

*Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate*
One La-Z-Boy Drive | Monroe, Michigan 48162  | ( XXX-XXX-XXXX | | )

7349151444 | *  user-9678697f1438@xymon.invalid <%7BE-mail%7D>
www <http://www.la-z-boy.com/>.la-z-boy.com <http://www.la-z-boy.com/>; |
facebook. <https://www.facebook.com/lazboy>com
<https://www.facebook.com/lazboy>/ <https://www.facebook.com/lazboy>lazboy
<http://facebook.com/lazboy>; | twitter.com/lazboy | youtube.com/
<https://www.youtube.com/user/lazboy>lazboy
<https://www.youtube.com/user/lazboy>;
quoted from Scot Kreienkamp


This message is intended only for the individual or entity to which it is
addressed.  It may contain privileged, confidential information which is
exempt from disclosure under applicable laws.  If you are not the intended
recipient, you are strictly prohibited from disseminating or distributing
this information (other than to the intended recipient) or copying this
information.  If you have received this communication in error, please
notify us immediately by e-mail or by telephone at the above number. Thank
you.