| Anonymous | Login | Signup for a new account | 2013-05-24 05:24 EDT |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000351 | [Nagios Core] Event Broker | feature | N/A | 2012-07-01 15:38 | 2012-07-01 15:38 | |||||||
| Reporter | jbreams | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | ||||||||||
| Summary | 0000351: Add broker-event for the end of a timed event | |||||||||||
| Description | Nagios currently brokers only the start of a timed event. Add a broker event for when timed events complete. Since the changes in Nagios that aren't thread-safe mostly happen inside timed events (like the check result reaper), notifying NEBs when the events start and end lets them do some basic global locking. | |||||||||||
| Additional Information |
Patch to implement feature for 3.4.1: diff --git a/base/events.c b/base/events.c index 3e93fcd..d4f6f6e 100644 --- a/base/events.c +++ b/base/events.c @@ -1416,6 +1416,11 @@ int handle_timed_event(timed_event *event) { break; } +#ifdef USE_EVENT_BROKER + /* send event data to broker */ + broker_timed_event(NEBTYPE_TIMEDEVENT_END, NEBFLAG_NONE, NEBATTR_NONE, event, NULL); +#endif + log_debug_info(DEBUGL_FUNCTIONS, 0, "handle_timed_event() end\n"); return OK; diff --git a/include/broker.h b/include/broker.h index 670dee7..670706e 100644 --- a/include/broker.h +++ b/include/broker.h @@ -77,6 +77,7 @@ #define NEBTYPE_TIMEDEVENT_DELAY 203 /* NOT IMPLEMENTED */ #define NEBTYPE_TIMEDEVENT_SKIP 204 /* NOT IMPLEMENTED */ #define NEBTYPE_TIMEDEVENT_SLEEP 205 +#define NEBTYPE_TIMEDEVENT_END 206 #define NEBTYPE_LOG_DATA 300 #define NEBTYPE_LOG_ROTATION 301 |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Nagios Version | 3.4.1 | |||||||||||
| OS | N/A | |||||||||||
| OS Version | ||||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| There are no notes attached to this issue. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-07-01 15:38 | jbreams | New Issue | |
| 2012-07-01 15:38 | jbreams | Nagios Version | => 3.4.1 |
| 2012-07-01 15:38 | jbreams | OS | => N/A |
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |