![]() |
Icinga-core 1.4.0
next gen monitoring
|
00001 /***************************************************************************** 00002 * 00003 * NEBCALLBACKS.H - Include file for event broker modules 00004 * 00005 * Copyright (c) 1999-2009 Ethan Galstad (egalstad@nagios.org) 00006 * Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors 00007 * Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org) 00008 * 00009 * License: 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License version 2 as 00013 * published by the Free Software Foundation. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00023 * 00024 *****************************************************************************/ 00025 00026 #ifndef _NEBCALLBACKS_H 00027 #define _NEBCALLBACKS_H 00028 00029 #include "config.h" 00030 #include "nebmodules.h" 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 00037 /***** CALLBACK TYPES *****/ 00038 00039 #define NEBCALLBACK_NUMITEMS 33 /* total number of callback types we have */ 00040 00041 #define NEBCALLBACK_RESERVED0 0 /* reserved for future use */ 00042 #define NEBCALLBACK_RESERVED1 1 00043 #define NEBCALLBACK_RESERVED2 2 00044 #define NEBCALLBACK_RESERVED3 3 00045 #define NEBCALLBACK_RESERVED4 4 00046 00047 #define NEBCALLBACK_RAW_DATA 5 00048 #define NEBCALLBACK_NEB_DATA 6 00049 00050 #define NEBCALLBACK_PROCESS_DATA 7 00051 #define NEBCALLBACK_TIMED_EVENT_DATA 8 00052 #define NEBCALLBACK_LOG_DATA 9 00053 #define NEBCALLBACK_SYSTEM_COMMAND_DATA 10 00054 #define NEBCALLBACK_EVENT_HANDLER_DATA 11 00055 #define NEBCALLBACK_NOTIFICATION_DATA 12 00056 #define NEBCALLBACK_SERVICE_CHECK_DATA 13 00057 #define NEBCALLBACK_HOST_CHECK_DATA 14 00058 #define NEBCALLBACK_COMMENT_DATA 15 00059 #define NEBCALLBACK_DOWNTIME_DATA 16 00060 #define NEBCALLBACK_FLAPPING_DATA 17 00061 #define NEBCALLBACK_PROGRAM_STATUS_DATA 18 00062 #define NEBCALLBACK_HOST_STATUS_DATA 19 00063 #define NEBCALLBACK_SERVICE_STATUS_DATA 20 00064 #define NEBCALLBACK_ADAPTIVE_PROGRAM_DATA 21 00065 #define NEBCALLBACK_ADAPTIVE_HOST_DATA 22 00066 #define NEBCALLBACK_ADAPTIVE_SERVICE_DATA 23 00067 #define NEBCALLBACK_EXTERNAL_COMMAND_DATA 24 00068 #define NEBCALLBACK_AGGREGATED_STATUS_DATA 25 00069 #define NEBCALLBACK_RETENTION_DATA 26 00070 #define NEBCALLBACK_CONTACT_NOTIFICATION_DATA 27 00071 #define NEBCALLBACK_CONTACT_NOTIFICATION_METHOD_DATA 28 00072 #define NEBCALLBACK_ACKNOWLEDGEMENT_DATA 29 00073 #define NEBCALLBACK_STATE_CHANGE_DATA 30 00074 #define NEBCALLBACK_CONTACT_STATUS_DATA 31 00075 #define NEBCALLBACK_ADAPTIVE_CONTACT_DATA 32 00076 00077 00078 /***** CALLBACK FUNCTIONS *****/ 00079 00080 int neb_register_callback(int callback_type, void *mod_handle, int priority, int (*callback_func)(int,void *)); 00081 int neb_deregister_callback(int callback_type, int (*callback_func)(int,void *)); 00082 int neb_deregister_module_callbacks(nebmodule *); 00083 00084 #ifdef __cplusplus 00085 } 00086 #endif 00087 00088 00089 #endif