/*****************************************************************************
*
* NEBSTRUCTS.H - Event broker includes for Nagios
*
* Copyright (c) 2003-2005 Ethan Galstad (nagios@nagios.org)
* Last Modified: 12-17-2005
*
* License:
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*****************************************************************************/
#ifndef _NEBSTRUCTS_H
#define _NEBSTRUCTS_H
#include "config.h"
#include "objects.h"
#include "nagios.h"
#ifdef __cplusplus
extern "C" {
#endif
/****** STRUCTURES *************************/
/* process data structure */
typedef struct nebstruct_process_struct{
int type;
int flags;
int attr;
struct timeval timestamp;
}nebstruct_process_data;
/* timed event data structure */
typedef struct nebstruct_timed_event_struct{
int type;
int flags;
int attr;
struct timeval timestamp;
int event_type;
int recurring;
time_t run_time;
void *event_data;
}nebstruct_timed_event_data;
/* log data structure */
typedef struct nebstruct_log_struct{
int type;
int flags;
int attr;
struct timeval timestamp;
time_t entry_time;
int data_type;
char *data;
}nebstruct_log_data;
/* system command structure */
typedef struct nebstruct_system_command_struct{
int type;
int flags;
int attr;
struct timeval timestamp;
struct timeval start_time;
struct timeval end_time;
int timeout;
char *command_line;
int early_timeout;
double execution_time;
int return_code;
char *output;
}nebstruct_system_command_data;
/* event handler structure */
typedef struct nebstruct_event_handler_struct{
int type;
int flags;
int attr;
struct timeval timestamp;
int eventhandler_type;
char *host_name;
=1= |