On Tue, Jul 1, 2008 at 9:21 AM, Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
On Jul 1, 2008, at 4:30 AM, Christian Schneemann wrote:<br>
<br>
> Hi,<br>
> is it possible to add hosts to a running nagios server through an AP<br>
> (commands<br>
> in command file)?<br>
<br>
</div>Not currently... Interpret as you will --<br>
<br>
checks.c:                               /* TODO - add new service definition automatically */<br>
checks.c:                               /* TODO - add new host definition automatically */<br>
<br>
I also believe this might be something the event broker could do in<br>
the future.</blockquote><div><br>Or, could be something like: I have this lines on my passive central nagios instance:<br> [1215007259] Warning:  Passive check result was received for service 'Boot Check' on host 'mamute1', but the service could not be found!<br>
<br>As passive checks could get in without even been configured, and it already has the threshold logic done, Nagios would only configure the new service, replicate it to the ndo database, and when restarting/reloading, generating the correct entry in the config files for persistency. So, it would be possible to have dinamic zero-configuration installs for extrictely passive nagios instances. As we move to a passively monitoring platform, all monitored hosts within our datacenter have the plugins to check_server, check_procs, check_if, and so on, and the sysadmin have the hability to configure de thresholds and checks without the need of tweaking nagios configs. All is needed to be done is configuring cron, thresholds, etc, and Nagios would take care of everything else. <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;">> I can't know which hosts here at work will have the software<br><div class="Ih2E3d">

> installed, but<br>
> when they have it insalled they has to be monitored.<br>
<br>
</div>How would nagios know about them then? My suggestion would be to<br>
create your own plugin that knows this information and checks them all<br>
at once. Assign it to a host that always runs the software or a dummy<br>
host created for this purpose. Alternately, have the service check<br>
assigned to all possible hosts but exit as OK if the software isn't<br>
supposed to be running on it at that time.<br>
<br>
--<br>
<font color="#888888">Marc</font></blockquote><div><br>Cheers,<br>Marcel <br></div></div>