#include "nagios.h"#include "nebstructs.h"#include "nebcallbacks.h"#include "neberrors.h"#include "nebmodules.h"#include "broker.h"#include <stdio.h>#include <string.h>#include <signal.h>#include <dlfcn.h>Go to the source code of this file.
Defines | |
| #define | USEC2MSEC 1000L |
Typedefs | |
| typedef int | nebmodule_init (int flags, char *args, void *handle) |
| typedef int | nebmodule_deinit (int flags, int reason) |
Functions | |
| int | neb_register_callback (int callback_type, void *handle, int priority, int(*callback_func)(int, void *)) |
| int | neb_deregister_callback (int callback_type, int(*callback_func)(int, void *)) |
| int | neb_deregister_module_callbacks (nebmodule *mod) |
| int | neb_unload_module (void *handle, int(*deinitfunc)(int, int), int flags, int reason) |
| int | main (int argc, char **argv) |
Variables | |
| service * | service_list = 0 |
| int(* | pdata_callback )(int, void *) |
| int(* | schk_callback )(int, void *) |
| int(* | tevt_callback )(int, void *) |
| #define USEC2MSEC 1000L |
| typedef int nebmodule_deinit(int flags, int reason) |
Definition at line 55 of file mockNagios.c.
| typedef int nebmodule_init(int flags, char *args, void *handle) |
Definition at line 54 of file mockNagios.c.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 207 of file mockNagios.c.
References nebstruct_timed_event_struct::attr, nebstruct_service_check_struct::command_line, CURRENT_NEB_API_VERSION, service_struct::description, EVENT_CHECK_REAPER, nebstruct_timed_event_struct::event_data, timed_event_struct::event_data, nebstruct_timed_event_struct::event_ptr, nebstruct_timed_event_struct::event_type, timed_event_struct::event_type, nebstruct_timed_event_struct::flags, service_struct::host_name, circular_buffer_struct::items, neb_unload_module(), NEBCALLBACK_PROCESS_DATA, NEBCALLBACK_SERVICE_CHECK_DATA, NEBCALLBACK_TIMED_EVENT_DATA, NEBERROR_CALLBACKOVERRIDE, NEBMODULE_ERROR_NO_INIT, NEBMODULE_FORCE_UNLOAD, NEBTYPE_PROCESS_EVENTLOOPSTART, NEBTYPE_SERVICECHECK_INITIATE, NEBTYPE_TIMEDEVENT_EXECUTE, service_struct::parallelize, pdata_callback, nebstruct_timed_event_struct::recurring, timed_event_struct::recurring, nebstruct_timed_event_struct::run_time, timed_event_struct::run_time, schk_callback, nebstruct_service_check_struct::start_time, tevt_callback, nebstruct_service_check_struct::timeout, nebstruct_timed_event_struct::timestamp, nebstruct_timed_event_struct::type, nebstruct_service_check_struct::type, nebstruct_process_struct::type, and USEC2MSEC.
| int neb_deregister_callback | ( | int | callback_type, | |
| int(*)(int, void *) | callback_func | |||
| ) |
Definition at line 158 of file mockNagios.c.
References NEBCALLBACK_PROCESS_DATA, NEBCALLBACK_SERVICE_CHECK_DATA, NEBCALLBACK_TIMED_EVENT_DATA, pdata_callback, schk_callback, and tevt_callback.
| int neb_deregister_module_callbacks | ( | nebmodule * | mod | ) |
Definition at line 175 of file mockNagios.c.
| int neb_register_callback | ( | int | callback_type, | |
| void * | handle, | |||
| int | priority, | |||
| int(*)(int, void *) | callback_func | |||
| ) |
Definition at line 140 of file mockNagios.c.
References NEBCALLBACK_PROCESS_DATA, NEBCALLBACK_SERVICE_CHECK_DATA, NEBCALLBACK_TIMED_EVENT_DATA, pdata_callback, schk_callback, and tevt_callback.
| int neb_unload_module | ( | void * | handle, | |
| int(*)(int, int) | deinitfunc, | |||
| int | flags, | |||
| int | reason | |||
| ) |
Definition at line 180 of file mockNagios.c.
References ERROR, MAX_INPUT_BUFFER, NEBMODULE_ERROR_BAD_INIT, NEBMODULE_FORCE_UNLOAD, and OK.
Referenced by main().
| int(* pdata_callback)(int, void *) |
Referenced by main(), neb_deregister_callback(), and neb_register_callback().
| int(* schk_callback)(int, void *) |
Referenced by main(), neb_deregister_callback(), and neb_register_callback().
| service* service_list = 0 |
| int(* tevt_callback)(int, void *) |
Referenced by main(), neb_deregister_callback(), and neb_register_callback().
1.5.6