compact definition of multiple hosts or service groups?
davor grgicevic
dgrgicevic at gmail.com
Wed Sep 26 10:47:46 CEST 2012
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 <justinp at norchemlab.com>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
> 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
>
--
Davor Grgicevic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120926/f5dfaff6/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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