NSCA with Nagios
Jonathan Baker
jonathan at football1x2.com
Wed Jul 27 18:37:21 CEST 2005
You do need a check_command which links to a command definition. It says so in the manual. check_commands are highlighted in red. Are you sure you don't need one defined in a service?
Do the service definitions need to be exactly the same? The service definition on the distributed remote host must link to a local service via check_command to do its stuff, I assume, like check_disk.
Thats all fine, and I think this is working okay.
The Nagios central server host must also have the service definition but *can't* have a check_command because its not a local service (in the case of check_disk). So presumably you need to enable passive checks for this particular service and check freshness and then link to a host_name which is your remote host (although defined on the Nagios central server as well as locally on the remote host Nagios install).
Still confused. Perhaps you could post one of your service definitions? (Host/Remote)
Sorry for all the questions. This is tough!
----- Original Message -----
From: Scott Sugar
To: Jonathan Baker ; nagios-users at lists.sourceforge.net
Sent: Wednesday, July 27, 2005 5:03 PM
Subject: RE: [Nagios-users] NSCA with Nagios
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
To: Jonathan Baker
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...
a.. 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/0a173eaf/attachment.html>
More information about the Users
mailing list