Xymon Mailing List Archive search

use "Files" status for noob

7 messages in this thread

list Grégory Bulot · Thu, 4 Apr 2013 19:43:26 +0200 ·
Hello, 

I ask help for Xymon 4.3.0-0.beta2 (native package  for
Debian/Squeeze=stable)

Sorry for this question, but i don't understand howto use 'files'
status, someone can help me howto use (in French ?)


My File check stay "clear"

For example I just want to see if one file is present (later, i
will check if some data are inside file)

Where i am now :
- xymon srv = supervision.toto.com
- client to monitoring : adama59.toto.com

On srv :

in /etc/hobbit/hobbit-clients.cfg

HOST=adama59.toto.com
        FILE /etc/awstats/update_stats.sh "red" TYPE=file

in /etc/hobbit/client-local.cfg
[adama59.toto.com]
 log:/var/log/messages:10240
 ignore MARK
 log:/var/log/mail.log
 log:/etc/awstats/update_stats.sh


I suppose i have to do something on the client ? but what  ?
list Paul Root · Thu, 4 Apr 2013 17:58:41 +0000 ·
You don't want adam59.toto.com in the client-local.cfg file. You want the server type, like linux.  After changing that, you need to restart the server.
quoted from Grégory Bulot

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of user-ba12ef048dd6@xymon.invalid
Sent: Thursday, April 04, 2013 12:43 PM
To: xymon at xymon.com
Subject: [Xymon] [xymon]use "Files" status for noob

Hello, 

I ask help for Xymon 4.3.0-0.beta2 (native package  for
Debian/Squeeze=stable)

Sorry for this question, but i don't understand howto use 'files'
status, someone can help me howto use (in French ?)


My File check stay "clear"

For example I just want to see if one file is present (later, i will check if some data are inside file)

Where i am now :
- xymon srv = supervision.toto.com
- client to monitoring : adama59.toto.com

On srv :

in /etc/hobbit/hobbit-clients.cfg

HOST=adama59.toto.com
        FILE /etc/awstats/update_stats.sh "red" TYPE=file

in /etc/hobbit/client-local.cfg
[adama59.toto.com]
 log:/var/log/messages:10240
 ignore MARK
 log:/var/log/mail.log
 log:/etc/awstats/update_stats.sh


I suppose i have to do something on the client ? but what  ?
list Grégory Bulot · Fri, 5 Apr 2013 18:48:28 +0200 ·
Le Thu, 4 Apr 2013 17:58:41 +0000,
quoted from Paul Root
"Root, Paul T" <user-76fdb6883669@xymon.invalid> a écrit :
You don't want adam59.toto.com in the client-local.cfg file. You want
the server type, like linux.  After changing that, you need to
restart the server.

Hi Root, Paul T

It was my first test (restart was done after )
my second was to copy [linux] section and after i was rename this
copy to adam59.toto.com and restart
list Paul Root · Fri, 5 Apr 2013 17:14:47 +0000 ·
Just add the filename you want to watch in the linux section. That's how it will work. Clients-local.cfg does not have host names just architecture types.
quoted from Grégory Bulot

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of 'user-ba12ef048dd6@xymon.invalid'
Sent: Friday, April 05, 2013 11:48 AM
To: 'xymon at xymon.com'
Subject: Re: [Xymon] [xymon]use "Files" status for noob

Le Thu, 4 Apr 2013 17:58:41 +0000,
"Root, Paul T" <user-76fdb6883669@xymon.invalid> a écrit :
You don't want adam59.toto.com in the client-local.cfg file. You want 
the server type, like linux.  After changing that, you need to restart 
the server.

Hi Root, Paul T

It was my first test (restart was done after ) my second was to copy [linux] section and after i was rename this copy to adam59.toto.com and restart
list Mike Burger · Fri, 5 Apr 2013 15:11:35 -0400 ·
This would be inaccurate. You can (and I do) use specific hosts in the client-local.cfg.

If you're going to monitor a specific log on a specific system, you can use:

[hostname] (as it appears in hosts.cfg)
file:/path/to/file
log:/var/log/messages:1024 (Or whatever the default syslog is for your installation)

The first line monitors for the presence of the file in question, the second line replicates the default syslog for your OS. This second line is necessary if you wish to monitor that log, as specifying a particular host in the client-local.cfg will supercede any OS specific settings.

--
Mike Burger
AIX Administrator

Phone (XXX) XXX-XXXX, Fax (XXX) XXX-XXXX, Cell (XXX) XXX-XXXX 
E-mail:  user-c26873f0522a@xymon.invalid
"Once word leaks out that a pirate's gone soft, people begin to disobey you and then it's nothing but work, work, work, all the time." --Westley/The Dread Pirate Roberts
quoted from Paul Root


-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Root, Paul T
Sent: Friday, April 05, 2013 1:15 PM
To: 'user-ba12ef048dd6@xymon.invalid'; 'xymon at xymon.com'
Subject: Re: [Xymon] [xymon]use "Files" status for noob

Just add the filename you want to watch in the linux section. That's how it will work. Clients-local.cfg does not have host names just architecture types.

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of 'user-ba12ef048dd6@xymon.invalid'
Sent: Friday, April 05, 2013 11:48 AM
To: 'xymon at xymon.com'
Subject: Re: [Xymon] [xymon]use "Files" status for noob

Le Thu, 4 Apr 2013 17:58:41 +0000,
"Root, Paul T" <user-76fdb6883669@xymon.invalid> a écrit :
You don't want adam59.toto.com in the client-local.cfg file. You want 
the server type, like linux.  After changing that, you need to restart 
the server.

Hi Root, Paul T

It was my first test (restart was done after ) my second was to copy [linux] section and after i was rename this copy to adam59.toto.com and restart


CONFIDENTIALITY NOTICE: This e-mail message, including all attachments, is for
the sole use of the intended recipient(s) and may contain confidential
information. Any unauthorized review, use, disclosure, alteration or
distribution is strictly prohibited and may violate state or federal law. If you
are not the intended recipient, please contact the sender by reply e-mail,
delete this email and destroy all copies of the message.
list Grégory Bulot · Sun, 7 Apr 2013 13:35:03 +0200 ·
Le Fri, 5 Apr 2013 15:11:35 -0400,
quoted from Mike Burger
"Mike Burger" <user-c26873f0522a@xymon.invalid> a écrit :
[hostname] (as it appears in hosts.cfg)
file:/path/to/file
log:/var/log/messages:1024 (Or whatever the default syslog is for
your installation)
Yes ! it's because i didn't respect that it  must have these 2 lines :
file:
log:


thanks !
list Larry Barber · Mon, 8 Apr 2013 15:08:08 -0500 ·
You will also need an entry in the analysis.cfg file

Thanks,
Larry Barber
quoted from Grégory Bulot


On Sun, Apr 7, 2013 at 6:35 AM, <user-ba12ef048dd6@xymon.invalid> wrote:
Le Fri, 5 Apr 2013 15:11:35 -0400,
"Mike Burger" <user-c26873f0522a@xymon.invalid> a écrit :
[hostname] (as it appears in hosts.cfg)
file:/path/to/file
log:/var/log/messages:1024 (Or whatever the default syslog is for
your installation)
Yes ! it's because i didn't respect that it  must have these 2 lines :
file:
log:


thanks !