Distributed Nagios and scheduling service check from the central server

Dustin Kamper dkamper at mxlogic.com
Thu Jul 14 22:40:24 CEST 2005



OK,

All of the checks on the distributed servers can be executed by the
central server with no issues.  So I just used a 'concatonated' version
of the services.cfg from all the distributed servers on the central
server.  So, basically, the central server can step in and check
services when/if the distributed server(s) stop responding.  That is
what I am using the freshness checking for.  The freshness checking will
automatically start checking services on a distributed server failure.
But I also want to be able to check services on demand via 'Re-schedule
the next check of this service' link on the web page from the central
server.

>From what I can figure out, freshness checks base the 'freshness' of the
the results on the normal_check_interval setting.  Since
normal_check_interval controls the timming of the active checks, you
must turn active checks off so you don't have the central server
checking what the distributed servers are already checking.  When active
service checks are turned off, the 'Re-schedule the next check of this
service' link is not available from the web page.

I would like 1 source of Nagios for monitoring all of my servers but
would like to spread the load of all the service checks to many
distributed servers.  It would be a pain to have to go to one of the
distributed servers just to run one re-scheduled service check on
demand.

Now I'm not sure that a distributed solution is going to work for my
monitoring needs.  Any pointers would be appreciated.

-Dustin

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Thursday, July 14, 2005 1:29 PM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Distributed Nagios and scheduling service
check from the central server



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Dustin Kamper
> Sent: Thursday, July 14, 2005 11:23 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Distributed Nagios and scheduling service
check
> from the central server
> 
> I have a distributed Nagios setup I'm testing with 2 distributed
servers
> and 1 central server.  The distributed servers run all checks and send
> the results to the central server.  The central server is configured
to
> accept passive service checks and check for freshness.  Active checks
> are turned off on the central server.
> 
> With active checks turned off, it seems that I cannot schedule a check
> of services from the central server web page.  If I turn on active
> checks (to allow a forced scheduled check) then the checks are run per
> normal_check_interval, which I don't want.  So, I have increased the
> normal_check_interval to a very high number to make active check only
> run occasionally, but this will effect the freshness checking.
Nothing
> seems to be working the way I need it to.

Set your check_period to none. Active checks will never happen except
for the forced freshness check. You can then force an active check from
the GUI for any host or service that you want and it will be executed.
Scheduled checks will not happen. See below.
> 
> Is there a way to be able to manually schedule a check of services
from
> the central server in a distributed setup?  I don't want active checks
> performed from the central server but I would like freshness checking
to
> be performed.

There is no mechanism to send an 'active check request' from a central
server to the distributed servers. Nagios itself isn't even aware that
they exist let alone how to communicate with them. It just knows that it
got a passive check, not where it came from. You either need to use the
GUI on the distributed servers to force the check, use the GUI on the
central server and have the check execute from there or create your own
mechanism to send/execute the request on your distributed machines.

--
Marc


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
_______________________________________________
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




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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