Defining passive checks

Jonathan Gazeley jonathan.gazeley at bristol.ac.uk
Thu Aug 16 13:27:10 CEST 2012


Hi Mohamed,

Thanks for your response - this worked.

Have a nice day,
Jonathan


On 16/08/12 08:08, mohamed ben romdhane wrote:
> 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.gazeley at bristol.ac.uk>
> *À :* nagios-users at 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 at lists.sourceforge.net
> <mailto:Nagios-users at 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 at 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 at 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





More information about the Users mailing list