Xymon Mailing List Archive search

File Monitoring

list Steve Holmes
Tue, 10 Jan 2012 15:50:04 -0500
Message-Id: <user-0b87bc1c9bd5@xymon.invalid>

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

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

*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)