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"


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 [] |
Definition in file snmpstats.h.
| #define SNMPSTATS_MODULE_NAME "snmpstats" |
| #define SYSUPTIME_OID ".1.3.6.1.2.1.1.3.0" |
| 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.
| struct module_exports exports |
Definition at line 129 of file snmpstats.h.
param_export_t mod_params[] [static] |
This structure defines the SNMPStats parameters that can be configured through the kamailio.cfg configuration file.
Definition at line 109 of file snmpstats.h.
proc_export_t mod_procs[] [static] |
Initial value:
{
{"SNMP AgentX", 0, 0, agentx_child, 1 },
{0,0,0,0,0}
}
Definition at line 99 of file snmpstats.h.
1.5.6