In fact, to mantain a good configuration design (using automatic scripts and nice language to users) I want duplicate service names since I'm defing the same service for each host. I just want to know if this will bring me any problem at all.<br>
<br><div class="gmail_quote">2009/6/1 Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com">marc@ena.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Jun 1, 2009, at 3:03 PM, Livio Zanol Puppim wrote:<br>
<br>
> Hello!<br>
><br>
> I'm trying to modify how my configuration files are written, and<br>
> have choosed to make one CFG file per host monitored. The file<br>
> contain the host itself and all the services monitored on that host.<br>
> Using this configuration makes nagios3 return a bunch of WARNING<br>
> messages about "Duplicate definition", but works just fine. Are<br>
> there any problems in using this kind of design?<br>
<br>
</div>You shouldn't be seeing Duplicate warnings unless the definitions are<br>
duplicated. You don't want duplicates and probably have them defined<br>
in both your old and new configs, both of which you've told nagios to<br>
use (cfg_file in nagios.cfg). Bear in mind that if you're using the<br>
cfg_dir directive there, it's recursive and may be catching you as<br>
well..<br>
<br>
--<br>
<font color="#888888">Marc<br>
</font><div><div></div><div class="h5"><br>
<br>
------------------------------------------------------------------------------<br>
OpenSolaris 2009.06 is a cutting edge operating system for enterprises<br>
looking to deploy the next generation of Solaris that includes the latest<br>
innovations from Sun and the OpenSource community. Download a copy and<br>
enjoy capabilities such as Networking, Storage and Virtualization.<br>
Go to: <a href="http://p.sf.net/sfu/opensolaris-get" target="_blank">http://p.sf.net/sfu/opensolaris-get</a><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>[]'s<br><br>Lívio Zanol Puppim<br>