![]() |
Icinga-core 1.4.0
next gen monitoring
|
00001 /***************************************************************************** 00002 * 00003 * XRDDEFAULT.H - Header file for default state retention routines 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 _XRDDEFAULT_H 00027 #define _XRDDEFAULT_H 00028 00029 00030 #define XRDDEFAULT_NO_DATA 0 00031 #define XRDDEFAULT_INFO_DATA 1 00032 #define XRDDEFAULT_PROGRAMSTATUS_DATA 2 00033 #define XRDDEFAULT_HOSTSTATUS_DATA 3 00034 #define XRDDEFAULT_SERVICESTATUS_DATA 4 00035 #define XRDDEFAULT_CONTACTSTATUS_DATA 5 00036 #define XRDDEFAULT_HOSTCOMMENT_DATA 6 00037 #define XRDDEFAULT_SERVICECOMMENT_DATA 7 00038 #define XRDDEFAULT_HOSTDOWNTIME_DATA 8 00039 #define XRDDEFAULT_SERVICEDOWNTIME_DATA 9 00040 00041 int xrddefault_initialize_retention_data(char *); 00042 int xrddefault_cleanup_retention_data(char *); 00043 int xrddefault_grab_config_info(char *); 00044 int xrddefault_grab_config_directives(char *); 00045 int xrddefault_save_state_information(void); /* saves all host and service state information */ 00046 int xrddefault_read_state_information(void); /* reads in initial host and service state information */ 00047 int xrddefault_sync_state_information(void); /* syncs in host and service state information via sync file */ 00048 00049 #endif