[hobbit] matching hosts and noconn

Frédéric Mangeant frederic.mangeant at steria.com
Mon Jun 19 15:58:21 CEST 2006


Lardinois, Pierre a écrit :
> Hello,
>
> In my bb-hosts, I have a section filled with servers where the test is
> noconn
>
> 	page serversNOCONN
> 	123.123.123.110	server1	# noconn
> 	123.123.123.112	server2	# noconn
> 	123.123.123.113	server3	# noconn
>
> and another section where the servers have "real" tests
>
> 	page serversTESTS
> 	123.123.123.110 server1 	# testip !ftp !telnet
>
> If I try to make an alert rule with the following parameter, to retrieve all
> red alerts on the page serversNOCONN : 
>
> 	PAGE=serversNOCONN ....
> 	MAIL ....
>
> I received no alerts. If I check with the test command : 
>
> 	bbcmd hobbitd_alert --test server3 red conn
>
> I get this message : 
>
> 	Failed 'PAGE=serversNOCONN [...] (pagename not in include list)
>
> My questions are : 
> - Is it because hosts with noconn test only are not matched ? 
> - What is the "include list"? 
> - did I made something wrong somewhere ? 
>   


Hi Pierre

maybe you can use the "prefer" tag in bb-hosts :

prefer
    When a single host is defined multiple time in the bb-hosts file,
    bbgen tries to guess which definition is the best to use for the
    information used on the "info" column, or for the NOPROPRED and
    other bbgen-specific settings. Host definitions that have a "noconn"
    tag or an IP of 0.0.0.0 get lower priority.

    By using the "prefer" tag you tell bbgen that this host definition
    should be used.

    Note: This only applies to hosts that are defined multiple times in
    the bb-hosts file, although it will not hurt to add it on other
    hosts as well.

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis






More information about the Xymon mailing list