<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello Jonathan,</span></div><div><span><br></span></div><div><span>I think that you must put <br></span></div><div>define service {<br>         service_description            Oracle<br>         host_name                      oddjob.resnet.bris.ac.uk<br>         use                            resnet-service</div><div><span class="tab">    </span><span class="tab">    </span><span style="font-weight: bold;">max_check_attempts        1</span><br style="font-weight: bold;"><span style="font-weight: bold;">       
 check_freshness         1</span><br style="font-weight: bold;"><span style="font-weight: bold;">        freshness_threshold     86400</span><br></div><div><span class="tab">    </span><span class="tab">    </span><span style="font-weight: bold;">check_command           check_dummy!1 "no news since 24h"</span><br>}</div><div>=> The check_dummy command will run if no passive check has been received within 24 hours (86400seconds) and display warnig alert (<span style="font-weight: bold;">1</span>)  and info status <span style="font-weight: bold;">"no news since 24h"</span></div><div><br><span style="font-weight: bold;"></span></div><div><span>Regards, <br></span></div><div><span>Mohamed</span><span style="font-weight: bold;"><br></span></div>  <div style="font-family: times
 new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De :</span></b> Jonathan Gazeley <jonathan.gazeley@bristol.ac.uk><br> <b><span style="font-weight: bold;">À :</span></b> nagios-users@lists.sourceforge.net <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Mercredi 15 août 2012 15h07<br> <b><span style="font-weight: bold;">Objet :</span></b> [Nagios-users] Defining passive checks<br> </font> </div> <br>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                      oddjob.resnet.bris.ac.uk<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><br>Thanks,<br>Jonathan<br><br>------------------------------------------------------------------------------<br>Live Security Virtual Conference<br>Exclusive live event will cover all the ways today's security and <br>threat landscape has changed and how IT managers can respond. Discussions <br>will include endpoint security, mobile security and the latest in malware <br>threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>Nagios-users mailing list<br><a ymailto="mailto:Nagios-users@lists.sourceforge.net" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin
 version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null<br><br><br> </div> </div>  </div></body></html>