[Xymon] .default. host and CLASS and NOPROP tags

henrik at hswn.dk henrik at hswn.dk
Thu Mar 3 15:32:50 CET 2011


On Mon, 28 Feb 2011 10:32:25 -0800, Brian Majeska <brian at majeska.com>
wrote:
> I'd like to use the CLASS and NOPROP tags in the .default. hosts
> entry, it doesn't seem to be working for me.  Can anyone confirm if
> they have this working for them?  or if I've made an obvious mistake?
> 
> 0.0.0.0    .default.       # CLASS:group1 NOPROPRED=disk
> 1.2.3.4    server1.example.com #

It's actually slightly embarassing to me, because this exhibits 
how in-consequential I've been with regards to use 'colon' and
'equals' in those tags.

The man-page has it right, your "NOPROPRED" should be "NOPROPRED:disk".
"CLASS:group1" should be ok.

You can test it with a small utility that is built when you
run "make" to build Xymon. It doesn't get installed, so 
you'll have to run it from the source directory. Try this:

henrik at osiris:~/xymon/4.3.0$ /usr/lib/xymon/server/bin/xymoncmd \
   ./lib/loadhosts /etc/xymon/hosts.cfg localhost
Entry for host localhost
        bbd
        http://localhost/
Pick item:XMH_CLASS
        XMH_CLASS value is: 'group1'
Pick item:XMH_NOPROPRED
        XMH_NOPROPRED value is: 'disk'
Pick item:

This is with this hosts.cfg file:

0.0.0.0 .default. # NOPROPRED:disk CLASS:group1
127.0.0.1       localhost       # bbd http://localhost/
0.0.0.0 .default. #
172.16.10.193   henrikXP        # CLIENT:HENRIK-63768AFC

The "henrikXP" host (outside the .default. section) gives:

Entry for host henrikXP
        CLIENT:HENRIK-63768AFC
Pick item:XMH_CLASS
        XMH_CLASS not found
Pick item:XMH_NOPROPRED
        XMH_NOPROPRED not found


Regards,
Henrik




More information about the Xymon mailing list