compact definition of multiple hosts or service groups?

Justin T Pryzby justinp at norchemlab.com
Wed Sep 26 00:53:45 CEST 2012


Hi Everyone,

I was never able to resolve this question I initially asked some 18
months ago.

Is there any way to define multiple hosts in a single stanza?

I currently have a 600 line long file with handsful of 50+ definitions
like:

define host {
	use		host0
	host_name	x
	parents		y
}

It seems to me, that it "should" be allowed to define all the hosts
with the same parent (etc) in one stanza, rather than having 10
stanzas for that.  That would reduce duplicated information, make the
config file 5x shorter and comparably more maintainable.  Is there
really no implemented mechanism to defining multiple hosts having
identical information without using a separate stanza for each?

Thanks,
Justin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list