The process for adding SNMP device support to the VOCAL system includes working with both the SNMPd and agent sides.
Follow these steps on the
Create new agent code as described in the upcoming section “Creating New Agent Code.”
Move new agents to
vocal-1.3.0/snmp/vovidaSNMP/agent/mibgroup, under the proper subdirectory.
Here are some places to find more information:
Tables can use code similar to that found in
Traps are similar to
Nontable items are similar to
Here are some tips about working with the agent side:
The threads on the agent side are part of the monitored processes for the different VOCAL servers.
vocal-1.3.0/util/AgentApi is the class from which the agents are derived.
vocal-1.3.0/heartbeat/hbs/HBAgent.cxx is the current agent for the HBS and can be used as a basis for other agents.
vocal-1.3.0/util/AgentApiMibVars.hxx is a large enumerator that includes all VOCAL-specific MIB variables. New variables should be included here as well.
The point of having an MIB group directory is to help the developer organize her MIBs in the Concurrent Versioning System (CVS) tree. The directory—
vocal-1.3.0/snmp/vovidaSnmp/agent/mibgroup/—holds the implementation of individual MIB groups. Currently, this contains the eight MIB II groups, plus a basic template for new MIB groups (
examples/example.h). See the Net-SNMP manual pages for information about how ...