<br> <div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm a long-time user of Nagios with active checks. Today I started using<br>
passive checks with NSCA and I'm having a problem.<br>
<br>
The documentation states "A service must be defined in Nagios before you<br>
can submit passive check results for it".<br>
<br>
I defined a config block like this, to define a service for the Oracle<br>
service that I want to monitor passively - omitting the check_command<br>
directive.<br>
<br>
define service {<br>
         service_description            Oracle<br>
         host_name                      <a href="http://oddjob.resnet.bris.ac.uk" target="_blank">oddjob.resnet.bris.ac.uk</a><br>
         use                            resnet-service<br>
}<br>
<br>
<br>
<br>
But running nagios -v gives this output:<br>
<br>
Error: Service description, host name, or check command is NULL<br>
Error: Could not register service (config file<br>
'/etc/nagios/nagios_service.cfg', starting on line 8618)<br>
    Error processing object config files!<br>
<br>
<br>
So what's the approved way of defining a service without specifying a<br>
command for active checks?<br> </blockquote><div><br> The approved way is that you can't because it remains a >service< definition, however the command<br>can be dummy , although it must be defined.<br>The command definition however is obliviated by  using :<br>

<br>               active_checks_enabled      0<br>               passive_checks_enabled   1  <br><br>Sometimes for check_command check-host-alive is being used, this avoids long outstaniding stale data<br>for the specific passive service definition.<br>

<br>M.<br></div></div>