|
NAMErrdbot.conf —
configuration files for
rrdbotd(8)
DESCRIPTIONrrdbotd(8) is an SNMP polling daemon. It writes out the polled values to an rrdtool(1) database. The configuration files describe what to poll and where the resulting RRD files are.The configuration files may be used by more than one program, for example rrdbotd(8), or rrdbot-create(8). Some settings are shared between programs, while many are program specific. Settings not recognized are ignored. An RRD file might only have one 'field' of values, or there may be multiple values which are stored together. Each of the fields have a name. Certain settings in the configuration file are used per field. Where you see <field> in the documentaion below, substitute the appropriate RRD field name. SYNTAXThe general syntax of an RRD file is as follows:# Comment [header] setting: a value here field.setting: part of value continuation of value The configuration file is broken into blocks separated by headers. The header sections each have different sets of options and are described below. The setting name (including a field name if necessary) is followed by a colon and then the value. Values may be continued onto successive lines, as long as those lines are indented with spaces or tabs. Comments start with a # character at the leftmost margin. GENERAL SETTINGSThese settings go under the [general] header in a configuration file.
POLL SETTINGSSettings to control when and how the SNMP source is polled by rrdbotd(8). These settings go under the [poll] heading.
CREATE SETTINGSThese settings are used by the rrdbot-create(8) tool to automatically create RRD files for you. Put these settings under the [create] header.
FILE LOCATIONSTo determine the default location for the configuration files and RRD files run this command:# rrdbotd -V The configuration files for SNMP pollers are laid out in a directory tree, with one file per RRD. Subdirectories can be used to organize the configuration files. The contents of the configuration files are described in rrdbot.conf(5). By default the RRD files mirror the directory structure and names of the configuration files, with an .rrd extension appended to the filename. For example if your configuration files are in a structure like the following: /usr/local/etc/rrdbot/ gateways/ gateway-load.conf gateway-traffic.conf temperature/ inside-temperature.conf outside-temperature.conf machine-load.conf Then the default RRD files would be in a similar directory structure: /var/db/rrdbot/ gateways/ gateway-load.conf.rrd gateway-traffic.conf.rrd temperature/ inside-temperature.conf.rrd outside-temperature.conf.rrd machine-load.conf.rrd The default location for an RRD file can be overridden by using the rrd option in the configuration file. Once you have configuration files in place, you can use the rrdbot-create(8) tool to create the needed RRD files in the appropriate places. MULTIPLE AGENTSrrdbotd(8) supports failover between multiple agents. If an SNMP query fails on one agent or a value is not found when querying an agent, then it will switch to another configured agent.When combined with a query (see TABLE QUERIES) you can use this feature to search for a given value in a table on one of multiple agents. To use failover, simply use multiple host names with commas (without a space) separating them. For example: snmp://public@two.example.com,one.example.com/sysUptime.0 TABLE QUERIESrrdbotd(8) can query a value that corresponds to a certain row in an SNMP table. On many SNMP agents the indexes of rows in tables are not fixed, and this allows you to retrieve a certain value no matter what row of the table it is on.Add the OID and value you want to search for in the table to the end of the SNMP URL. Only one query value is supported. For example to get the outbound packet count on the 'eth0' interface, you would use: snmp://public@example.com/ifInUcastPkts?ifDescr=eth0 SEE ALSOrrdbotd(8), rrdbot-create(8), rrdbot-get(1), rrdtool(1)AUTHORStef Walter ⟨stef@memberwebs.com⟩
Visit the GSP FreeBSD Man Page Interface. |