NEB: Difference between event types

Andreas Ericsson ae at op5.se
Mon Oct 24 22:13:10 CEST 2005


Mohr James wrote:
> What is the difference between these event types?
> 
> NEBCALLBACK_SERVICE_STATUS_DATA 
> NEBCALLBACK_SERVICE_CHECK_DATA
> 
> Is the CHECK_DATA when Nagios starts a check is this is the status data
> for the step of actually doing the check, whereas STATUS_DATA is the
> data returned by the check or sent by send_nsca?
> 

I think STATUS_DATA is what Nagios passes to the module when it updates 
the logged status of the service. This happens once for all services at 
load-time and once when max_attempts have been reached.

> So, for example, if I was only interested in the data returned by the
> check or sent by send_nsca I would need a callback for the
> NEBCALLBACK_SERVICE_CHECK_DATA event. Is that right?
> 

I should think so, yes. You can check broker.c for confirmation though. 
If you backtrace the function flow scheme you'll find how it's called 
from checks.c (I think).

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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