Hello Jonathan,

I think that you must put 

define service {
         service_description            Oracle
         host_name                      oddjob.resnet.bris.ac.uk
         use                            resnet-service
        max_check_attempts        1
        check_freshness         1
        freshness_threshold     86400

        check_command           check_dummy!1 "no news since 24h"
}
=> The check_dummy command will run if no passive check has been received 
within 24 hours (86400seconds) and display warnig alert (1)  and info status 
"no news since 24h"

Regards, 

Mohamed


________________________________
 De : Jonathan Gazeley <jonathan.gaze...@bristol.ac.uk>
À : nagios-users@lists.sourceforge.net 
Envoyé le : Mercredi 15 août 2012 15h07
Objet : [Nagios-users] Defining passive checks
 
I'm a long-time user of Nagios with active checks. Today I started using 
passive checks with NSCA and I'm having a problem.

The documentation states "A service must be defined in Nagios before you 
can submit passive check results for it".

I defined a config block like this, to define a service for the Oracle 
service that I want to monitor passively - omitting the check_command 
directive.

define service {
         service_description            Oracle
         host_name                      oddjob.resnet.bris.ac.uk
         use                            resnet-service
}



But running nagios -v gives this output:

Error: Service description, host name, or check command is NULL
Error: Could not register service (config file 
'/etc/nagios/nagios_service.cfg', starting on line 8618)
    Error processing object config files!


So what's the approved way of defining a service without specifying a 
command for active checks?

Thanks,
Jonathan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to