<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.
</FONT></DIV>
<DIV><FONT face=Arial size=2>Thats all fine, and I think this is working okay.
</FONT></DIV>
<DIV><FONT face=Arial size=2>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). </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Still confused. Perhaps you could post one of your
service definitions? (Host/Remote)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sorry for all the questions. This is
tough!</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ssugar@proserveit.com href="mailto:ssugar@proserveit.com">Scott
Sugar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jonathan@football1x2.com
href="mailto:jonathan@football1x2.com">Jonathan Baker</A> ; <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 27, 2005 5:03
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] NSCA with
Nagios</DIV>
<DIV><BR></DIV>
<DIV id=idOWAReplyText22490 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>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...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Read this</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2><A
href="http://nagios.sourceforge.net/docs/2_0/distributed.html">http://nagios.sourceforge.net/docs/2_0/distributed.html</A></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>from the heading <FONT size=3><FONT
face="Times New Roman"><STRONG><U>Central Server
Configuration</U></STRONG> to the bottom.</FONT></FONT></FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net
on behalf of Jonathan Baker<BR><B>Sent:</B> Wed 7/27/2005 12:03
PM<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re:
[Nagios-users] NSCA with Nagios<BR></FONT><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>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. </FONT></DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=ssugar@proserveit.com href="mailto:ssugar@proserveit.com">Scott
Sugar</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jonathan@football1x2.com
href="mailto:jonathan@football1x2.com">Jonathan Baker</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 27, 2005 2:05
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] NSCA with
Nagios</DIV>
<DIV><BR></DIV>
<DIV id=idOWAReplyText97071 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>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. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>or... as ethan puts it...</FONT></DIV>
<DIV dir=ltr>
<LI>The central server must have service definitions for <I>all services</I>
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. </LI></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagios-users-admin@lists.sourceforge.net on behalf of Jonathan
Baker<BR><B>Sent:</B> Wed 7/27/2005 8:03 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] NSCA
with Nagios<BR></FONT><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Hi there, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.
</FONT></DIV>
<DIV><FONT face=Arial size=2>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.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Little
help?</FONT></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>