add hosts to running nagios through API?

Marcel webknowledge at gmail.com
Thu Jul 3 03:44:27 CEST 2008


On Tue, Jul 1, 2008 at 9:21 AM, Marc Powell <marc at ena.com> wrote:

>
> On Jul 1, 2008, at 4:30 AM, Christian Schneemann wrote:
>
> > Hi,
> > is it possible to add hosts to a running nagios server through an AP
> > (commands
> > in command file)?
>
> Not currently... Interpret as you will --
>
> checks.c:                               /* TODO - add new service
> definition automatically */
> checks.c:                               /* TODO - add new host definition
> automatically */
>
> I also believe this might be something the event broker could do in
> the future.


Or, could be something like: I have this lines on my passive central nagios
instance:
 [1215007259] Warning:  Passive check result was received for service 'Boot
Check' on host 'mamute1', but the service could not be found!

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.

> I can't know which hosts here at work will have the software
> > installed, but
> > when they have it insalled they has to be monitored.
>
> How would nagios know about them then? My suggestion would be to
> create your own plugin that knows this information and checks them all
> at once. Assign it to a host that always runs the software or a dummy
> host created for this purpose. Alternately, have the service check
> assigned to all possible hosts but exit as OK if the software isn't
> supposed to be running on it at that time.
>
> --
> Marc


Cheers,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080702/8fef880f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list