00001 /***************************************************************************** 00002 * 00003 * XPDDEFAULT.H - Include file for default performance 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 _XPDDEFAULT_H 00027 #define _XPDDEFAULT_H 00028 00029 #include "../include/objects.h" 00030 00031 00032 #define DEFAULT_HOST_PERFDATA_FILE_TEMPLATE "[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$" 00033 #define DEFAULT_SERVICE_PERFDATA_FILE_TEMPLATE "[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$" 00034 00035 00036 00037 int xpddefault_initialize_performance_data(char *); 00038 int xpddefault_cleanup_performance_data(char *); 00039 int xpddefault_grab_config_info(char *); 00040 int xpddefault_grab_config_directives(char *); 00041 00042 int xpddefault_update_service_performance_data(service *); 00043 int xpddefault_update_host_performance_data(host *); 00044 00045 int xpddefault_run_service_performance_data_command(icinga_macros *mac, service *); 00046 int xpddefault_run_host_performance_data_command(icinga_macros *mac, host *); 00047 00048 int xpddefault_update_service_performance_data_file(icinga_macros *mac, service *); 00049 int xpddefault_update_host_performance_data_file(icinga_macros *mac, host *); 00050 00051 int xpddefault_preprocess_file_templates(char *); 00052 00053 int xpddefault_open_host_perfdata_file(void); 00054 int xpddefault_open_service_perfdata_file(void); 00055 int xpddefault_close_host_perfdata_file(void); 00056 int xpddefault_close_service_perfdata_file(void); 00057 00058 int xpddefault_process_host_perfdata_file(void); 00059 int xpddefault_process_service_perfdata_file(void); 00060 00061 #endif