snmpstats_globals.h File Reference

SNMP statistic module, globals

More...

#include "../../sr_module.h"

Include dependency graph for snmpstats_globals.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HASH_SIZE   32
#define MAX_PROC_BUFFER   256
#define MAX_USER_LOOKUP_COUNTER   255
#define SNMPGET_MAX_BUFFER   80
#define SNMPGET_TEMP_FILE   "/tmp/openSER_SNMPAgent.txt"
#define TC_ALARM_STATE_CLEAR   0
#define TC_ALARM_STATE_CRITICAL   1
#define TC_ALARM_STATE_MAJOR   2
#define TC_ALARM_STATE_MINOR   3
#define TC_ALARM_STATE_UNKNOWN   4
#define TC_ALARM_STATUS_ALARM_OUTSTANDING   (128 >> 4)
#define TC_ALARM_STATUS_CRITICAL   (128 >> 1)
#define TC_ALARM_STATUS_MAJOR   (128 >> 2)
#define TC_ALARM_STATUS_MINOR   (128 >> 3)
#define TC_ALARM_STATUS_UNDER_REPAIR   (128 >> 0)
#define TC_ALARM_STATUS_UNKNOWN   (128 >> 5)
#define TC_FALSE   2
#define TC_ROWSTATUS_ACTIVE   1
#define TC_ROWSTATUS_CREATEANDGO   4
#define TC_ROWSTATUS_CREATEANDWAIT   5
#define TC_ROWSTATUS_DESTROY   6
#define TC_ROWSTATUS_NOTINSERVICE   2
#define TC_ROWSTATUS_NOTREADY   3
#define TC_SIP_ENTITY_ROLE_OTHER   (128 >> 0)
#define TC_SIP_ENTITY_ROLE_PROXY_SERVER   (128 >> 2)
#define TC_SIP_ENTITY_ROLE_REDIRECT_SERVER   (128 >> 3)
#define TC_SIP_ENTITY_ROLE_REGISTRAR_SERVER   (128 >> 4)
#define TC_SIP_ENTITY_ROLE_USER_AGENT   (128 >> 1)
#define TC_SIP_OPTION_TAG_PROXY_REQUIRE   (128 >> 1)
#define TC_SIP_OPTION_TAG_REQUIRE   (128 >> 0)
#define TC_SIP_OPTION_TAG_SUPPORTED   (128 >> 2)
#define TC_SIP_OPTION_TAG_UNSUPPORTED   (128 >> 3)
#define TC_SIP_TRANSPORT_PROTOCOL_OTHER   (128>>0)
#define TC_SIP_TRANSPORT_PROTOCOL_SCTP   (128>>3)
#define TC_SIP_TRANSPORT_PROTOCOL_TCP   (128>>2)
#define TC_SIP_TRANSPORT_PROTOCOL_TLS   (128>>4)
#define TC_SIP_TRANSPORT_PROTOCOL_UDP   (128>>1)
#define TC_TRANSPORT_PROTOCOL_OTHER   (128 >> 0)
#define TC_TRANSPORT_PROTOCOL_SCTP   (128 >> 3)
#define TC_TRANSPORT_PROTOCOL_TCP   (128 >> 2)
#define TC_TRANSPORT_PROTOCOL_TLS   (128 >> 4)
#define TC_TRANSPORT_PROTOCOL_UDP   (128 >> 1)
#define TC_TRUE   1
#define TC_USAGE_STATE_ACTIVE   1
#define TC_USAGE_STATE_BUSY   2
#define TC_USAGE_STATE_IDLE   0
#define TC_USAGE_STATE_UNKNOWN   3

Functions

int handleSipEntityType (modparam_t type, void *val)
int set_dlg_major_threshold (modparam_t type, void *val)
int set_dlg_minor_threshold (modparam_t type, void *val)
int set_queue_major_threshold (modparam_t type, void *val)
int set_queue_minor_threshold (modparam_t type, void *val)
int set_snmp_community (modparam_t type, void *val)
int set_snmpget_path (modparam_t type, void *val)

Variables

unsigned int global_UserLookupCounter


