use "Files" status for noob
list Grégory Bulot
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
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.
▸
-----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
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 Paul Root
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
list Mike Burger
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
▸
-----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
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 !
list Larry Barber
You will also need an entry in the analysis.cfg file Thanks, Larry Barber
▸
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 !