NSCA with Nagios
Scott Sugar
ssugar at proserveit.com
Wed Jul 27 18:03:59 CEST 2005
well you dont NEED a check_command, or in the case of a service i believe it is called an active_check_command... the manual tells you how to disable active_checks on a global basis... you must ensure that passive checks are enabled for the service on the central machine however, which will allow you to receive in checks from your remote box... and the way I have it set up is to run a freshness check every 10 minutes on the central server... if the service is not fresh... then it has not been passivly updated in 10 minutes... this fires my active check, which just calls a command that returns a critical - service is stale notification... This is layed out nicely in the distributed monitoring section of the manual...
Read this
http://nagios.sourceforge.net/docs/2_0/distributed.html
from the heading Central Server Configuration to the bottom.
________________________________
From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker
Sent: Wed 7/27/2005 12:03 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] NSCA with Nagios
I don't get it, though. If I define a service, it has to have the same name as the remote host service definition (which is local to itself). Fine.
But the service defined on my Nagios central server (with passive_checks_enabled) also needs a check_command. What should this be to get the results of a passive check?
----- Original Message -----
From: Scott Sugar <mailto:ssugar at proserveit.com>
To: Jonathan Baker <mailto:jonathan at football1x2.com>
Sent: Wednesday, July 27, 2005 2:05 PM
Subject: RE: [Nagios-users] NSCA with Nagios
you have to have the proper services and hosts defined in your services.cfg file and hosts.cfg file... this means that the service description and host name for each service you are passivly sending needs to be defined at your central server.
or... as ethan puts it...
* The central server must have service definitions for all services that are being monitored by all the distributed servers. Nagios will ignore passive check results if they do not correspond to a service that has been defined.
________________________________
From: nagios-users-admin at lists.sourceforge.net on behalf of Jonathan Baker
Sent: Wed 7/27/2005 8:03 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NSCA with Nagios
Hi there,
I can only get the NRPE daemon working on one of my eight machines, so will have to use NSCA for the others. I've got the NSCA daemon running on my central Nagios host and have setup the send_nsca as part of a cron job that sends new results every few minutes.
What do I have to setup in my services.cfg in Nagios in order to display the results like regular Nagios services? The documentation for NSCA isn't nearly as complete as the NRPE docs.
Little help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050727/beb12970/attachment.html>
More information about the Users
mailing list