monitoring msgs
list Ian Diddams
Hi all. I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work. In the client I have the following files in ~/client/etc client-local.cfg: log:/var/log/messages:4096 localclient.cfg: LOG /var/log/messages warn COLOR=red The actual msgs report in the xymon web page says " System logs at Fri May 30 10:29:38 BST 2014 : No log data available The client did not report any logfile data " I need a dummies guide to msgs monitoring! If anyone could provide such a beast i would be immensely grateful. cheers Ian
list Colin Coe
Does the xymon user have permission to read the file? CC --- Sent from my Galaxy Nexus
▸
On 30 May 2014 17:47, "Ian Diddams" <user-7fbf34ed5219@xymon.invalid> wrote:
Hi all. I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work. In the client I have the following files in ~/client/etc client-local.cfg: log:/var/log/messages:4096 localclient.cfg: LOG /var/log/messages warn COLOR=red The actual msgs report in the xymon web page says " System logs at Fri May 30 10:29:38 BST 2014 : No log data available The client did not report any logfile data " I need a dummies guide to msgs monitoring! If anyone could provide such a beast i would be immensely grateful. cheers Ian
list Paul Root
Is your xymon setup in central mode or local mode? By default xymon is setup in central mode. So you'd want this in the client-local.cfg and the analysis.cfg on the server.
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Ian Diddams
sorry paul - when you say "So you’d want this in the client-local.cfg and the analysis.cfg on the server." what is "this" cheers didds
▸
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 14:40
Subject: RE: [Xymon] monitoring msgs
Is your xymon setup in central mode or local mode?
By default xymon is setup in central mode.
So you’d want this in the client-local.cfg and the analysis.cfg on the server.
From:Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
▸
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Paul Root
This is the file you want to monitor and what you want to monitor.
▸
From: Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Friday, May 30, 2014 9:26 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
sorry paul - when you say
"So you’d want this in the client-local.cfg and the analysis.cfg on the server."
what is "this"
cheers
didds
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid<mailto:user-7fbf34ed5219@xymon.invalid>>; "'xymon at xymon.com'" <xymon at xymon.com<mailto:xymon at xymon.com>>
Sent: Friday, 30 May 2014, 14:40
Subject: RE: [Xymon] monitoring msgs
Is your xymon setup in central mode or local mode?
By default xymon is setup in central mode.
So you’d want this in the client-local.cfg and the analysis.cfg on the server.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Ian Diddams
hmmm... I have nio analysis.cfg! 9which is possibly why its not working!) here's the contents of the xymon server server/etc directory $ ls bbcombotest.cfg bbwarnrules.cfg columndoc.csv hobbit-alerts.cfg hobbit-clients.cfg hobbit-nkview.cfg hobbitserver.cfg hobbit-apache.conf hobbitgraph.cfg bb-services client-local.cfg getw.cfg hobbitcgi.cfg hobbitlaunch.cfg hobbitpasswd
▸
cheers.
didds
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 15:31
Subject: RE: [Xymon] monitoring msgs
This is the file you want to monitor and what you want to monitor.
From:Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
▸
Sent: Friday, May 30, 2014 9:26 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
sorry paul - when you say
"So you’d want this in the client-local.cfg and the analysis.cfg on the server."
what is "this"
cheers
didds
From:"Root, Paul T" <user-76fdb6883669@xymon.invalid>
▸
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 14:40
Subject: RE: [Xymon] monitoring msgs
Is your xymon setup in central mode or local mode?
By default xymon is setup in central mode.
So you’d want this in the client-local.cfg and the analysis.cfg on the server.
From:Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Paul Root
Ah, you have a very old version of xymon running then. In the future, let us know what version you are running. So, I can’t remember which file it is. How soon we forget. It must be hobbit-clients.cfg is the old name for analysis.cfg. Paul.
▸
From: Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Friday, May 30, 2014 10:12 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
hmmm...
I have nio analysis.cfg! 9which is possibly why its not working!)
here's the contents of the xymon server server/etc directory
$ ls
bbcombotest.cfg
bbwarnrules.cfg
columndoc.csv
hobbit-alerts.cfg
hobbit-clients.cfg
hobbit-nkview.cfg
hobbitserver.cfg
hobbit-apache.conf
hobbitgraph.cfg
bb-services
client-local.cfg
getw.cfg
hobbitcgi.cfg
hobbitlaunch.cfg
hobbitpasswd
cheers.
didds
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid<mailto:user-7fbf34ed5219@xymon.invalid>>; "'xymon at xymon.com'" <xymon at xymon.com<mailto:xymon at xymon.com>>
Sent: Friday, 30 May 2014, 15:31
Subject: RE: [Xymon] monitoring msgs
This is the file you want to monitor and what you want to monitor.
From: Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Friday, May 30, 2014 9:26 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
sorry paul - when you say
"So you’d want this in the client-local.cfg and the analysis.cfg on the server."
what is "this"
cheers
didds
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid<mailto:user-7fbf34ed5219@xymon.invalid>>; "'xymon at xymon.com'" <xymon at xymon.com<mailto:xymon at xymon.com>>
Sent: Friday, 30 May 2014, 14:40
Subject: RE: [Xymon] monitoring msgs
Is your xymon setup in central mode or local mode?
By default xymon is setup in central mode.
So you’d want this in the client-local.cfg and the analysis.cfg on the server.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Ian Diddams
This is my hobbit-clients.cfg .. on the server in hobbit-clients.cfg I also have DEFAULT # These are the built-in defaults. UP 1h LOAD 5.0 10.0 DISK * 90 95 MEMPHYS 100 101 MEMSWAP 50 80 MEMACT 90 97 LOG /var/log/messages warn COLOR=red
list Ian Diddams
and for clarification, msgs report still returns a white button and the follwoing in the megs page itself The client did not report any logfile data cheers didds
▸
From: Ian Diddams <user-7fbf34ed5219@xymon.invalid>
To: "xymon at xymon.com" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 16:28
Subject: Re: [Xymon] monitoring msgs
This is my hobbit-clients.cfg
..
on the server in hobbit-clients.cfg I also have
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
LOG /var/log/messages warn COLOR=red
list Paul Root
Yep.
First, the LOG line needs to come before the DEFAULTS section.
Second, you need to tell it what machine to operate on:
HOST=<machine name>
LOG ...
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 11:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] monitoring msgs
and for clarification, msgs report still returns a white button and the follwoing in the megs page itself
The client did not report any logfile data
cheers
didds
From: Ian Diddams <user-7fbf34ed5219@xymon.invalid<mailto:user-7fbf34ed5219@xymon.invalid>>
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Sent: Friday, 30 May 2014, 16:28
Subject: Re: [Xymon] monitoring msgs
This is my hobbit-clients.cfg
..
on the server in hobbit-clients.cfg I also have
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
LOG /var/log/messages warn COLOR=red
list Galen Johnson
Also, are your permissions allowing the xymon user to access the log file you are monitoring? I've seen on some systems that /var/log/messages permissions disallow world read... Also, I think if you set it in the DEFAULT area, it will enable it for all hosts...you may want that. Fairly certain it doesn't have to be associated with a specific host to work. =G=
▸
From: Xymon <xymon-bounces at xymon.com> on behalf of Root, Paul T <user-76fdb6883669@xymon.invalid>
Sent: Friday, May 30, 2014 12:24 PM
To: 'Ian Diddams'; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
Yep.
First, the LOG line needs to come before the DEFAULTS section.
Second, you need to tell it what machine to operate on:
HOST=<machine name>
LOG ...
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 11:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] monitoring msgs
and for clarification, msgs report still returns a white button and the follwoing in the megs page itself
The client did not report any logfile data
cheers
didds
From: Ian Diddams <user-7fbf34ed5219@xymon.invalid<mailto:user-7fbf34ed5219@xymon.invalid>>
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Sent: Friday, 30 May 2014, 16:28
Subject: Re: [Xymon] monitoring msgs
This is my hobbit-clients.cfg
..
on the server in hobbit-clients.cfg I also have
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
LOG /var/log/messages warn COLOR=red
list Ian Diddams
ultimately, yes, I do want it for all hosts. and the client xymon user can indeed read the /var/logs/messages file. so the permissions are correct, its in the corrects ection (in effect), and both the client and server fiels are correctly configured. I am at a loss then as to why msgs remains white. :-( didds
▸
From: Galen Johnson <user-87f955643e3d@xymon.invalid>
To: "Root, Paul T" <user-76fdb6883669@xymon.invalid>; 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 19:31
Subject: RE: [Xymon] monitoring msgs
Also, are your permissions allowing the xymon user to access the log file you are monitoring? I've seen on some systems that /var/log/messages permissions disallow world read...
Also, I think if you set it in the DEFAULT area, it will enable it for all hosts...you may want that. Fairly certain it doesn't have to be associated with a specific host to work.
=G=
From: Xymon <xymon-bounces at xymon.com> on behalf of Root, Paul T <user-76fdb6883669@xymon.invalid>
Sent: Friday, May 30, 2014 12:24 PM
To: 'Ian Diddams'; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
Yep.
First, the LOG line needs to come before the DEFAULTS section.
Second, you need to tell it what machine to operate on:
HOST=<machine name>
LOG …
From:Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 11:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] monitoring msgs
and for clarification, msgs report still returns a white button and the follwoing in the megs page itself
The client did not report any logfile data
cheers
didds
From:Ian Diddams <user-7fbf34ed5219@xymon.invalid>
▸
To: "xymon at xymon.com" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 16:28
Subject: Re: [Xymon] monitoring msgs
This is my hobbit-clients.cfg
..
on the server in hobbit-clients.cfg I also have
DEFAULT
# These are the built-in defaults.
UP 1h
LOAD 5.0 10.0
DISK * 90 95
MEMPHYS 100 101
MEMSWAP 50 80
MEMACT 90 97
LOG /var/log/messages warn COLOR=red
list Jeremy Laidman
On 30 May 2014 19:44, Ian Diddams <user-7fbf34ed5219@xymon.invalid> wrote:
The client did not report any logfile data
This probably means that your client doesn't know to report the file data back to the Xymon server. Is your client host configured to run in central mode? Assuming it is, check the Hobbit temp directory (on the client host) for two files, one called logfetch.<hostname>.cfg and the other called logfetch.<hostname>.status. The "status" file should have an entry for your messages file. The "cfg" file should have the entire hobbit-clients.cfg section associated with this host (including comments and blank lines). Note that it can take up to 15 minutes for changes in hobbit-clients.cfg to be reflected in these two files. If you have neither of these files, you might be running in client mode rather than central mode. Or there might be an error in your hobbitclient.log file. Once these files are looking OK, the messages file details should start showing up in your client data. On any network test page, click on the [Client data] link at the bottom of the page, and then search for a "msgs" section like this: [msgs:/var/log/messages] Jun 2 14:39:27 servername kernel: It's cold in here Jun 2 14:43:62 servername sendmail: Go install postfix Cheers Jeremy
list Ian Diddams
I treied to find the version of xymon but cioldn;t find anythuing obvuious - apologies. That entry is in hobbit-clients.cfg already
▸
From: "Root, Paul T" <user-76fdb6883669@xymon.invalid>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 16:17
Subject: RE: [Xymon] monitoring msgs
Ah, you have a very old version of xymon running then. In the future, let us know what version you are running.
So, I can’t remember which file it is. How soon we forget. It must be hobbit-clients.cfg is the old name for analysis.cfg.
Paul.
From:Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Friday, May 30, 2014 10:12 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
hmmm...
I have nio analysis.cfg! 9which is possibly why its not working!)
here's the contents of the xymon server server/etc directory
$ ls
bbcombotest.cfg
bbwarnrules.cfg
columndoc.csv
hobbit-alerts.cfg
hobbit-clients.cfg
hobbit-nkview.cfg
hobbitserver.cfg
hobbit-apache.conf
hobbitgraph.cfg
bb-services
client-local.cfg
getw.cfg
hobbitcgi.cfg
hobbitlaunch.cfg
hobbitpasswd
cheers.
didds
From:"Root, Paul T" <user-76fdb6883669@xymon.invalid>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 15:31
Subject: RE: [Xymon] monitoring msgs
This is the file you want to monitor and what you want to monitor.
From:Ian Diddams [mailto:user-7fbf34ed5219@xymon.invalid]
Sent: Friday, May 30, 2014 9:26 AM
To: Root, Paul T; 'xymon at xymon.com'
Subject: Re: [Xymon] monitoring msgs
sorry paul - when you say
"So you’d want this in the client-local.cfg and the analysis.cfg on the server."
what is "this"
cheers
didds
From:"Root, Paul T" <user-76fdb6883669@xymon.invalid>
To: 'Ian Diddams' <user-7fbf34ed5219@xymon.invalid>; "'xymon at xymon.com'" <xymon at xymon.com>
Sent: Friday, 30 May 2014, 14:40
Subject: RE: [Xymon] monitoring msgs
Is your xymon setup in central mode or local mode?
By default xymon is setup in central mode.
So you’d want this in the client-local.cfg and the analysis.cfg on the server.
From:Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ian Diddams
Sent: Friday, May 30, 2014 4:44 AM
To: xymon at xymon.com
Subject: [Xymon] monitoring msgs
Hi all.
I am really struggling to understand how to monitor msgs in xymon. I have read the man pages over anhd over and nothing I am doing seems to work.
In the client I have the following files in ~/client/etc
client-local.cfg:
log:/var/log/messages:4096
localclient.cfg:
LOG /var/log/messages warn COLOR=red
The actual msgs report in the xymon web page says
"
System logs at Fri May 30 10:29:38 BST 2014 : No log data available
The client did not report any logfile data
"
I need a dummies guide to msgs monitoring!
If anyone could provide such a beast i would be immensely grateful.
cheers
Ian
list Jeremy Laidman
▸
On Monday, 2 June 2014, Ian Diddams <user-7fbf34ed5219@xymon.invalid> wrote:
I treied to find the version of xymon but cioldn;t find anythuing obvuious - apologies.
Try: bb --version On my system: $ cd /usr/lib/hobbit/client/bin $ ./bb --version Cheers Jeremy
list Ian Diddams
thanks jeremey - bxymon is version 4.2.3 cheers ian
▸
From: Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
To: Ian Diddams <user-7fbf34ed5219@xymon.invalid>
Cc: "xymon at xymon.com" <xymon at xymon.com>
Sent: Thursday, 5 June 2014, 4:29
Subject: Re: [Xymon] monitoring msgs
On Monday, 2 June 2014, Ian Diddams <user-7fbf34ed5219@xymon.invalid> wrote:
I treied to find the version of xymon but cioldn;t find anythuing obvuious - apologies.
Try: bb --version On my system: $ cd /usr/lib/hobbit/client/bin $ ./bb --version Cheers Jeremy