Several XML files are required to create a SNMP Collector in order to make it run properly. These files may be classified in 3 categories:
1. Collector configuration file:
collecting.xml: specifies the file path for snmpcollector.xml
snmpcollector.xml: specifies the file paths
2. SNMP collecting configuration files:
slave-snmp-poller.xml: associates SNMP Agents to SnmpMasks in PollingGroups.
snmp-polling-distribution.xml: contains the SNMP Agents to be polled by the SNMP Collector.
snmp-masks.xml: defines the SNMP collecting.
translations.xml: defines numerical translations for polled text values.
3. MIB files:
Minimally, the RFC-1213 MIB file will be used by the SNMP Collector.
Other MIB files used for SNMP polling.
the collecting component architecture describe the collector’s behaviour. Figure below describes the relations between those files.
<?xml version="1.0" encoding="UTF-8"?> <config> <secondary-snmp-poller-file>conf/slave-snmp-poller.xml </secondary-snmp-poller-file> <snmp-masks-file>conf/snmp-masks.xml</snmp-masks-file> <snmp-polling-distribution-file>conf/snmp-polling- distribution.xml</snmp-polling- distribution-file> <translations-file>conf/translations.xml</translations-file> <mib-files-directory>mibs</mib-files-directory> </config>
<?xml version="1.0" encoding="UTF-8"?> <secondary-snmp-poller name="secondary1" pollerPrefix="thisPollerOnThatNetwork" groupName=" group3600" oidsThreads="50" tablesThreads="50"> <local-communication-settings hostIpAddress="localhost" communicationPort="2008" communicationInterfaceIPAddress="10.128.1.28" maxConcurrentSessions="48"> <out-interface-ip-addresses> <out-interface-ip-address>10.128.9.29</out-interface-ip-address> </out-interface-ip-addresses> <accept-commands-from-list> <accept-commands-from>10.128.1.25</accept-commands-from> <accept-commands-from-list> </local-communication-settings> <polling-group ...> ... </polling-group ...>
Note: It is strongly recommended to use an XML editor which supports DTD validation in order to edit any of the configuration files described in this document.