Detailed Description

SNMP statistic module, globals

Definition in file snmpstats_globals.h.


Define Documentation

#define HASH_SIZE   32

Definition at line 129 of file snmpstats_globals.h.

#define MAX_PROC_BUFFER   256

Definition at line 125 of file snmpstats_globals.h.

#define MAX_USER_LOOKUP_COUNTER   255

Definition at line 127 of file snmpstats_globals.h.

Referenced by handle_openserSIPRegUserLookupCounter().

#define SNMPGET_MAX_BUFFER   80

Definition at line 124 of file snmpstats_globals.h.

Referenced by handle_openserSIPServiceStartTime().

#define SNMPGET_TEMP_FILE   "/tmp/openSER_SNMPAgent.txt"

#define TC_ALARM_STATE_CLEAR   0

#define TC_ALARM_STATE_CRITICAL   1

Definition at line 99 of file snmpstats_globals.h.

#define TC_ALARM_STATE_MAJOR   2

#define TC_ALARM_STATE_MINOR   3

#define TC_ALARM_STATE_UNKNOWN   4

Definition at line 102 of file snmpstats_globals.h.

#define TC_ALARM_STATUS_ALARM_OUTSTANDING   (128 >> 4)

Definition at line 81 of file snmpstats_globals.h.

#define TC_ALARM_STATUS_CRITICAL   (128 >> 1)

Definition at line 78 of file snmpstats_globals.h.

#define TC_ALARM_STATUS_MAJOR   (128 >> 2)

#define TC_ALARM_STATUS_MINOR   (128 >> 3)

#define TC_ALARM_STATUS_UNDER_REPAIR   (128 >> 0)

Definition at line 77 of file snmpstats_globals.h.

#define TC_ALARM_STATUS_UNKNOWN   (128 >> 5)

Definition at line 82 of file snmpstats_globals.h.

#define TC_FALSE   2

Definition at line 121 of file snmpstats_globals.h.

Referenced by handle_openserSIPProxyRecordRoute().

#define TC_ROWSTATUS_ACTIVE   1

#define TC_ROWSTATUS_CREATEANDGO   4

#define TC_ROWSTATUS_CREATEANDWAIT   5

Definition at line 113 of file snmpstats_globals.h.

#define TC_ROWSTATUS_DESTROY   6

#define TC_ROWSTATUS_NOTINSERVICE   2

Definition at line 110 of file snmpstats_globals.h.

Referenced by openserSIPRegUserLookupTable_set_action().

#define TC_ROWSTATUS_NOTREADY   3

#define TC_SIP_ENTITY_ROLE_OTHER   (128 >> 0)

Definition at line 66 of file snmpstats_globals.h.

Referenced by handleSipEntityType().

#define TC_SIP_ENTITY_ROLE_PROXY_SERVER   (128 >> 2)

Definition at line 68 of file snmpstats_globals.h.

Referenced by handleSipEntityType().

#define TC_SIP_ENTITY_ROLE_REDIRECT_SERVER   (128 >> 3)

Definition at line 69 of file snmpstats_globals.h.

Referenced by handleSipEntityType().

#define TC_SIP_ENTITY_ROLE_REGISTRAR_SERVER   (128 >> 4)

Definition at line 70 of file snmpstats_globals.h.

Referenced by handleSipEntityType().

#define TC_SIP_ENTITY_ROLE_USER_AGENT   (128 >> 1)

Definition at line 67 of file snmpstats_globals.h.

Referenced by handleSipEntityType().

#define TC_SIP_OPTION_TAG_PROXY_REQUIRE   (128 >> 1)

Definition at line 73 of file snmpstats_globals.h.

#define TC_SIP_OPTION_TAG_REQUIRE   (128 >> 0)

Definition at line 72 of file snmpstats_globals.h.

#define TC_SIP_OPTION_TAG_SUPPORTED   (128 >> 2)

Definition at line 74 of file snmpstats_globals.h.

#define TC_SIP_OPTION_TAG_UNSUPPORTED   (128 >> 3)

Definition at line 75 of file snmpstats_globals.h.

