snmpstats.h File Reference

SNMP statistic module

More...

#include "../../statistics.h"
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../error.h"
#include "../../ut.h"
#include "../../script_cb.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "snmpstats_globals.h"
#include "sub_agent.h"

Include dependency graph for snmpstats.h:

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

Go to the source code of this file.

Defines

#define SNMPSTATS_MODULE_NAME   "snmpstats"
#define SYSUPTIME_OID   ".1.3.6.1.2.1.1.3.0"

Functions

static int mod_child_init (int rank)
static void mod_destroy (void)
static int mod_init (void)

Variables

struct module_exports exports
static param_export_t mod_params []
static proc_export_t mod_procs []


Detailed Description

SNMP statistic module

Definition in file snmpstats.h.


Define Documentation

#define SNMPSTATS_MODULE_NAME   "snmpstats"

Definition at line 79 of file snmpstats.h.

Referenced by register_message_code_statistics().

#define SYSUPTIME_OID   ".1.3.6.1.2.1.1.3.0"

Definition at line 80 of file snmpstats.h.

Referenced by spawn_sysUpTime_child().


Function Documentation

static int mod_child_init ( int  rank  )  [static]

This function is called when Kamailio has finished creating all instances of itself. It is at this point that we want to create our AgentX sub-agent process, and register a handler for any state changes of our child.

static void mod_destroy ( void   )  [static]

This function is called when Kamailio is shutting down. When this happens, we log a useful message and kill the AgentX Sub-Agent child process

static int mod_init ( void   )  [static]

This is the first function to be called by Kamailio, to initialize the module. This call must always return a value as soon as possible. If it were not to return, then Kamailio would not be able to initialize any of the other modules.


Variable Documentation

Definition at line 129 of file snmpstats.h.

This structure defines the SNMPStats parameters that can be configured through the kamailio.cfg configuration file.

Definition at line 109 of file snmpstats.h.

Initial value:

 {
   {"SNMP AgentX",  0,  0, agentx_child, 1 },
   {0,0,0,0,0}
}

Definition at line 99 of file snmpstats.h.


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