Icinga-core 1.4.0
next gen monitoring
xdata/xsddefault.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  *
00003  * XSDDEFAULT.H - Header file for default status data 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 _XSDDEFAULT_H
00027 #define _XSDDEFAULT_H
00028 
00029 #ifdef NSCORE
00030 int xsddefault_initialize_status_data(char *);
00031 int xsddefault_cleanup_status_data(char *,int);
00032 int xsddefault_save_status_data(void);
00033 #endif
00034 
00035 #ifdef NSCGI
00036 
00037 #define XSDDEFAULT_NO_DATA               0
00038 #define XSDDEFAULT_INFO_DATA             1
00039 #define XSDDEFAULT_PROGRAMSTATUS_DATA    2
00040 #define XSDDEFAULT_HOSTSTATUS_DATA       3
00041 #define XSDDEFAULT_SERVICESTATUS_DATA    4
00042 #define XSDDEFAULT_CONTACTSTATUS_DATA    5
00043 #define XSDDEFAULT_HOSTCOMMENT_DATA      6
00044 #define XSDDEFAULT_SERVICECOMMENT_DATA   7
00045 #define XSDDEFAULT_HOSTDOWNTIME_DATA     8
00046 #define XSDDEFAULT_SERVICEDOWNTIME_DATA  9
00047 
00048 int xsddefault_read_status_data(char *,int);
00049 #endif
00050 
00051 int xsddefault_grab_config_info(char *);
00052 int xsddefault_grab_config_directives(char *);
00053 
00054 #endif
 All Data Structures Files Functions Variables Typedefs Defines