#define TC_SIP_TRANSPORT_PROTOCOL_OTHER   (128>>0)

Definition at line 60 of file snmpstats_globals.h.

#define TC_SIP_TRANSPORT_PROTOCOL_SCTP   (128>>3)

Definition at line 63 of file snmpstats_globals.h.

#define TC_SIP_TRANSPORT_PROTOCOL_TCP   (128>>2)

Definition at line 62 of file snmpstats_globals.h.

#define TC_SIP_TRANSPORT_PROTOCOL_TLS   (128>>4)

Definition at line 64 of file snmpstats_globals.h.

#define TC_SIP_TRANSPORT_PROTOCOL_UDP   (128>>1)

Definition at line 61 of file snmpstats_globals.h.

#define TC_TRANSPORT_PROTOCOL_OTHER   (128 >> 0)

Definition at line 84 of file snmpstats_globals.h.

Referenced by createRowsFromIPList().

#define TC_TRANSPORT_PROTOCOL_SCTP   (128 >> 3)

Definition at line 87 of file snmpstats_globals.h.

#define TC_TRANSPORT_PROTOCOL_TCP   (128 >> 2)

Definition at line 86 of file snmpstats_globals.h.

Referenced by createRowsFromIPList().

#define TC_TRANSPORT_PROTOCOL_TLS   (128 >> 4)

Definition at line 88 of file snmpstats_globals.h.

Referenced by createRowsFromIPList().

#define TC_TRANSPORT_PROTOCOL_UDP   (128 >> 1)

Definition at line 85 of file snmpstats_globals.h.

Referenced by createRowsFromIPList().

#define TC_TRUE   1

Definition at line 120 of file snmpstats_globals.h.

Referenced by handle_openserSIPProxyRecordRoute().

#define TC_USAGE_STATE_ACTIVE   1

Definition at line 105 of file snmpstats_globals.h.

Referenced by handle_openserDialogUsageState().

#define TC_USAGE_STATE_BUSY   2

Definition at line 106 of file snmpstats_globals.h.

Referenced by handle_openserDialogUsageState().

#define TC_USAGE_STATE_IDLE   0

Definition at line 104 of file snmpstats_globals.h.

Referenced by handle_openserDialogUsageState().

#define TC_USAGE_STATE_UNKNOWN   3

Definition at line 107 of file snmpstats_globals.h.

Referenced by handle_openserDialogUsageState().


Function Documentation

int handleSipEntityType ( modparam_t  type,
void *  val 
)

int set_dlg_major_threshold ( modparam_t  type,
void *  val 
)

Handles setting of the dialog major threshold

Definition at line 659 of file openserObjects.c.

References dialog_major_threshold, and set_if_valid_threshold().

int set_dlg_minor_threshold ( modparam_t  type,
void *  val 
)

Handles setting of the dialog minor threshold

Definition at line 652 of file openserObjects.c.

References dialog_minor_threshold, and set_if_valid_threshold().

int set_queue_major_threshold ( modparam_t  type,
void *  val 
)

Handles setting of the Msg Queue Depth Major Threshold

Definition at line 645 of file openserObjects.c.

References msgQueueMajorThreshold, and set_if_valid_threshold().

int set_queue_minor_threshold ( modparam_t  type,
void *  val 
)

Handles setting of the Msg Queue Depth Minor Threshold

Definition at line 638 of file openserObjects.c.

References msgQueueMinorThreshold, and set_if_valid_threshold().

int set_snmp_community ( modparam_t  type,
void *  val 
)

Handles setting of the snmp community string.

Definition at line 483 of file snmpstats.c.

References snmp_community, and stringHandlerSanityCheck().

int set_snmpget_path ( modparam_t  type,
void *  val 
)

Handles setting of the path to the snmpget binary.

This function is called whenever the kamailio.cfg file specifies the snmpgetPath parameter. The function will set the snmpget_path parameter.

Definition at line 471 of file snmpstats.c.

References snmpget_path, and stringHandlerSanityCheck().


Variable Documentation


Generated on Thu May 24 12:00:42 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6