Xymon Mailing List Archive search

hobbit-clients.cfg CLASS=Linux

4 messages in this thread

list Anna Jonna Armannsdottir · Thu, 14 Aug 2008 22:47:16 +0000 ·
In the file hobbit-clients.cfg there is the following configuration that does not seem to work as I expected. 
CLASS=Linux
	PROC	cron
	PROC	ntpd
	FILE /var/log/messages SIZE>0 MTIME<604800 yellow

DEFAULT
	# These are the built-in defaults.
	UP      10 #	LOAD    5.0 10.0 EXHOST=snaefell.rhi.hi.is
	CLOCK	5

The settings for the CLASS=Linux section used to be under default, until I introduced a bbwin client into the set. Then I introduced CLASS=Linux, hoping that it would do what I expected it to do. 
I need to be able to set some default settings for hobbit clients running on a Linux host and some other default settings for BBWin clients. 
I want to keep the hosts on the same web page so I can not use PAGE=firstset etc. 

-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Tim McCloskey · Thu, 14 Aug 2008 17:09:30 -0700 ·
You probably already know this but make sure that the clients report an OS (check the info tab).  I've run into 
situations where some the uname output somehow did not make it to the hobbit info page.
As we have many variants I went so far as to add CLASS=linux,some-other-linux-as-defined-local,etc.

Anna Jonna Armannsdottir wrote:
CLASS=Linux
	PROC	cron
	PROC	ntpd
	FILE /var/log/messages SIZE>0 MTIME<604800 yellow
list Anna Jonna Armannsdottir · Fri, 15 Aug 2008 09:13:22 +0000 ·
quoted from Tim McCloskey
On fim, 2008-08-14 at 17:09 -0700, Tim McCloskey wrote:
As we have many variants I went so far as to add
CLASS=linux,some-other-linux-as-defined-local,etc.
So it should be lowercase. I will try that. 
The client date is (some deliberately overwritten with X): 
client XXXX,rhi,hi,is.linux linux
[date]
Fri Aug 15 09:06:21 GMT 2008
[uname]
Linux XXXX.rhi.hi.is 2.6.22-14-generic x86_64
[osversion]
-en Debian lenny/sid
..... 
So, I guess that the class is in the line beginning with client? 
-- 
Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid>
Computing Services, University of Iceland
list Anna Jonna Armannsdottir · Fri, 15 Aug 2008 10:19:43 +0000 ·
quoted from Tim McCloskey
On fim, 2008-08-14 at 17:09 -0700, Tim McCloskey wrote:
As we have many variants I went so far as to add
CLASS=linux,some-other-linux-as-defined-local,etc.
Now I have positively confirmed that it works if the L in Linux is changed to lowercase. So the classname of a client is the first line of the clientdata. E.g.: 
client XXXX,rhi,hi,is.linux linux
or: client yggdrasill,rhi,hi,is.linux linux or:
client snaefell,rhi,hi,is.sunos sunos

for bbwin clients:
client XXXXX.rhi.hi.is.bbwin win32

I hope this may help somebody that is puzzled by the CLASS statement. 
-- 
Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid>
Computing Services, University of Iceland