Xymon Mailing List Archive search

xymon "hostinfo" does not honour tags set by `.default.`

list Thomas Eckert
Sun, 29 Oct 2017 19:08:14 +0100
Message-Id: <user-a4c2ddf4ed88@xymon.invalid>

Brothers,

I found that the information returned by `xymon 127.0.0.1 "hostinfo"` does not honour tags by `.default.`.

Steps to reproduce:

	root at pi3:/etc/xymon# egrep -i 'default|pi3' hosts.cfg
	0.0.0.0         .default.       # nosslcert
	127.0.0.1       pi3     # bbd http://pi3/
	
	root at pi3:/etc/xymon# xymon 127.0.0.1:1984 "hostinfo host=^pi3"
	pi3|127.0.0.1|bbd|http://pi3/

(note the missing `nosslcert`-tag)

Not using `.default.` the correct set of tags is returned:

	root at pi3:/etc/xymon# egrep -i 'default|pi3' hosts.cfg
	127.0.0.1       pi3     # bbd http://pi3/ nosslcert
	
	root at pi3:/etc/xymon# xymon 127.0.0.1:1984 "hostinfo host=^pi3"
	pi3|127.0.0.1|bbd|http://pi3/|nosslcert


This makes `hostinfo` not a usable source for getting the monitoring configuration for hosts or prevents the use of `.default.`.

All the best
Thomas