On Tue, May 4, 2010 at 2:14 PM, Assaf Flatto <nag...@flatto.net> wrote:
> Leonardo Carneiro - Veltrac wrote: > > Hi list, > > > > I have the following situation: I'm monitoring a bunch of services on a > > bunch of servers (ok, nothing new so far). > > All machines run the same services, but not all services is being > > monitored by now (since they are custom services, i'm still writing > > plugins for all of them). New machines are being added every day, and > > also, i'm writing new plugins to check the services. > > > > When a new machine is added, is relatively easy: i copy the config file > > from another machine and change the name of the host and other unique > > attributes, but when a new service is added (a.k.a. i have finish > > another plugin), i need to edit all the dozens of config files for each > > server to add this new service. > > > > There is a smarter way to do this? > > Sorry for my poor english. Tks in advance. > > > Try using templates and hostgroups > Templates will allow you to use a central base definition to the service > or host . > http://nagios.sourceforge.net/docs/3_0/objectinheritance.html > > you can assign a service to a hostgroup and thus all host in the group > will have the service checked on them. > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service > Also, using a web-based configuration tool such as NagiosQL ( http://www.nagiosql.org), in conjunction with things like templates, hostgroups, servicegroups etc. can make life a whole lot easier. Doubtless there are other web-based configuration front-ends for Nagios around as well... > > -- > Never,Ever Cut A Deal With a Dragon > > > I am doing a Charity Bike ride On the 27 of June for the > Capital to Coast Charity. Please help by Donating > http://www.justgiving.com/Lovefilm-capital-to-coast > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 >
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@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