Ah, thanks so much for the clarification.
Jamison Maxwell
From: Larry Barber [lebarber at gmail.com] 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 <jamison at newasterisk.com<mailto:jamison at newasterisk.com>> 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. 770 605 6653<tel:770%20605%206653> jamison at newasterisk.com<mailto:jamison at newasterisk.com>
From: Root, Paul [Paul.Root at CenturyLink.com] Sent: Tuesday, January 10, 2012 2:08 PM To: Jamison Maxwell; xymon at xymon.com<mailto: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> [mailto: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<mailto: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<http://hostname.domain.com> FILE /mnt/fs/test SIZE>1 COLOR=red
client.local.cfg: HOST=hostname.domain.com<http://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.
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
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 <jamison at newasterisk.com>wrote:
Ah, thanks so much for the clarification.
Jamison Maxwell
*From:* Larry Barber [lebarber at gmail.com] *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. Asection 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 <jamison at newasterisk.com>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. 770 605 6653 jamison at newasterisk.com
*From:* Root, Paul [Paul.Root at CenturyLink.com] *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.
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
-- 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)
On Wed, Jan 11, 2012 at 7:50 AM, Steve Holmes <sholmes42 at mac.com> wrote:
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
The bit after the hostname is used to define the OS type. This is obtained, at the client, from the lower-cased output of "uname -s", but can be overridden by defining in xymonclient.cfg by setting SERVEROSTYPE. See the man page for xymonclient.cfg for info. If you add "SERVEROSTYPE=debian" into xymonclient.cfg (and restart xymon), then you should get your client data showing this:
client xxxx.xxxxx.org.debian linux
I haven't tried this, but it might do what you want.
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.
I have a global [linux] section, and per-host definitions where they deviate. It's a bit of a hassle replicating the same definitions for a bunch of identical hosts, but I only have to set it up once per host.
J
Brilliant! That last paragraph led me to judicious use of PAGE= and a "CLASS=linux EXPAGE=" line that works for me since all of the debian hosts are on 3 pages (so far :-). And this way I didn't have to ask the debian admins to change their Xymon client configuration.
Thanks! Steve
On Tue, Jan 10, 2012 at 6:07 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>wrote:
On Wed, Jan 11, 2012 at 7:50 AM, Steve Holmes <sholmes42 at mac.com> wrote:
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
The bit after the hostname is used to define the OS type. This is obtained, at the client, from the lower-cased output of "uname -s", but can be overridden by defining in xymonclient.cfg by setting SERVEROSTYPE. See the man page for xymonclient.cfg for info. If you add "SERVEROSTYPE=debian" into xymonclient.cfg (and restart xymon), then you should get your client data showing this:
client xxxx.xxxxx.org.debian linux
I haven't tried this, but it might do what you want.
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.
I have a global [linux] section, and per-host definitions where they deviate. It's a bit of a hassle replicating the same definitions for a bunch of identical hosts, but I only have to set it up once per host.
J
-- 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)
participants (3)
-
jamison@newasterisk.com
-
jlaidman@rebel-it.com.au
-
sholmes42@mac.com