summaryrefslogtreecommitdiff
path: root/doc/rrdbotd.8
blob: 821762644085e94ec6244549977d6d6bf49b3208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
.\" 
.\" Copyright (c) 2006, Stefan Walter
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without 
.\" modification, are permitted provided that the following conditions 
.\" are met:
.\" 
.\"     * Redistributions of source code must retain the above 
.\"       copyright notice, this list of conditions and the 
.\"       following disclaimer.
.\"     * Redistributions in binary form must reproduce the 
.\"       above copyright notice, this list of conditions and 
.\"       the following disclaimer in the documentation and/or 
.\"       other materials provided with the distribution.
.\"     * The names of contributors to this software may not be 
.\"       used to endorse or promote products derived from this 
.\"       software without specific prior written permission.
.\" 
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
.\" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
.\" OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
.\" THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
.\" DAMAGE.
.\" 
.\"
.\" CONTRIBUTORS
.\"  Stefan Walter <stef@memberwebs.com>
.\"
.Dd August, 2006
.Dt rrdbotd 8
.Os rrdbot 
.Sh NAME
.Nm rddbotd
.Nd an SNMP poller which writes to an round robin database
.Sh SYNOPSIS
.Nm
.Op Fl M
.Op Fl c Ar confdir
.Op Fl w Ar workdir
.Op Fl m Ar mibdir
.Op Fl d Ar debuglevel
.Op Fl p Ar pidfile
.Op Fl r Ar retries
.Op Fl t Ar timeout
.Nm 
.Fl V
.Sh DESCRIPTION
.Nm
is an SNMP polling daemon which writes the polled values to an 
.Xr rrdtool 1
RRD database. An can poll many different SNMP sources in an efficient manner.  
.Pp
Table queries are supported, where the OID index of a certain value is not 
known beforehand, or may change regularly. 
.Pp
In addition multiple SNMP agents may be specified for a certain value. If 
one SNMP agent cannot be contacted or errors for some reason, another one 
will be tried.
.Pp
The configuration (eg: SNMP sources, polling intervals) are located in files 
in a directory, with one configuration file per RRD. The format of the 
configuration files are described in:
.Xr rrdbot.conf 5
.Sh OPTIONS
The options are as follows. 
.Bl -tag -width Fl
.It Fl c Ar confdir
The directory in which configuration files are stored. See below for info
on the various file locations.
.It Fl d Ar debuglevel
Don't detach from the console and run as a daemon. In addition the 
.Ar debuglevel
argument specifies what level of error messages to display. 0 being 
the least, 4 the most.
.It Fl m Ar mibdir
The directory in which to look for MIB files. The default directory is 
usually sufficient.
.It Fl M
Display MIB parsing warnings.
.It Fl p Ar pidfile
Specifies a location for the a process id file to be written to. This file 
contains the process id of 
.Nm 
and can be used to stop the daemon.
.It Fl r Ar retries
The number of times to retry sending an SNMP packet. Defaults to 3 retries.
.It Fl t Ar timeout
The amount of time (in seconds) to wait for an SNMP response. Defaults to 
5 seconds.
.It Fl V
Prints the version of
.Nm
and the locations of the configuration files, RRD files etc.
.It Fl w Ar workdir
The default directory where to look for RRD files. See below for info on 
the various file locations.
.El
.Sh FILE LOCATIONS
To determine the default location for the configuration files and RRD files 
run this command:
.Bd -literal -offset indent
# rrdbotd -V 
.Ed
.Pp
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 
.Xr rrdbot.conf 5 .
.Pp
By default the RRD files mirror the directory structure and names of the 
configuration files, with an 
.Pa .rrd
extension appended to the filename.
.Pp
For example if your configuration files are in a structure like the following:
.Bd -literal -offset indent
/usr/local/etc/rrdbot/
  gateways/
    gateway-load.conf
    gateway-traffic.conf
  temperature/
    inside-temperature.conf
    outside-temperature.conf
  machine-load.conf  
.Ed
.Pp
Then the default RRD files would be in a similar directory structure:
.Bd -literal -offset indent
/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
.Ed
.Pp
The default location for an RRD file can be overridden by using the 
.Ar rrd
option in the configuration file.
.Pp
You can use the 
.Xr rrdbot-create 8
tool to create the needed RRD files in the appropriate places. 
.Sh SEE ALSO
.Xr rrdbot.conf 5 ,
.Xr rrdbot-create 8 ,
.Xr rrdbot-get 1 ,
.Xr rrdtool 1
.Sh AUTHOR
.An Stef Walter Aq stef@memberwebs.com