Back to index

nagios-nrpe  2.13
Classes | Defines | Typedefs
common.h File Reference
#include "config.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  packet_struct

Defines

#define PROGRAM_VERSION   "2.13"
#define MODIFICATION_DATE   "11-11-2011"
#define OK   0
#define ERROR   -1
#define TRUE   1
#define FALSE   0
#define STATE_UNKNOWN   3 /* service state return codes */
#define STATE_CRITICAL   2
#define STATE_WARNING   1
#define STATE_OK   0
#define DEFAULT_SOCKET_TIMEOUT   10 /* timeout after 10 seconds */
#define DEFAULT_CONNECTION_TIMEOUT   300 /* timeout if daemon is waiting for connection more than this time */
#define MAX_INPUT_BUFFER   2048 /* max size of most buffers we use */
#define MAX_FILENAME_LENGTH   256
#define MAX_HOST_ADDRESS_LENGTH   256 /* max size of a host address */
#define NRPE_HELLO_COMMAND   "_NRPE_CHECK"
#define MAX_COMMAND_ARGUMENTS   16
#define QUERY_PACKET   1 /* id code for a packet containing a query */
#define RESPONSE_PACKET   2 /* id code for a packet containing a response */
#define NRPE_PACKET_VERSION_3   3 /* packet version identifier */
#define NRPE_PACKET_VERSION_2   2
#define NRPE_PACKET_VERSION_1   1 /* older packet version identifiers (no longer supported) */
#define MAX_PACKETBUFFER_LENGTH   1024 /* max amount of data we'll send in one query/response */

Typedefs

typedef struct packet_struct packet

Class Documentation

struct packet_struct

Definition at line 65 of file common.h.

Class Members
char buffer
u_int32_t crc32_value
int16_t packet_type
int16_t packet_version
int16_t result_code

Define Documentation

#define DEFAULT_CONNECTION_TIMEOUT   300 /* timeout if daemon is waiting for connection more than this time */

Definition at line 42 of file common.h.

#define DEFAULT_SOCKET_TIMEOUT   10 /* timeout after 10 seconds */

Definition at line 41 of file common.h.

#define ERROR   -1

Definition at line 30 of file common.h.

#define FALSE   0

Definition at line 33 of file common.h.

#define MAX_COMMAND_ARGUMENTS   16

Definition at line 51 of file common.h.

#define MAX_FILENAME_LENGTH   256

Definition at line 45 of file common.h.

#define MAX_HOST_ADDRESS_LENGTH   256 /* max size of a host address */

Definition at line 47 of file common.h.

#define MAX_INPUT_BUFFER   2048 /* max size of most buffers we use */

Definition at line 44 of file common.h.

#define MAX_PACKETBUFFER_LENGTH   1024 /* max amount of data we'll send in one query/response */

Definition at line 63 of file common.h.

#define MODIFICATION_DATE   "11-11-2011"

Definition at line 27 of file common.h.

#define NRPE_HELLO_COMMAND   "_NRPE_CHECK"

Definition at line 49 of file common.h.

#define NRPE_PACKET_VERSION_1   1 /* older packet version identifiers (no longer supported) */

Definition at line 61 of file common.h.

#define NRPE_PACKET_VERSION_2   2

Definition at line 60 of file common.h.

#define NRPE_PACKET_VERSION_3   3 /* packet version identifier */

Definition at line 59 of file common.h.

#define OK   0

Definition at line 29 of file common.h.

#define PROGRAM_VERSION   "2.13"

Definition at line 26 of file common.h.

#define QUERY_PACKET   1 /* id code for a packet containing a query */

Definition at line 56 of file common.h.

#define RESPONSE_PACKET   2 /* id code for a packet containing a response */

Definition at line 57 of file common.h.

#define STATE_CRITICAL   2

Definition at line 36 of file common.h.

#define STATE_OK   0

Definition at line 38 of file common.h.

#define STATE_UNKNOWN   3 /* service state return codes */

Definition at line 35 of file common.h.

#define STATE_WARNING   1

Definition at line 37 of file common.h.

#define TRUE   1

Definition at line 32 of file common.h.


Typedef Documentation

typedef struct packet_struct packet