From: davor g. <dgr...@gm...> - 2012-09-26 08:47:56
|
Hi Justin for that you can use different approach: I do for each host a different cfg file, and they are stored into different directories defined in main configuration, on this way is adding or removing hosts easy as in this case u can use templates... hope this help davor http://nagios.sourceforge.net/docs/3_0/configmain.html * * On Wed, Sep 26, 2012 at 12:53 AM, Justin T Pryzby <ju...@no...>wrote: > 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 > Nag...@li... > 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 > -- Davor Grgicevic |