Hi Jacob,<br><br>sorry, but I don't understand very well...Router is a hostgroup with all my routers. <br><br>did you mean remove the hostname ? It will work, however, all routers will monitoring uptime and I need to exclude five. <br>
The strange is that it worked up to 4 hosts very well, when I put more one: fail! totally crazy!!<br><br>I'm lost...<br><br><br><br>
<br><br><div class="gmail_quote">On Wed, Oct 17, 2012 at 4:50 PM, Jacob Seeley <span dir="ltr"><<a href="mailto:Jacob.Seeley@radispheregroup.com" target="_blank">Jacob.Seeley@radispheregroup.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">My guess is you don’t have a host definition for the host (router) you’ve removed – once the undefined hostname was removed from the service definition, it works.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jacob</span></b><i><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></i></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Leonardo Bacha Abrantes [mailto:<a href="mailto:leonardo@lbasolutions.com" target="_blank">leonardo@lbasolutions.com</a>] <br>
<b>Sent:</b> Wednesday, October 17, 2012 3:39 PM<br><b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br><b>Subject:</b> [Nagios-users] Host exclusion fail more 4 hosts<u></u><u></u></span></p>
</div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hey people,<br><br><br>I created an group called Routers and I inserted my routers on.<br>I don't want to check uptime of five routers, so, I created the exclusion as: host_name !R1,!R2,!R3,!R4,!R5.<br>
<br>The problem is: <b>nagios only work up to four host</b>, because when I add more one host, I received the error below:<br><br>Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios/objects/router.cfg', starting on line 13)<br>
Error processing object config files!<b><br><br></b>if I remove just one host, it worked. I didn't find anything on manual about limitations.<b><br></b><br><br>define service{<br> use generic-service<br>
<b> hostgroup_name Routers</b><br> service_description Uptime<br> max_check_attempts 5<br> normal_check_interval 10<br> retry_check_interval 3<br>
contact_groups G-Prod<br> check_command check_snmp!-C Mycommunity -o sysUpTime.0<br> notifications_enabled 0<br><b> host_name !R1,!R2,!R3,!R4,!R5</b><br>
}<br><br><br>Can someone help me please ?<br><br>many thanks!<u></u><u></u></p></div></div></div></div><br>------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href="http://p.sf.net/sfu/appdyn_sfd2d_oct" target="_blank">http://p.sf.net/sfu/appdyn_sfd2d_oct</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></blockquote></div><br>