SNMP statistic module, master agent connection. More...
#include <sys/types.h>#include <stdlib.h>#include <unistd.h>#include <signal.h>#include "sub_agent.h"#include <net-snmp/net-snmp-config.h>#include <net-snmp/net-snmp-includes.h>#include <net-snmp/agent/net-snmp-agent-includes.h>#include "snmpSIPCommonObjects.h"#include "snmpSIPServerObjects.h"#include "snmpObjects.h"#include "snmpSIPPortTable.h"#include "snmpSIPMethodSupportedTable.h"#include "snmpSIPStatusCodesTable.h"#include "snmpSIPRegUserTable.h"#include "snmpSIPContactTable.h"#include "snmpSIPRegUserLookupTable.h"#include "snmpMIBNotifications.h"#include "../../dprint.h"#include "../../cfg/cfg_struct.h"
Go to the source code of this file.
This file defines all functions required to establish a relationship with a master agent.
Definition in file sub_agent.c.
| void agentx_child | ( | int | rank | ) |
Run the AgentX sub-agent as a separate process.
The child will insulate itself from the rest of OpenSER by overriding most of signal handlers.
Definition at line 130 of file sub_agent.c.
References initialize_agentx().
Referenced by mod_child_init().


| static int initialize_agentx | ( | void | ) | [static] |
1) Registers itself with the Master Agent 2) Initializes all of the SNMPStats modules scalars and tables, while simultaneously registering their respective SNMP OID's and handlers with the master agent. 3) Repeatedly checks for new SNMP messages to process
Definition at line 90 of file sub_agent.c.
References register_with_master_agent().
Referenced by agentx_child().


| static void sigterm_handler | ( | int | signal | ) | [static] |
Definition at line 73 of file sub_agent.c.
1.7.1