[hobbit] Setting client "class" for log file monitoring

Francesco Duranti fduranti at q8.it
Wed Aug 23 23:29:00 CEST 2006


Hi, i continue to have a problem with the class ...
I've a class defined in the clientlocal.cfg that check for 2 files.

[servcluster]
log:/var/log/messages:10240
ignore MARK
file:/prodQ8/appl/mounted
file:/collQ8/appl/mounted
clientversion:rhel3_2cpu_drbd 

I've 2 server defined in the bb-hosts that are the same and where the
first file exists and the second one don't exist..
group-compress Internal Cluster
0.0.0.0 itromlx101 #  ntpd ntp ssh !telnet vnc1 CLASS:servcluster
0.0.0.0 itromlx102 #  ntpd ntp ssh !telnet vnc1 CLASS:servcluster

And until here all is working... The file will be checked by the
hobbit-client and the result will go to the server.

Then I have this in the hobbit-clients.cfg
HOST=itromlx102
        FILE /prodQ8/appl/mounted red
        FILE /collQ8/appl/mounted yellow

CLASS=servcluster
        FILE /prodQ8/appl/mounted red
        FILE /collQ8/appl/mounted yellow


The CLASS directive here is completely ignored... The test is reported
yellow on itromlx102 (as per HOST definition) but green on itromlx101. 

Going to itromlx101 in the file:/collQ8/appl/mounted i get 
[file:/collQ8/appl/mounted]
ERROR: No such file or directory


So the file don't exists but it's reported green

Running hobbitd_client --debug --dump-config I get 
FILE /prodQ8/appl/mounted red CLASS=servcluster (line: 191)
FILE /collQ8/appl/mounted yellow CLASS=servcluster (line: 192)

I've tried to add --debug to the hobbitd_client but it seems that
nothing regarding file check is in the clientdata.log ...

Am i doing something wrong with class ? 

> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk] 
> Sent: Wednesday, August 23, 2006 10:41 PM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Setting client "class" for log file monitoring
> 
> On Wed, Aug 23, 2006 at 01:05:25PM -0700, Bob Gordon wrote:
> > On 8/23/06, Gary B. <gmbfly98 at gmail.com> wrote:
> > >
> > >> The client by default uses the "uname -s" output, which will be 
> > >> "linux". If you launch the client with
> > >>     ~hobbit/client/runclient.sh --os=rhel3 then it will use the 
> > >> [rhel3] setting. The list --os names is restricted 
> though, so for a 
> > >> more generic solution you can define your own "classes"
> > >> and run the client with a "--class=MYCLASS" option; then it will 
> > >> use the [MYCLASS] section.
> > >
> > >Is there a way to make the "--class=MYCLASS" option permanent when 
> > >starting a client?  That is, do you have to specify 
> --class everytime 
> > >you use "runclient.sh", such as stopping, starting, 
> restarting, etc?
> > >
> > 
> > And as a correllary to this, is there any way to set the 
> class option 
> > remotely?  (I dont have access to several of the systems 
> the client is 
> > running on..)
> 
> See the CLASS entry in the bb-hosts(5) man-page.
> 
> 
> Henrik
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 
> 



More information about the Xymon mailing list