<div class="gmail_quote">On Tue, May 4, 2010 at 2:14 PM, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Leonardo Carneiro - Veltrac wrote:<br>
> Hi list,<br>
><br>
> I have the following situation: I'm monitoring a bunch of services on a<br>
> bunch of servers (ok, nothing new so far).<br>
> All machines run the same services, but not all services is being<br>
> monitored by now (since they are custom services, i'm still writing<br>
> plugins for all of them). New machines are being added every day, and<br>
> also, i'm writing new plugins to check the services.<br>
><br>
> When a new machine is added, is relatively easy: i copy the config file<br>
> from another machine and change the name of the host and other unique<br>
> attributes, but when a new service is added (a.k.a. i have finish<br>
> another plugin), i need to edit all the dozens of config files for each<br>
> server to add this new service.<br>
><br>
> There is a smarter way to do this?<br>
> Sorry for my poor english. Tks in advance.<br>
><br>
Try using templates and hostgroups<br>
Templates will allow you to use a central base definition to the service<br>
or host .<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectinheritance.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectinheritance.html</a><br>
<br>
you can assign a service to a hostgroup and thus all host in the group<br>
will have the service checked on them.<br>
<br>
<a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service" target="_blank">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service</a><br></blockquote><div><br>Also, using a web-based configuration tool such as NagiosQL (<a href="http://www.nagiosql.org">http://www.nagiosql.org</a>), 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...<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
--<br>
Never,Ever Cut A Deal With a Dragon<br>
<br>
<br>
I am doing a Charity Bike ride On the 27 of June for the<br>
Capital to Coast Charity. Please help by Donating<br>
<a href="http://www.justgiving.com/Lovefilm-capital-to-coast" target="_blank">http://www.justgiving.com/Lovefilm-capital-to-coast</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>