snmpacc: SNMP accounting data collection package

<< Previous Contents Next >>

4. Collector Overview

The collector is configured via the file snmpacc.cf. The configuration describes to snmpacc a number of devices to collect data from.

Devices may be configured statically, or dynamically by running a script to examine the device and return the object definitions that should be collected. Dynamically described devices may include other ``sub-devices'', e.g. virtual routers, which can only be discovered by examining the primary device. It is up to the configuration script to detect these.

4.1. Example Configuration

The following is an example configuration file:

4.2. Running the snmpacc collector

The snmpacc collector should be run as a daemon, launched from the system startup scripts, e.g.

The full set of options is listed under Command Line Options.

The check-snmpacc.sh script is also provided to check that snmpacc is running. See the Appendix on how to run this from cron.

4.3. Collector control program

The snmpacc collector's operation can be controlled via the snmpctl program. snmpctl communicates with an snmpacc process via signals, and must know the location of pid.dat in the snmpacc directory. It must also be able to write to the file command.dat in the same directory.

snmpctl can request snmpacc to flush log files, re-read its master configuration file or exit. In addition, the program can kill the snmpacc daemon. See the reference section for snmpctl options.

4.4. Auditing

Auditing of SNMP polls can be enabled for a given counter using the snmpaudit program. Audit files record all SNMP polls made to a device, along with the output of each dump header and data record associated with the audited counter.

Audit records are stored in a file contained within the directory defined by the auditdir option. The file name is based on the counter name, with any ``/'' characters changed to ``.''.
<< Previous Contents Next >>