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 ?
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 diffusion at bulot-fr.com 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 ?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Le Thu, 4 Apr 2013 17:58:41 +0000, "Root, Paul T" <Paul.Root at CenturyLink.com> 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
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 'diffusion at bulot-fr.com' 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" <Paul.Root at CenturyLink.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 (317) 537-3680, Fax (317) 537-4680, Cell (317) 797-2040 E-mail: Mike.Burger at FreedomMortgage.com "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: 'diffusion at bulot-fr.com'; '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 'diffusion at bulot-fr.com' 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" <Paul.Root at CenturyLink.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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.
Le Fri, 5 Apr 2013 15:11:35 -0400, "Mike Burger" <Mike.Burger at FreedomMortgage.com> 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 !
You will also need an entry in the analysis.cfg file
Thanks, Larry Barber
On Sun, Apr 7, 2013 at 6:35 AM, <diffusion at bulot-fr.com> wrote:
Le Fri, 5 Apr 2013 15:11:35 -0400, "Mike Burger" <Mike.Burger at FreedomMortgage.com> 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 !
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (4)
-
diffusion@bulot-fr.com
-
lebarber@gmail.com
-
Mike.Burger@FreedomMortgage.com
-
Paul.Root@CenturyLink.com