Xymon Mailing List Archive search

File Monitoring (MTIME & SIZE)

2 messages in this thread

list Michael S. Fisher · Thu, 5 Feb 2009 12:11:57 -0800 ·
Hi All,

I am trying to monitor files which should NOT be modified.

If have the SIZE and MTIME parameter setup as follows:

HOST=testhost.test.com
FILE    /etc/passwd TYPE=file OWNER=0 GROUP=0 MODE=644 SIZE=123456
MTIME>86400 red

This basically means that if the file is modified within the last 24 hours,
or if the SIZE is different than 123456  it should go red...

It never goes to any other status other than green.

I also have the /etc/passwd entry in the clients-local.cfg file as well\

Any Ideas?
list Gavin Leonard · Tue, 17 Mar 2009 16:59:29 -0600 ·
Where do you add/edit this? On the server? On the client? Which file? Thanks in advance.

-Gavin
quoted from Michael S. Fisher

From: user-ab09d151b26b@xymon.invalid [mailto:user-ab09d151b26b@xymon.invalid]
Sent: Thursday, February 05, 2009 1:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] File Monitoring (MTIME & SIZE)


Hi All,

I am trying to monitor files which should NOT be modified.

If have the SIZE and MTIME parameter setup as follows:

HOST=testhost.test.com
FILE /etc/passwd TYPE=file OWNER=0 GROUP=0 MODE=644 SIZE=123456 MTIME>86400 red

This basically means that if the file is modified within the last 24 hours, or if the SIZE is different than 123456 it should go red...

It never goes to any other status other than green.

I also have the /etc/passwd entry in the clients-local.cfg file as well\

Any Ideas?