summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/cfgmaker.11414
l---------doc/cfgmaker.pod1
-rw-r--r--doc/cfgmaker.txt1206
-rw-r--r--doc/indexmaker.1307
l---------doc/indexmaker.pod1
-rw-r--r--doc/indexmaker.txt173
-rw-r--r--doc/mrtg-contrib.1199
-rw-r--r--doc/mrtg-contrib.pod60
-rw-r--r--doc/mrtg-contrib.txt61
-rw-r--r--doc/mrtg-faq.1232
-rw-r--r--doc/mrtg-faq.pod101
-rw-r--r--doc/mrtg-faq.txt95
-rw-r--r--doc/mrtg-forum.1267
-rw-r--r--doc/mrtg-forum.pod138
-rw-r--r--doc/mrtg-forum.txt115
-rw-r--r--doc/mrtg-ipv6.1236
-rw-r--r--doc/mrtg-ipv6.pod98
-rw-r--r--doc/mrtg-ipv6.txt97
-rw-r--r--doc/mrtg-l.gifbin0 -> 343 bytes
-rw-r--r--doc/mrtg-l.pngbin0 -> 538 bytes
-rw-r--r--doc/mrtg-logfile.1225
-rw-r--r--doc/mrtg-logfile.pod110
-rw-r--r--doc/mrtg-logfile.txt90
-rw-r--r--doc/mrtg-m.gifbin0 -> 1144 bytes
-rw-r--r--doc/mrtg-m.pngbin0 -> 414 bytes
-rw-r--r--doc/mrtg-mibhelp.1344
-rw-r--r--doc/mrtg-mibhelp.pod193
-rw-r--r--doc/mrtg-mibhelp.txt168
-rw-r--r--doc/mrtg-nt-guide.1526
-rw-r--r--doc/mrtg-nt-guide.pod411
-rw-r--r--doc/mrtg-nt-guide.txt366
-rw-r--r--doc/mrtg-nw-guide.1537
-rw-r--r--doc/mrtg-nw-guide.pod471
-rw-r--r--doc/mrtg-nw-guide.txt408
-rw-r--r--doc/mrtg-r.gifbin0 -> 1779 bytes
-rw-r--r--doc/mrtg-r.pngbin0 -> 1759 bytes
-rw-r--r--doc/mrtg-reference.12437
-rw-r--r--doc/mrtg-reference.pod2301
-rw-r--r--doc/mrtg-reference.txt2051
-rw-r--r--doc/mrtg-rrd.1250
-rw-r--r--doc/mrtg-rrd.pod120
-rw-r--r--doc/mrtg-rrd.txt111
-rw-r--r--doc/mrtg-squid.1250
-rw-r--r--doc/mrtg-squid.pod108
-rw-r--r--doc/mrtg-squid.txt106
-rw-r--r--doc/mrtg-ti.pngbin0 -> 4293 bytes
-rw-r--r--doc/mrtg-unix-guide.1452
-rw-r--r--doc/mrtg-unix-guide.pod287
-rw-r--r--doc/mrtg-unix-guide.txt272
-rw-r--r--doc/mrtg-webserver.1206
-rw-r--r--doc/mrtg-webserver.pod68
-rw-r--r--doc/mrtg-webserver.txt70
-rw-r--r--doc/mrtg.1322
-rw-r--r--doc/mrtg.pod217
-rw-r--r--doc/mrtg.txt188
-rw-r--r--doc/mrtglib.1386
l---------doc/mrtglib.pod1
-rw-r--r--doc/mrtglib.txt222
58 files changed, 19075 insertions, 0 deletions
diff --git a/doc/cfgmaker.1 b/doc/cfgmaker.1
new file mode 100644
index 0000000..ef7d73d
--- /dev/null
+++ b/doc/cfgmaker.1
@@ -0,0 +1,1414 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "CFGMAKER 1"
+.TH CFGMAKER 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+cfgmaker \- Creates mrtg.cfg files (for mrtg\-2.17.7)
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+cfgmaker [options] [community@]router [[options] [community@]router ...]
+.SH "OPTIONS"
+.IX Header "OPTIONS"
+.Vb 9
+\& \-\-ifref=nr interface references by Interface Number (default)
+\& \-\-ifref=ip ... by Ip Address
+\& \-\-ifref=eth ... by Ethernet Number
+\& \-\-ifref=descr ... by Interface Description
+\& \-\-ifref=name ... by Interface Name
+\& \-\-ifref=type ... by Interface Type
+\& You may also use multiple options separated by commas,
+\& in which case the first available one is used:
+\& e.g. \-\-ifref=ip,name,nr
+\&
+\& \-\-ifdesc=nr interface description uses Interface Number (default)
+\& \-\-ifdesc=ip ... uses Ip Address
+\& \-\-ifdesc=eth ... uses Ethernet Number
+\& \-\-ifdesc=descr ... uses Interface Description
+\& \-\-ifdesc=name ... uses Interface Name
+\& \-\-ifdesc=catname ... uses CatOS Interface Name
+\& \-\-ifdesc=ppname ... uses Passport Port Name
+\& \-\-ifdesc=alias ... uses Interface Alias
+\& \-\-ifdesc=type ... uses Interface Type
+\& You may also use multiple options separated by commas,
+\& in which case the first available one is used:
+\& e.g. \-\-ifdesc=catname,ppname,descr,alias,ip,name,nr
+\&
+\& \-\-if\-filter=f Test every interface against filter f to decide wether
+\& or not to include that interface into the collection.
+\& Currently f is being evaluated as a Perl expression
+\& and it\*(Aqs truth value is used to reject or accept the
+\& interface.
+\& (Experimental, under development, might change)
+\&
+\& \-\-if\-template=templatefile
+\& Replace the normal target entries for the interfaces
+\& with an entry as specified by the contents in the file
+\& templatefile. The file is supposed to contain Perl
+\& code to be executed to generate the lines for the
+\& target in the configuration file.
+\& (Experimental, under development, might change)
+\&
+\& \-\-host\-template=templatefile
+\& In addition to creating targets for a host\*(Aqs interfaces
+\& do also create targets for the host itself as specified
+\& by the contents in the file templatefile. The file is
+\& supposed to contain Perl code to be executed to generate
+\& the lines for the host related targets (such as CPU,
+\& ping response time measurements etc.) in the config\-
+\& uration file.
+\& (Experimental, under development, might change)
+\&
+\& \-\-global "x: a" add global config entries
+\&
+\& \-\-no\-down do not look at admin or opr status of interfaces
+\&
+\& \-\-show\-op\-down show interfaces which are operatively down
+\&
+\& \-\-zero\-speed=spd use this speed in bits\-per\-second as the interface
+\& speed for all interfaces that return a speed of 0
+\& via ifSpeed/ifHighSpeed. 100Mbps = 100000000
+\&
+\& \-\-subdirs=format give each router its own subdirectory, naming each per
+\& "format", in which HOSTNAME and SNMPNAME will be
+\& replaced by the values of those items \-\- for instance,
+\& \-\-subdirs=HOSTNAME or \-\-subdirs="HOSTNAME (SNMPNAME)"
+\&
+\& \-\-noreversedns do not reverse lookup ip numbers
+\&
+\& \-\-community=cmty Set the default community string to "cmty" instead of
+\& "public".
+\&
+\& \-\-enable\-ipv6 Enable IPv6 support, if the required libraries are
+\& present. Numeric IPv6 addresses must be enclosed
+\& in square brackets, e.g. public@[2001:760:4::1]:161
+\&
+\& \-\-use\-16bit Use 16bit SNMP request IDs to query all routers.
+\&
+\& \-\-snmp\-options=:[<port>][:[<tmout>][:[<retr>][:[<backoff>][:<ver>]]]]
+\&
+\& Specify default SNMP options to be appended to all
+\& routers following. Individual fields can be empty.
+\& Routers following might override some or all of the
+\& options given to \-\-snmp\-options.
+\&
+\& \-\-dns\-domain=domain
+\& Specifies a domain to append to the name of all
+\& routers following.
+\&
+\& \-\-nointerfaces Don\*(Aqt do generate any configuration lines for interfaces,
+\& skip the step of gathering interface information and
+\& don\*(Aqt run any interface template code.
+\&
+\& \-\-interfaces Generate configuration lines for interfaces (this is the
+\& default). The main purpose of this option is to negate
+\& an \-\-nointerfaces appearing earlier on the command line.
+\&
+\& \-\-help brief help message
+\& \-\-man full documentation
+\& \-\-version print the version of cfgmaker
+\&
+\& \-\-output=file output filename default is STDOUT
+.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+\&\fBCfgmaker\fR creates \s-1MRTG\s0 configuration files based on information
+pulled from a router or another \s-1SNMP\s0 manageable device.
+.PP
+[\fIcommunity\fR\fB@\fR]\fIrouter\fR
+.PP
+\&\fICommunity\fR is the community name of the device you want to create a
+configuration for. If not specified, it defaults to '\fBpublic\fR'; you might
+want to try this first if you do not know the community name of a
+device. If you are using the wrong community name you will get no
+response from the device.
+.PP
+\&\fIRouter\fR is the \s-1DNS\s0 name or the \s-1IP\s0 number of an SNMP-managable device.
+Following the name you can specify 6 further options separated by
+colons. The full syntax looks like this:
+.PP
+\&\fBrouter\fR[:[\fBprt\fR][:[\fBtmout\fR][:[\fBretr\fR][:[\fBbackoff\fR][:\fBvers\fR]]]]]
+.PP
+Of special interest may be the last parameter, \fBvers\fR. If you set this to
+\&'2' then your device will be queried with \s-1SNMP\s0 version 2 requests. This
+allows you to poll the 64 bit traffic counters in the device and will thus work
+much better with fast interfaces (no more counter overrun). Note that the
+order in which the routers are specified on the command line do matter as
+the same order is used when the configuration file is generated. The first
+specified router has it's configuration lines genrated first, followed by
+the lines belonging to the next router and so on.
+.PP
+Note that the first line of the generated cfg file will contain all the
+commandline options you used for generating it. This is to allow for the
+easy 'regeneration' in case you want to add newhosts or make some other
+global change.
+.SS "Configuration"
+.IX Subsection "Configuration"
+Except for the \fB\-\-output\fR and \fB\-\-global\fR options, all options affect
+only the routers following them on the command line. If an option
+specified earlier on the command line reappears later on the command
+line with another value, the new value overrides the old value as far as
+remaining routers are concerned. This way options might be tailored for
+groups of routers or for individual routers.
+.PP
+See \fB\-\-output\fR and \fB\-\-global\fR for how their behaviour is affected by
+where or how many times they appear on the command line.
+.PP
+See the \fBExamples\fR below on how to set an option differently for
+multiple routers.
+.IP "\fB\-\-help\fR" 4
+.IX Item "--help"
+Print a brief help message and exit.
+.IP "\fB\-\-man\fR" 4
+.IX Item "--man"
+Prints the manual page and exits.
+.IP "\fB\-\-version\fR" 4
+.IX Item "--version"
+Print the version of cfgmaker. This should match the version of \s-1MRTG\s0
+for which config files are being created.
+.IP "\fB\-\-ifref\fR \fBnr\fR|\fBip\fR|\fBeth\fR|\fBdescr\fR|\fBname\fR" 4
+.IX Item "--ifref nr|ip|eth|descr|name"
+Select the interface identification method. Default is \fBnr\fR which
+identifies the router interfaces by their number. Unfortunately the
+interface numbering scheme in an \s-1SNMP\s0 tree can change. Some routers
+change their numbering when new interfaces are added, others change
+thier numbering every full moon just for fun.
+.Sp
+To work around this sad problem \s-1MRTG\s0 can identify interfaces by 4
+other properties. None of these works for all interfaces, but you
+should be able to find one which does fine for you. Note that
+especially ethernet addrsses can be problematic as some routers have
+the same ethernet address on most of their interface cards.
+.Sp
+Select \fBip\fR to identify the interface by its \s-1IP\s0 number. Use \fBeth\fR to
+use the ethernet address for identification. Use \fBdescr\fR to use
+the Interface description. Or use \fBname\fR to use the Interface name.
+.Sp
+You can specify multiple properties if you wish, separated by commas.
+In this case, cfgmaker will use the first item in the list which
+can provide unique identification. This allows you to specify, for
+example, to use \s-1IP\s0 address and to use ifName if this is not defined:
+ \-\-ifref ip,name
+.Sp
+If your chosen method does not allow unique interface identification on
+the device you are querying, \fBcfgmaker\fR will tell you about it.
+.IP "\fB\-\-ifdesc\fR \fBnr\fR|\fBip\fR|\fBeth\fR|\fBdescr\fR|\fBname\fR|\fBtype\fR|\fBalias\fR" 4
+.IX Item "--ifdesc nr|ip|eth|descr|name|type|alias"
+Select what to use as the description of the interface. The description
+appears in the \f(CW\*(C`Title[]\*(C'\fR property for the target as well as the text header
+in the \s-1HTML\s0 code defined in the target's \f(CW\*(C`PageTop[]\*(C'\fR. Default is to use
+\&\fBnr\fR which is just the interface number which isn't always useful
+to the viewer of the graphs.
+.Sp
+There are 6 other properties which could be used. Use \fBip\fR if you want
+to use the interface's IP-address. Use \fBeth\fR if you want to use the
+interface's ethernet address. If you want a better description, you can
+use either \fBdescr\fR, \fBname\fR or \fBalias\fR. Exactly what each of these do
+varies between different equipment so you might need to experiment. For
+instance, for a serial interface on a Cisco router running \s-1IOS\s0 using \fBname\fR
+might result in \f(CW"S0"\fR being the interface description , \fBdescr\fR might result
+in \f(CW"Serial0"\fR and \fBalias\fR might result in \f(CW"Link to HQ"\fR (provided that is
+what is used as the interface's \f(CW\*(C`description\*(C'\fR in the router's configuration).
+.Sp
+Finally, if you want to describe the interface by it's Btype
+(i.e \f(CW"ethernetCSMA"\fR, \f(CW"propPointtoPoint"\fR etc) you can use \fBtype\fR.
+.Sp
+You can specify multiple properties if you wish, separated by commas.
+In this case, cfgmaker will use the first item in the list which
+is available for this interface. This allows you to specify, for
+example, to use any of the different aliases in order of preference.
+.IP "\fB\-\-if\-filter\fR '\fBfilter-expression\fR'" 4
+.IX Item "--if-filter 'filter-expression'"
+First of all, this is under some development and is experimental.
+.Sp
+Use this if you want to have better control over what interfaces gets
+included into the configuration. The \fBfilter-expression\fR is evaluated
+as a piece of Perl code and is expected
+to return a truth value. If true, include the interface and if false,
+exclude the interface.
+.Sp
+For a further discussion on how these filters work, see the section
+\&\*(L"Details on Filters\*(R" below.
+.IP "\fB\-\-if\-template\fR \fBtemplate-file\fR" 4
+.IX Item "--if-template template-file"
+First of all, this is under some development and is experimental.
+.Sp
+Use this if you want to control what the line for each target should look
+like in the configuration file. The contents of the file \fBtemplate-file\fR
+will be evaluated as a Perl program which generates the lines using certain
+variables for input and output.
+.Sp
+For a further discussion on how these templates work, see the section
+\&\*(L"Details on Temaplates\*(R" below.
+.IP "\fB\-\-host\-template\fR \fBtemplate-file\fR" 4
+.IX Item "--host-template template-file"
+First of all, this is under some development and is experimental.
+.Sp
+Use this if you want to have some extra targets related to the host itself
+such as \s-1CPU\s0 utilization, ping response time to the host, number of busy
+modems etc. The contents of the file \fBtemplate-file\fR will be evaluated
+once per host as a Perl program which generates the lines using certain
+variables for input and output.
+.Sp
+For a further discussion on how these templates work, see the section
+\&\*(L"Details on Templates\*(R" below.
+.IP "\fB\-\-community\fR \fBcommunity-string\fR" 4
+.IX Item "--community community-string"
+Use this to set the community for the routers following on the command
+line to \fBcommunity-string\fR. Individual routers might overrride this
+community string by using the syntax \fBcommunity\fR\fB@\fR\fBrouter\fR.
+.IP "\fB\-\-enable\-ipv6\fR" 4
+.IX Item "--enable-ipv6"
+This option enables IPv6 support. It requires the appropriate perl
+modules; if they are not found then IPv6 is disabled (see the ipv6
+documentation).
+.Sp
+cfgmaker will use IPv6 or IPv4 depending on the target. If the target
+is a numeric address, the protocol depends on the type of address. If the
+target is a hostname, cfgmaker will try to resolve the name first to an
+IPv6 address then to an IPv4 address.
+.Sp
+IPv6 numeric addresses must be specified between square braces.
+.Sp
+For example:
+.Sp
+.Vb 1
+\& cfgmaker \-\-enable\-ipv6 [2001:760:4::1]:165:::2
+.Ve
+.Sp
+If the target has both an IPv6 address and an IPv4 address with the same
+hostname, cfgmaker first queries the target using IPv6 and falls back to
+IPv4 if it fails. This is useful for targets which don't support \s-1SNMP\s0
+over IPv6.
+.IP "\fB\-\-use\-16bit\fR" 4
+.IX Item "--use-16bit"
+This option forces the use of 16bit \s-1SNMP\s0 request IDs. Some broken \s-1SNMP\s0
+agents do not accept 32bit request IDs. Try to avoid this option as much
+as possible, complain to your agent vendor instead.
+.IP "\fB\-\-snmp\-options\fR :[\fBport\fR][:[\fBtimeout\fR][:[\fBretries\fR][:[\fBbackoff\fR][:\fBversion\fR]]]]" 4
+.IX Item "--snmp-options :[port][:[timeout][:[retries][:[backoff][:version]]]]"
+Use this to set the default \s-1SNMP\s0 options for all routers following on the
+command line. Individual values might be omitted as well as trailing
+colons. Note that routers might override individual (or all) values
+specified by \fB\-\-snmp\-options\fR by using the syntax
+.Sp
+\&\fBrouter\fR[:[\fBport\fR][:[\fBtimeout\fR][:[\fBretries\fR][:[\fBbackoff\fR][:\fBversion\fR]]]]]
+.ie n .IP "\fB\-\-global\fR \fB""\fR\fIbla: abc\fR\fB""\fR" 4
+.el .IP "\fB\-\-global\fR \fB``\fR\fIbla: abc\fR\fB''\fR" 4
+.IX Item "--global ""bla: abc"""
+Use this to add global options to the generated config file.
+You can call \fB\-\-global\fR several times to add multiple options.
+The line will appear in the configuration just before the config for
+the next router appearing on the command line.
+.Sp
+.Vb 1
+\& \-\-global "workdir: /home/mrtg"
+.Ve
+.Sp
+If you want some default Options you might want to put
+.Sp
+.Vb 1
+\& \-\-global "options[_]: growright,bits"
+.Ve
+.Sp
+Specifying \fB\-\-global\fR after the last router on the command line will
+create a line in the configuration file which will appear after all the
+routers.
+.IP "\fB\-\-noreversedns\fR" 4
+.IX Item "--noreversedns"
+Do not try to reverse lookup \s-1IP\s0 numbers ... a must for \s-1DNS\s0 free environments.
+.IP "\fB\-\-no\-down\fR" 4
+.IX Item "--no-down"
+Normally cfgmaker will not include interfaces which are marked
+anything but administratively and operationally \s-1UP.\s0 With this
+switch you get them all.
+.IP "\fB\-\-show\-op\-down\fR" 4
+.IX Item "--show-op-down"
+Include interfaces which are operatively down.
+.IP "\fB\-\-zero\-speed\fR \fIspeed\fR" 4
+.IX Item "--zero-speed speed"
+Assign this speed in bits-per-second to all interfaces which return 0
+for ifSpeed and ifHighSpeed. Some switches, notably Foundry equipment,
+return a speed of zero for some interfaces. For example, to have
+all interfaces reporting zero set to 100Mbps, use
+\&\-\-zero\-speed=100000000.
+.IP "\fB\-\-subdirs\fR \fIformat\fR" 4
+.IX Item "--subdirs format"
+Give each router its own subdirectory for the \s-1HTML\s0 and graphics (or
+\&.rrd) files. The directory name is the given \fIformat\fR string with a
+couple of pattern replacements. The string \*(L"\s-1HOSTNAME\*(R"\s0 will be
+replaced by the hostname of the router (however you specified it on
+the \fBcfgmaker\fR commandline \*(-- it may be an actual hostname or just an
+\&\s-1IP\s0 address), and \*(L"\s-1SNMPNAME\*(R"\s0 will be replaced with the device's idea of
+its own name (the same name that appears on the right side of the
+\&\*(L"Title\*(R" lines). For instance, a call like:
+.Sp
+.Vb 1
+\& cfgmaker \-\-subdirs=HOSTNAME_\|_SNMPNAME public@10.10.0.18
+.Ve
+.Sp
+would result in the generation of lines looking something like:
+.Sp
+.Vb 1
+\& Directory[10.10.0.18_1]: 10.10.0.18_\|_fp2200\-bothrip\-1.3
+.Ve
+.IP "\fB\-\-output\fR \fIfile\fR" 4
+.IX Item "--output file"
+Write the output from \fBcfgmaker\fR into the file \fIfile\fR. The default
+is to use \f(CW\*(C`STDOUT\*(C'\fR. \fB\-\-output\fR is expected to appear only once on the
+command line. If used multiple times, the file specified by the last
+\&\fB\-\-output\fR will be used.
+.IP "\fB\-\-nointerfaces\fR" 4
+.IX Item "--nointerfaces"
+Don't generate configuration lines for interfaces.
+.Sp
+This makes cfgmaker skip all steps related to interfaces which means
+it will not do any polling of the router to retrieve interface
+information which speeds up the execution of cfgmaker and it will
+neither run any interface templates.
+.IP "\fB\-\-interfaces\fR" 4
+.IX Item "--interfaces"
+This makes cfgmaker generate configuration lines for interfaces (the
+default behaviour).
+.Sp
+The main usage of this option is to negate an \-\-nointerfaces appearing
+earlier on the command line.
+.SS "\s-1SNMP V3\s0 Options"
+.IX Subsection "SNMP V3 Options"
+\&\fBCfgmaker\fR supports \s-1SNMP V3\s0 using the \fBNet:SNMP\fR perl module. There are optional
+parameters affecting \s-1SNMP\s0 operation.
+.IP "\-\-enablesnmpv3 {yes|no}" 4
+.IX Item "--enablesnmpv3 {yes|no}"
+The \fB\-\-enablesnmpv3\fR option is an optional flag to check for the presence of
+the \fBNet::SNMP\fR libraries. \fBCfgmaker\fR will try to determine whether this flag is
+required and will set the values automatically.
+.PP
+\fISNMPv3 Arguments\fR
+.IX Subsection "SNMPv3 Arguments"
+.PP
+A \s-1SNMP\s0 context is a collection of management information accessible by a \s-1SNMP\s0
+entity. An item of management information may exist in more than one context
+and a \s-1SNMP\s0 entity potentially has access to many contexts. The combination of
+a contextEngineID and a contextName unambiguously identifies a context within
+an administrative domain. In a SNMPv3 message, the contextEngineID and
+contextName are included as part of the scopedPDU. All methods that generate
+a \s-1SNMP\s0 message optionally take a \fB\-\-contextengineid\fR and \fB\-\-contextname\fR
+argument to configure these fields.
+.IP "Context Engine \s-1ID\s0" 4
+.IX Item "Context Engine ID"
+The \fB\-\-contextengineid\fR argument expects a hexadecimal string representing
+the desired contextEngineID. The string must be 10 to 64 characters (5 to
+32 octets) long and can be prefixed with an optional \*(L"0x\*(R". Once the
+\&\fB\-\-contextengineid\fR is specified it stays with the object until it is changed
+again or reset to default by passing in the undefined value. By default, the
+contextEngineID is set to match the authoritativeEngineID of the authoritative
+\&\s-1SNMP\s0 engine.
+.IP "Context Name" 4
+.IX Item "Context Name"
+The contextName is passed as a string which must be 0 to 32 octets in length
+using the \fB\-\-contextname\fR argument. The contextName stays with the object
+until it is changed. The contextName defaults to an empty string which
+represents the \*(L"default\*(R" context.
+.PP
+\fIUser-based Security Model Arguments\fR
+.IX Subsection "User-based Security Model Arguments"
+.PP
+The User-based Security Model (\s-1USM\s0) used by SNMPv3 requires that a securityName
+be specified using the \fB\-\-username\fR argument. The creation of a Net::SNMP
+object with the version set to SNMPv3 will fail if the \fB\-\-username\fR argument
+is not present. The \fB\-\-username\fR argument expects a string 1 to 32 octets
+in length.
+.PP
+Different levels of security are allowed by the User-based Security Model which
+address authentication and privacy concerns. A SNMPv3 target will
+derive the security level (securityLevel) based on which of the following
+arguments are specified.
+.PP
+By default a securityLevel of 'noAuthNoPriv' is assumed. If the \fB\-\-authkey\fR
+or \fB\-\-authpassword\fR arguments are specified, the securityLevel becomes
+\&'authNoPriv'. The \fB\-\-authpassword\fR argument expects a string which is at
+least 1 octet in length. Optionally, the \fB\-\-authkey\fR argument can be used so
+that a plain text password does not have to be specified in a script. The
+\&\fB\-\-authkey\fR argument expects a hexadecimal string produced by localizing the
+password with the authoritativeEngineID for the specific destination device.
+The \f(CW\*(C`snmpkey\*(C'\fR utility included with the Net::SNMP distribution can be used to create
+the hexadecimal string (see snmpkey).
+.PP
+Two different hash algorithms are defined by SNMPv3 which can be used by the
+Security Model for authentication. These algorithms are \s-1HMAC\-MD5\-96 \*(L"MD5\*(R"
+\&\s0(\s-1RFC 1321\s0) and \s-1HMAC\-SHA\-96 \*(L"SHA\-1\*(R" \s0(\s-1NIST FIPS PUB 180\-1\s0). The default
+algorithm used by the module is \s-1HMAC\-MD5\-96. \s0 This behavior can be changed by
+using the \fB\-\-authprotocol\fR argument. This argument expects either the string
+\&'md5' or 'sha' to be passed to modify the hash algorithm.
+.PP
+By specifying the arguments \fB\-\-privkey\fR or \fB\-\-privpassword\fR the securityLevel
+associated with the object becomes 'authPriv'. According to SNMPv3, privacy
+requires the use of authentication. Therefore, if either of these two
+arguments are present and the \fB\-\-authkey\fR or \fB\-\-authpassword\fR arguments are
+missing, the creation of the object fails. The \fB\-\-privkey\fR and
+\&\fB\-\-privpassword\fR arguments expect the same input as the \fB\-\-authkey\fR and
+\&\fB\-\-authpassword\fR arguments respectively.
+.PP
+The User-based Security Model described in \s-1RFC 3414\s0 defines a single encryption
+protocol to be used for privacy. This protocol, CBC-DES \*(L"\s-1DES\*(R" \s0(\s-1NIST FIPS PUB
+46\-1\s0), is used by default or if the string 'des' is passed to the
+\&\fB\-\-privprotocol\fR argument. By working with the Extended Security Options
+Consortium http://www.snmp.com/eso/, the module also supports additional
+protocols which have been defined in draft specifications. The draft
+http://www.snmp.com/eso/draft\-reeder\-snmpv3\-usm\-3desede\-00.txt
+defines the support of \s-1CBC\-3DES\-EDE \s0\*(L"Triple-DES\*(R" (\s-1NIST FIPS 46\-3\s0) in the
+User-based Security Model. This protocol can be selected using the
+\&\fB\-\-privprotocol\fR argument with the string '3desede'. The draft
+http://www.snmp.com/eso/draft\-blumenthal\-aes\-usm\-04.txt
+describes the use of \s-1CFB128\-AES\-128/192/256 \*(L"AES\*(R" \s0(\s-1NIST FIPS PUB 197\s0) in the
+\&\s-1USM.\s0 The three \s-1AES\s0 encryption protocols, differentiated by their key sizes,
+can be selected by passing 'aescfb128', 'aescfb192', or 'aescfb256' to the
+\&\fB\-privprotocol\fR argument.
+.SS "Details on Filters"
+.IX Subsection "Details on Filters"
+The purpose of the filters is to decide which interfaces to accept and
+which interfaces to reject. This decision is done for each interface by
+evaluating the filter expression as a piece of Perl code and investigating
+the result of the evaluation. If true, accept the interface otherwise
+reject it.
+.PP
+When working with filters, remember that Perl has it's own idea of what truth
+and false is. The empty string "\*(L" and the string \*(R"0" are false, all other
+strings are true. This further imples that any integer value of 0 is
+false as well as any undef value. It also implies that all references
+are considered true.
+.PP
+As the filter is evaluated as a Perl expression, several useful constructs
+in Perl are worth mentioning:
+.PP
+Expressions might be grouped by using parentheses \*(L"()\*(R". Expressions might
+be combined using boolean operators such as the following:
+.ie n .IP """\fBand\fR"" (equivalent with ""\fB&&\fR"")" 4
+.el .IP "``\fBand\fR'' (equivalent with ``\fB&&\fR'')" 4
+.IX Item """and (equivalent with &&"")"
+Boolean \*(L"and\*(R" of the two expressions, is only true if both expressions are
+true. Example: \fIexpression1\fR \fBand\fR \fIexpression2\fR
+.ie n .IP """\fBor\fR"" (equivalent with ""\fB||\fR"")" 4
+.el .IP "``\fBor\fR'' (equivalent with ``\fB||\fR'')" 4
+.IX Item """or (equivalent with ||"")"
+Boolean \*(L"or\*(R" of the two expressions, is true if either or both expressions
+are true. Example: \fIexpression1\fR \fBor\fR \fIexpression2\fR
+.ie n .IP """\fBnot\fR"" (equivalent with ""\fB!\fR"")" 4
+.el .IP "``\fBnot\fR'' (equivalent with ``\fB!\fR'')" 4
+.IX Item """not (equivalent with !"")"
+Boolean negation of a single expression. Example: \fBnot\fR \fIexpression\fR .
+Yet another example: \fB!\fR\fIexpression\fR
+.PP
+(For more details on this I recommend a book on Perl)
+.PP
+\fIPredefined Filter Variables\fR
+.IX Subsection "Predefined Filter Variables"
+.PP
+To facilitate, there are a number of predefined values available to use
+in the filter. Note that these variables are also available when templates
+interfaces are evaluated (but not host templates).
+.PP
+Caveat: All these variables' names begin with a dollar sign ($), which
+is a syntactic requirement for scalar variables in Perl. The danger here
+is that the dollar sign in many shells is an active character (often
+used for shell variables exactly as in Perl variables) so it is important
+to ensure that the Perl expression isn't evaluated by the command line
+shell as shell code before being passed to cfgmaker as command line
+arguments. In shells like Bourne shell, ksh shell or bash shell, placing
+the entire expression within single qoutes will avoid such accidental
+evaluation:
+.PP
+.Vb 1
+\& \*(Aq\-\-if\-filter=($default_iftype && $if_admin)\*(Aq
+.Ve
+.ie n .IP "\fB\fB$if_type\fB\fR" 4
+.el .IP "\fB\f(CB$if_type\fB\fR" 4
+.IX Item "$if_type"
+This is an integer specifying the interface type as
+per the \s-1SNMP\s0 standards and as reported by the polled device. A complete list
+of interface types would be impractical for this document , but there are
+a number predefined varables below. Normally, cfgmaker puts in the target's
+PageTop this iftype value within paranthesis after the name of the interface
+type. (e.g \*(L"propPointToPointSerial (22)\*(R").
+.Sp
+Here's a list of some of the most common interface types by number:
+.Sp
+.Vb 10
+\& 6 ethernetCsmacd
+\& 7 iso88023Csmacd
+\& 9 iso88025TokenRing
+\& 15 fddi
+\& 19 E1
+\& 20 basicISDN
+\& 21 primaryISDN
+\& 22 propPointToPointSerial
+\& 23 ppp
+\& 24 softwareLoopback
+\& 30 ds3
+\& 32 frame\-relay
+\& 33 rs232
+\& 37 atm
+\& 39 sonet
+\& 44 frameRelayService
+\& 46 hssi
+\& 49 aal5
+\& 53 propVirtual
+\& 62 Fast Ethernet (100BaseT)
+\& 63 ISDN & X.25
+\& 69 Full Duplex Fast Ethernet (100BaseFX)
+\& 94 Asymetric Digital Subscriber Loop (ADSL)
+\& 117 Gigabit Ethernet
+\& 134 ATM Sub Interface
+.Ve
+.ie n .IP "\fB\fB$default\fB\fR" 4
+.el .IP "\fB\f(CB$default\fB\fR" 4
+.IX Item "$default"
+True if and only if cfgmaker normally should
+accepted the interface based on the interfaces administrative and
+operational state (taking the flags \fB\-\-no\-down\fR and \fB\-\-show\-op\-down\fR into
+account) and it's type (and a few other things).
+.ie n .IP "\fB\fB$default_ifstate\fB\fR" 4
+.el .IP "\fB\f(CB$default_ifstate\fB\fR" 4
+.IX Item "$default_ifstate"
+True if and only if cfgmaker would have accepted the
+interface based on it's operational and administrative states (also taking
+into account the presence of the flags \fB\-\-no\-down\fR and \fB\-\-show\-op\-down\fR).
+.ie n .IP "\fB\fB$default_iftype\fB\fR" 4
+.el .IP "\fB\f(CB$default_iftype\fB\fR" 4
+.IX Item "$default_iftype"
+True if and only if cfgmaker would have accepted the
+interface based on it's type (and a few type specific details in addition).
+.ie n .IP "\fB\fB$if_admin\fB\fR" 4
+.el .IP "\fB\f(CB$if_admin\fB\fR" 4
+.IX Item "$if_admin"
+True if and only if the interface is in an adminstrative up
+state.
+.ie n .IP "\fB\fB$if_oper\fB\fR" 4
+.el .IP "\fB\f(CB$if_oper\fB\fR" 4
+.IX Item "$if_oper"
+True if and only if the interface is in an operational up
+state.
+.PP
+A number of variables are also predefined to easily decide if an interface
+belong to a certain cathegory or not. Below is all those variables listed
+together with which if_type numbers each variable will be true for. Note
+that some variables refer to other variables as well.
+.ie n .IP "\fB\fB$if_is_ethernet\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_ethernet\fB\fR" 4
+.IX Item "$if_is_ethernet"
+True for ethernet interfaces (nr 6, 7, 26, 62, 69 and 117).
+.ie n .IP "\fB\fB$if_is_isdn\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_isdn\fB\fR" 4
+.IX Item "$if_is_isdn"
+True for various \s-1ISDN\s0 interface types (nr 20, 21, 63, 75, 76 and 77)
+.ie n .IP "\fB\fB$if_is_dialup\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_dialup\fB\fR" 4
+.IX Item "$if_is_dialup"
+True for dial-up interfaces such as \s-1PPP\s0 as well
+as \s-1ISDN. \s0(nr 23, 81, 82 and 108 in addition to the numbers of
+\&\fB\f(CB$if_is_isdn\fB\fR).
+.ie n .IP "\fB\fB$if_is_atm\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_atm\fB\fR" 4
+.IX Item "$if_is_atm"
+True for miscellaneous \s-1ATM\s0 related interface types (nr 37, 49, 107, 105,
+106, 114 and 134).
+.ie n .IP "\fB\fB$if_is_wan\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_wan\fB\fR" 4
+.IX Item "$if_is_wan"
+True for \s-1WAN\s0 interfaces point to point, Frame Relay and High Speed Serial ( 22,32,44,46)
+.ie n .IP "\fB\fB$if_is_lan\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_lan\fB\fR" 4
+.IX Item "$if_is_lan"
+True for \s-1LAN\s0 interfaces (8, 9, 11, 15, 26, 55, 59, 60 and 115 in addition
+to the numbers of \fB\f(CB$if_is_ethernet\fB\fR).
+.ie n .IP "\fB\fB$if_is_dsl\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_dsl\fB\fR" 4
+.IX Item "$if_is_dsl"
+True for \s-1ADSL, RDSL, HDSL\s0 and \s-1SDSL \s0(nr 94, 95, 96, 97)
+.ie n .IP "\fB\fB$if_is_loopback\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_loopback\fB\fR" 4
+.IX Item "$if_is_loopback"
+True for software loopback interfaces (nr 24)
+.ie n .IP "\fB\fB$if_is_ciscovlan\fB\fR" 4
+.el .IP "\fB\f(CB$if_is_ciscovlan\fB\fR" 4
+.IX Item "$if_is_ciscovlan"
+True for Cisco \s-1VLAN\s0 interfaces (interfaces with the
+word Vlan or \s-1VLAN\s0 in their ifdescs)
+.ie n .IP "\fB\fB$if_vlan_id\fB\fR" 4
+.el .IP "\fB\f(CB$if_vlan_id\fB\fR" 4
+.IX Item "$if_vlan_id"
+Returns the vlan id associated with a specific port
+on Cisco Catalyst switches under both Catalyst \s-1OS\s0
+and \s-1IOS,\s0 and 3Com switches. If it is not a vlan interface, will return undef.
+.ie n .IP "\fB\fB$if_cisco_trunk\fB\fR" 4
+.el .IP "\fB\f(CB$if_cisco_trunk\fB\fR" 4
+.IX Item "$if_cisco_trunk"
+Returns the trunking state of a specific port
+on Cisco Catalyst switches under both Catalyst \s-1OS\s0
+and \s-1IOS. \s0 Returns \*(L"1\*(R" if the interface is a trunk, undef otherwise.
+.ie n .IP "\fB\fB$if_MTU\fB\fR" 4
+.el .IP "\fB\f(CB$if_MTU\fB\fR" 4
+.IX Item "$if_MTU"
+Returns the Maximum Transfer Unit associated with a specific port.
+.PP
+Besides that, you can also use the variables defined for templates below.
+Further, all the variables available in cfgmaker is at the scripts disposal
+even if the use of such features is discouraged. More \*(L"shortcuts\*(R" in the
+form of variables and functions will be made available in the future instead.
+.PP
+\fIExamples on Filters\fR
+.IX Subsection "Examples on Filters"
+.PP
+The following filter will not affect which interfaces get's included or
+excluded, it will make cfgmaker behave as normally.
+.PP
+.Vb 1
+\& \*(Aq\-\-if\-filter=$default\*(Aq
+.Ve
+.PP
+The following filter will make cfgmaker exclude \s-1PPP \s0(23) interfaces:
+.PP
+.Vb 1
+\& \*(Aq\-\-if\-filter=$default && $if_type!=23\*(Aq
+.Ve
+.PP
+The following filter will make cfgmaker behave as usual except that it will
+consider the operational state of an interface irrelevant but still reject
+all interfaces which are administratively down.
+.PP
+.Vb 1
+\& \*(Aq\-\-if\-filter=$if_admin && $default_iftype\*(Aq
+.Ve
+.SS "Details on Templates"
+.IX Subsection "Details on Templates"
+The contents of the template files are evaluated as a Perl program. A
+number or Perl variables are available for the program to read and others
+are used to be written to.
+.PP
+As quite a few of the predefined variables has values which are are supposed
+to be used in \s-1HTML\s0 code some of them have an \*(L"HTML-escaped\*(R" variant, e.g
+\&\f(CW$html_syslocation\fR is the \s-1HTML\s0 escaped variant of \f(CW$syslocation\fR. The \s-1HTML\s0
+escaping means that the chars \*(L"<\*(R", \*(L">\*(R" and \*(L"&\*(R" are replaced by \*(L"&lt;\*(R",
+\&\*(L"&gt;\*(R" and \*(L"&amp;\*(R" and that newlines embedded in the string are prepended
+with \*(L"<\s-1BR\s0>\*(R" and appended with a space character (if a newline is last in the
+string it is not touched).
+.PP
+\fIWritable Template Variables\fR
+.IX Subsection "Writable Template Variables"
+.PP
+These are the variables available to store the configuration lines in.
+Some of them are initialized prior to the evaluation of the template but
+such content normally is comments for inclusion in the final configuration
+file so those variables might be reset to the empty string in the template
+code to eliminate the comments. The other way around is also possible, the
+contents of these variables might be extended with further information
+for various reasons such as debugging etc.
+.PP
+Once the template has been evaluated, the following happens: if the
+template is a interface template and the actual interface for some reason
+is rejected and thus needs to be commented out, all the lines in the
+variable \fB\f(CB$target_lines\fB\fR are turned into comments by adding a hash mark
+(\*(L"#\*(R") at their beginning. Then all the variables \fB\f(CB$head_lines\fB\fR,
+\&\fB\f(CB$problem_lines\fB\fR , \fB\f(CB$target_lines\fB\fR and \fB\f(CB$separator_lines\fB\fR
+are concatenated together to form the lines to add to the configuration file.
+.ie n .IP "\fB\fB$target_lines\fB\fR" 4
+.el .IP "\fB\f(CB$target_lines\fB\fR" 4
+.IX Item "$target_lines"
+This variable is the placeholder for the configuration lines created
+by the template. \fB\f(CB$target_lines\fB\fR is predefined to be empty when
+the template code is evaluated.
+.ie n .IP "\fB\fB$head_lines\fB\fR" 4
+.el .IP "\fB\f(CB$head_lines\fB\fR" 4
+.IX Item "$head_lines"
+This variable is intended to be the placeholder for the comment line
+appearing just before the target in the configuration file. It is
+initialized with that comment line before the evaluation of the template
+code and if the template doesn't modify \fB\f(CB$head_lines\fB\fR during evaluation,
+the comment will look like usual in the config file.
+.ie n .IP "\fB\fB$problem_lines\fB\fR" 4
+.el .IP "\fB\f(CB$problem_lines\fB\fR" 4
+.IX Item "$problem_lines"
+This variable is intended to be the placholder for the comment lines
+describing any problems which might have been encountered when trying
+to add the target into the configuration. For host templates it's
+normally not used and for those it's predefined as the empty string.
+For interface templates \fB\f(CB$problem_lines\fB\fR is predefined with
+the error description comments which cfgmaker normally would use for
+rejected interfaces or as the empty string for accepted interfaces.
+.Sp
+It is possible to test against \fB\f(CB$problem_lines\fB\fR to find out if
+an interface will be included or rejected but this is not recommended.
+Test against \fB\f(CB$if_ok\fB\fR instead.
+.ie n .IP "\fB\fB$separator_lines\fB\fR" 4
+.el .IP "\fB\f(CB$separator_lines\fB\fR" 4
+.IX Item "$separator_lines"
+This variable is the placeholder for the string to use as the separator
+between the code for individual targets. The contents of this variable
+is put after each target (so the lines will appear after the end of the
+last target in the config as well).
+.PP
+\fIPredefined Template Variables\fR
+.IX Subsection "Predefined Template Variables"
+.PP
+All the variables below are available for interface templates to use.
+For host templates, only those listed under \*(L"Host and System Variables\*(R"
+are available.
+.PP
+For interface templates the variables listed under
+\&\*(L"Predefined Filter Variables\*(R" are also available.
+.PP
+\fIHost and System Variables\fR
+.IX Subsection "Host and System Variables"
+.ie n .IP "\fB\fB$router_name\fB\fR" 4
+.el .IP "\fB\f(CB$router_name\fB\fR" 4
+.IX Item "$router_name"
+This is the fully qualified name for the router. It is affected by the
+following items on the command line: the router name itself and
+\&\fB\-\-dns\-domain\fR.
+.ie n .IP "\fB\fB$router_connect\fB\fR" 4
+.el .IP "\fB\f(CB$router_connect\fB\fR" 4
+.IX Item "$router_connect"
+This is the reference string for the router being polled. It is on the
+form community@router possibly followed by some snmp options. It is
+affected by the following items on the command line: the router name
+itself, \fB\-\-community\fR, \fB\-\-snmp\-options\fR and \fB\-\-dns\-domain\fR.
+(There's no \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$directory_name\fB\fR" 4
+.el .IP "\fB\f(CB$directory_name\fB\fR" 4
+.IX Item "$directory_name"
+This variable should contain the directory name as cfgmaker normally would
+use as the value for the \*(L"Directory[]\*(R" directive. The value is determined
+by the \fB\-\-subdirs\fR command line option. If \fB\-\-subdirs\fR isn't specified
+\&\fB\f(CB$directory_name\fB\fR will be the empty string. (There's no \s-1HTML\s0 escaped
+variant available)
+.ie n .IP "\fB\fB$syscontact\fB\fR" 4
+.el .IP "\fB\f(CB$syscontact\fB\fR" 4
+.IX Item "$syscontact"
+This variable is the router's \s-1SNMP\s0 sysContact value. (\s-1HTML\s0 escaped
+variant: \fB\f(CB$html_syscontact\fB\fR)
+.ie n .IP "\fB\fB$sysname\fB\fR" 4
+.el .IP "\fB\f(CB$sysname\fB\fR" 4
+.IX Item "$sysname"
+This variable is the router's \s-1SNMP\s0 sysName value. (No \s-1HTML\s0 escaped
+variant available)
+.ie n .IP "\fB\fB$syslocation\fB\fR" 4
+.el .IP "\fB\f(CB$syslocation\fB\fR" 4
+.IX Item "$syslocation"
+This variable is the router's \s-1SNMP\s0 sysLocation value. (\s-1HTML\s0 escaped
+variant: \fB\f(CB$html_syslocation\fB\fR)
+.ie n .IP "\fB\fB$sysdescr\fB\fR" 4
+.el .IP "\fB\f(CB$sysdescr\fB\fR" 4
+.IX Item "$sysdescr"
+This variable is the router's \s-1SNMP\s0 sysDescr value. It is normally not used
+by cfgmaker but might be useful in a template. (\s-1HTML\s0 escaped variant:
+\&\fB\f(CB$html_sysdescr\fB\fR)
+.PP
+\fIInterface Target Related Variables\fR
+.IX Subsection "Interface Target Related Variables"
+.ie n .IP "\fB\fB$target_name\fB\fR" 4
+.el .IP "\fB\f(CB$target_name\fB\fR" 4
+.IX Item "$target_name"
+This is what cfgmaker normally would use as the the name of the target.
+The target name is what is found within the square brackets, \*(L"[]\*(R", for target
+directives. (There's no \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_ref\fB\fR" 4
+.el .IP "\fB\f(CB$if_ref\fB\fR" 4
+.IX Item "$if_ref"
+This the reference string for the interface. It is expected to be used
+in the \*(L"Target[xyz]\*(R" directive to distinguish what interface to use. The
+value of this variable is affected by the \fB\-\-ifref\fR command line option.
+It is normally used together with \fB\f(CB$router_connect\fB\fR.
+(There's no \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_ok\fB\fR" 4
+.el .IP "\fB\f(CB$if_ok\fB\fR" 4
+.IX Item "$if_ok"
+This variable is true if the interface is going to be included into the
+configuration file, otherwise false. Don't test against other variables
+such as \fB\f(CB$problem_lines\fB\fR to find out if an interface will be rejected
+or not, use this \fB\f(CB$if_ok\fB\fR instead.
+.ie n .IP "\fB\fB$default_target_lines\fB\fR" 4
+.el .IP "\fB\f(CB$default_target_lines\fB\fR" 4
+.IX Item "$default_target_lines"
+This variable contains all the target lines which cfgmaker by default outputs
+for this interface. It's useful if you want to have the \*(L"standard target\*(R"
+but want to add some extra lines to it by using a template.
+.PP
+By default cfgmaker uses the following directives for each target it
+generates: Target[], SetEnv[], MaxBytes[], Title[], PageTop[] and if
+there is any directory specified also the Directory[] directive.
+.PP
+To facilitate the creation of templates which generates target configs
+which are similar to the default one, each of the above mentioned
+directive lines have a corresponding variable containing the line as
+cfgmaker would have output it by default.
+.PP
+Note that none of these have a \s-1HTML\s0 escaped variant, text in them is
+\&\s-1HTML\s0 escaped where needed. Also note that they do not have any newline
+at the end.
+.ie n .IP "\fB\fB$default_target_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_target_directive\fB\fR" 4
+.IX Item "$default_target_directive"
+This variable contains the default string for the Target[] directive line.
+.ie n .IP "\fB\fB$default_setenv_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_setenv_directive\fB\fR" 4
+.IX Item "$default_setenv_directive"
+This variable contains the default string for the SetEnv[] directive line.
+.ie n .IP "\fB\fB$default_directory_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_directory_directive\fB\fR" 4
+.IX Item "$default_directory_directive"
+This variable contains the default string for the Directory[] directive line
+which means it is an empty string (with no newline) if there's no directory.
+.ie n .IP "\fB\fB$default_maxbytes_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_maxbytes_directive\fB\fR" 4
+.IX Item "$default_maxbytes_directive"
+This variable contains the default string for the MaxBytes[] directive line.
+.ie n .IP "\fB\fB$default_title_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_title_directive\fB\fR" 4
+.IX Item "$default_title_directive"
+This variable contains the default string for the Title[] directive line.
+.ie n .IP "\fB\fB$default_pagetop_directive\fB\fR" 4
+.el .IP "\fB\f(CB$default_pagetop_directive\fB\fR" 4
+.IX Item "$default_pagetop_directive"
+This variable contains the default string for the PageTop[] directive lines.
+.PP
+\fIInterface Network Configuration Variables\fR
+.IX Subsection "Interface Network Configuration Variables"
+.ie n .IP "\fB\fB$if_ip\fB\fR" 4
+.el .IP "\fB\f(CB$if_ip\fB\fR" 4
+.IX Item "$if_ip"
+This variable should contain the IP-address of the interface, if any has
+been assigned to it. (There's no \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$ifindex\fB\fR" 4
+.el .IP "\fB\f(CB$ifindex\fB\fR" 4
+.IX Item "$ifindex"
+This variable is the \s-1SNMP\s0 ifIndex for the interface which per definition
+always is an integer. (There's no \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_index\fB\fR" 4
+.el .IP "\fB\f(CB$if_index\fB\fR" 4
+.IX Item "$if_index"
+Equivalent with \fB\f(CB$ifindex\fB\fR.
+.ie n .IP "\fB\fB$if_eth\fB\fR" 4
+.el .IP "\fB\f(CB$if_eth\fB\fR" 4
+.IX Item "$if_eth"
+Contains the ethernet address of the interface, if any. (There's no \s-1HTML\s0
+escaped variant available)
+.ie n .IP "\fB\fB$if_speed\fB\fR" 4
+.el .IP "\fB\f(CB$if_speed\fB\fR" 4
+.IX Item "$if_speed"
+This variable is the speed in bytes/second (with prefixes). (There's no
+\&\s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_speed_str\fB\fR" 4
+.el .IP "\fB\f(CB$if_speed_str\fB\fR" 4
+.IX Item "$if_speed_str"
+This variable is a cooked speed description which is either in bits or
+bytes depending on wether or not the bits option is active and also with
+the proper prefix for the speed (k, M, G etc). (No \s-1HTML\s0 escaped variant
+available)
+.ie n .IP "\fB\fB$if_type_desc\fB\fR" 4
+.el .IP "\fB\f(CB$if_type_desc\fB\fR" 4
+.IX Item "$if_type_desc"
+This variable is a textual description of the interface type. (\s-1HTML\s0
+escaped variant: \fB\f(CB$html_if_type_desc\fB\fR)
+.ie n .IP "\fB\fB$if_type_num\fB\fR" 4
+.el .IP "\fB\f(CB$if_type_num\fB\fR" 4
+.IX Item "$if_type_num"
+This variable the integer value corresponding to the interface type (for a
+listing for the value for the more common interface types, see the section
+\&\s-1DETAILS ON FILTERS\s0 above). (No \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_dns_name\fB\fR" 4
+.el .IP "\fB\f(CB$if_dns_name\fB\fR" 4
+.IX Item "$if_dns_name"
+This is the \s-1DNS\s0 name for the interface. (No \s-1HTML\s0 escaped variant available)
+.PP
+\fIInterface Name, Description and Alias Variables\fR
+.IX Subsection "Interface Name, Description and Alias Variables"
+.PP
+It might seem confusing with both \fIName\fR, \fIDescription\fR and \fIAlias\fR in
+this context and to some extent it is. \fIName\fR and \fIDescription\fR are
+usually supported on most equipment but how they are used varies, both
+between manufacturers as well as between different cathegories of equipment
+from the same manufacturer. The \fIAlias\fR is at least supported by Cisco
+\&\s-1IOS,\s0 and that variable contains whatever is used in the \s-1IOS\s0 statement
+called \*(L"description\*(R" for the interface (not to be confused with the \s-1SNMP\s0
+variables for \fIDescription\fR).
+.PP
+For better control from the command line consider \fB\f(CB$if_title_desc\fB\fR which contents
+are controlled by the \fB\-\-if\-descr\fR command line option.
+.ie n .IP "\fB\fB$if_snmp_descr\fB\fR" 4
+.el .IP "\fB\f(CB$if_snmp_descr\fB\fR" 4
+.IX Item "$if_snmp_descr"
+This variable should contain the \*(L"raw\*(R" description of the interface as
+determined by the \s-1SNMP\s0 polling of the router. (\s-1HTML\s0 escaped variant:
+\&\fB\f(CB$html_if_snmp_descr\fB\fR)
+.ie n .IP "\fB\fB$if_snmp_name\fB\fR" 4
+.el .IP "\fB\f(CB$if_snmp_name\fB\fR" 4
+.IX Item "$if_snmp_name"
+The \*(L"raw\*(R" name for the interface as provided by \s-1SNMP\s0 polling. (\s-1HTML\s0 escaped
+variant: \fB\f(CB$html_if_snmp_name\fB\fR)
+.ie n .IP "\fB\fB$if_snmp_alias\fB\fR" 4
+.el .IP "\fB\f(CB$if_snmp_alias\fB\fR" 4
+.IX Item "$if_snmp_alias"
+The \*(L"raw\*(R" ifAlias for the interface as provided by \s-1SNMP\s0 polling. (\s-1HTML\s0
+escaped variant: \fB\f(CB$html_if_snmp_alias\fB\fR)
+.ie n .IP "\fB\fB$if_cisco_descr\fB\fR" 4
+.el .IP "\fB\f(CB$if_cisco_descr\fB\fR" 4
+.IX Item "$if_cisco_descr"
+The \*(L"raw\*(R" CiscolocIfDescr for the interface as provided by \s-1SNMP\s0 polling.
+(\s-1HTML\s0 escaped variant: \fB\f(CB$html_if_cisco_descr\fB\fR)
+.ie n .IP "\fB\fB$if_description\fB\fR" 4
+.el .IP "\fB\f(CB$if_description\fB\fR" 4
+.IX Item "$if_description"
+This is the \*(L"cooked\*(R" description string for the interface, taking into account
+the \s-1SNMP\s0 values found for the interface's RDescr, ifAlias and
+CiscolocIfDescr. (\s-1HTML\s0 escaped variant: \fB\f(CB$html_if_description\fB\fR)
+.ie n .IP "\fB\fB$if_title\fB\fR" 4
+.el .IP "\fB\f(CB$if_title\fB\fR" 4
+.IX Item "$if_title"
+The full string cfgmaker by default would have used for the Title[] directive
+in the configuration as well as the content of the topmost H1 tag in the
+PageTop[]. Is composed by the contents of \fB\f(CB$desc_prefix\fB\fR,
+\&\fB\f(CB$if_title_desc\fB\fR and \fB\f(CB$sysname\fB\fR.
+.Sp
+As \fB\f(CB$if_title\fB\fR depends on \fB\f(CB$if_title_desc\fB\fR, it is possible to indirectly
+control \fB\f(CB$if_title\fB\fR by using the command line option \fB\-\-if\-descr\fR.
+.Sp
+(\s-1HTML\s0 escaped variant: \fB\f(CB$html_if_title\fB\fR)
+.ie n .IP "\fB\fB$if_port_name\fB\fR" 4
+.el .IP "\fB\f(CB$if_port_name\fB\fR" 4
+.IX Item "$if_port_name"
+If the host is a Cisco Catalyst \s-1LAN\s0 switch, this variable is the name of
+that port. (No \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$if_pp_port_name\fB\fR" 4
+.el .IP "\fB\f(CB$if_pp_port_name\fB\fR" 4
+.IX Item "$if_pp_port_name"
+If the host is a Nortel Passport \s-1LAN\s0 switch, this variable is the name of
+that port. (No \s-1HTML\s0 escaped variant available)
+.ie n .IP "\fB\fB$desc_prefix\fB\fR" 4
+.el .IP "\fB\f(CB$desc_prefix\fB\fR" 4
+.IX Item "$desc_prefix"
+This variable is a prefix of the description of what the target is to use in
+the \*(L"Title[]\*(R" directive and in the H1 section of the \*(L"PageTop[]\*(R". Default is
+\&\*(L"Traffic analysis for \*(R". (\s-1HTML\s0 escaped variant: \fB\f(CB$html_desc_prefix\fB\fR)
+.ie n .IP "\fB\fB$if_title_desc\fB\fR" 4
+.el .IP "\fB\f(CB$if_title_desc\fB\fR" 4
+.IX Item "$if_title_desc"
+This is the description of the interface normally used by cfgmaker as part
+of the variable \fB\f(CB$if_title\fB\fR. The latter is used as the full string in the
+\&\*(L"Title[]\*(R" directove and the H1 section in the PageTop[].
+.Sp
+\&\fB\f(CB$if_title_desc\fB\fR is controlled by the command line option \fB\-\-if\-descr\fR
+which indirectly controls the contents of \fB\f(CB$if_title\fB\fR
+.Sp
+(\s-1HTML\s0 escaped variant: \fB\f(CB$html_if_title_desc\fB\fR)
+.PP
+\fIHelp Functions for Templates\fR
+.IX Subsection "Help Functions for Templates"
+.PP
+The following functions exists to facilitate the writing of host and
+interface templates.
+.IP "\fBhtml_escape(\f(BIstring\fB)\fR" 4
+.IX Item "html_escape(string)"
+\&\fB\f(BIhtml_escape()\fB\fR takes a string as an argument and returns a new string
+where the following substitutions has been done: the chars \*(L"<\*(R", \*(L">\*(R" and
+\&\*(L"&\*(R" are replaced by \*(L"&lt;\*(R", \*(L"&gt;\*(R" and \*(L"&amp;\*(R" and that newlines embedded
+in the string are prepended with \*(L"<\s-1BR\s0>\*(R" and appended with a space character
+(newlines at the end of the string are not touched).
+.ie n .IP "\fBoid_pick($router_connect,$v3opt,""oid1"",""oid2""...)\fR" 4
+.el .IP "\fBoid_pick($router_connect,$v3opt,``oid1'',``oid2''...)\fR" 4
+.IX Item "oid_pick($router_connect,$v3opt,oid1,oid2...)"
+This function will try to poll each of the oids specified until
+it is successful or has run out of oids. It will return the name of the
+first oid that worked or undef if it is not successful
+.PP
+\fIExample Template Files\fR
+.IX Subsection "Example Template Files"
+.PP
+Template Example 1: Eliminating Rejected Targets From Appearing
+.IX Subsection "Template Example 1: Eliminating Rejected Targets From Appearing"
+.PP
+This template file generates exactly the same configuration code per
+interface as cfgmaker does by default, with the exception that it eliminates
+all lines (comments as well as config code) for an interface if the
+interface happens to be rejected.
+.PP
+.Vb 3
+\& if(not $problem_lines)
+\& {
+\& $target_lines .= <<ECHO;
+\&
+\& Target[$target_name]: $if_ref:$router_connect
+\& SetEnv[$target_name]: MRTG_INT_IP="$if_ip" MRTG_INT_DESCR="$if_snmp_descr"
+\& ECHO
+\&
+\& if ($directory_name) {
+\& $target_lines .= "Directory[$target_name]: $directory_name\en";
+\& }
+\&
+\& $target_lines .= <<ECHO;
+\& MaxBytes[$target_name]: $if_speed
+\& Title[$target_name]: $html_desc_prefix$html_if_title_desc \-\- $sysname
+\& PageTop[$target_name]: <h1>$html_desc_prefix$html_if_title_desc \-\- $sysname</h1>
+\& <div id="sysdetails">
+\& <table>
+\& <tr>
+\& <td>System:</td>
+\& <td>$sysname in $html_syslocation</td>
+\& </tr>
+\& <tr>
+\& <td>Maintainer:</td>
+\& <td>$html_syscontact</td>
+\& </tr>
+\& <tr>
+\& <td>Description:</td>
+\& <td>$html_if_description</td>
+\& </tr>
+\& <tr>
+\& <td>ifType:</td>
+\& <td>$html_if_type_desc ($if_type_num)</td>
+\& </tr>
+\& <tr>
+\& <td>ifName:</td>
+\& <td>$html_if_snmp_name</td>
+\& </tr>
+\& ECHO
+\&
+\& $target_lines .= <<ECHO if defined $if_port_name;
+\& <tr>
+\& <td>Port Name:</td>
+\& <td>$if_port_name</td>
+\& </tr>
+\& ECHO
+\&
+\& $target_lines .= <<ECHO if defined $if_pp_port_name;
+\& <tr>
+\& <td>Port Name:</td>
+\& <td>$if_pp_port_name</td>
+\& </tr>
+\& ECHO
+\&
+\& $target_lines .= <<ECHO;
+\& <tr>
+\& <td>Max Speed:</td>
+\& <td>$if_speed_str</td>
+\& </tr>
+\& ECHO
+\&
+\& $target_lines .= <<ECHO if $if_ip;
+\& <tr>
+\& <td>Ip:</td>
+\& <td>$if_ip ($if_dns_name)</td>
+\& </tr>
+\& ECHO
+\&
+\& $target_lines .= <<ECHO;
+\& </table>
+\& </div>
+\& ECHO
+\& } else {
+\& $head_lines="";
+\& $problem_lines="";
+\& $target_lines="";
+\& $separator_lines="";
+\& }
+.Ve
+.PP
+\fITemplate Example 2: Simplier Version of Example 1\fR
+.IX Subsection "Template Example 2: Simplier Version of Example 1"
+.PP
+Example 1 was partly intended to demonstrate how to customize the generation
+of interface targets but also to provide a hint of how the variables are
+used in the \*(L"default\*(R" template which one could consider that cfgmaker
+normally uses.
+.PP
+If you're only intrested in the easiest way of entirely eliminating those
+reject interfaces, the template below would do the job as well by using
+\&\fB\f(CB$default_target_lines\fB\fR.
+.PP
+.Vb 8
+\& if($if_ok) {
+\& $target_lines = $default_target_lines;
+\& } else {
+\& $head_lines="";
+\& $problem_lines="";
+\& $target_lines="";
+\& $separator_lines="";
+\& }
+.Ve
+.PP
+\fITemplate Example 3: Creating \s-1CPU\s0 Targets for Hosts\fR
+.IX Subsection "Template Example 3: Creating CPU Targets for Hosts"
+.PP
+Below is an example of a host template.
+.PP
+.Vb 3
+\& $head_lines .= <<ECHO;
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\& ECHO
+\&
+\& my $target_name = $router_name . ".cpu";
+\&
+\& $target_lines .= <<ECHO;
+\&
+\& YLegend[$target_name]: Percentage CPU load
+\& ShortLegend[$target_name]: %
+\& Legend1[$target_name]: CPU load in %
+\& Legend2[$target_name]:
+\& Legend3[$target_name]: Max Observed CPU load
+\& Legend4[$target_name]:
+\& LegendI[$target_name]: &nbsp;CPU Load:
+\& LegendO[$target_name]:
+\& WithPeak[$target_name]: ywm
+\& MaxBytes[$target_name]: 100
+\& Options[$target_name]: growright, gauge, nopercent
+\& Title[$target_name]: $router_name CPU load
+\& Target[$target_name]: 1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:$router_connect
+\& PageTop[$target_name]: <h1>$router_name CPU load</h1>
+\& <div>
+\& <table>
+\& <tr>
+\& <td>System:</td>
+\& <td>$router_name in $html_syslocation</td>
+\& </tr>
+\& <tr>
+\& <td>Maintainer:</td>
+\& <td>$html_syscontact</td>
+\& </tr>
+\& <tr>
+\& <td>Description:</td>
+\& <td>$html_sysdescr</td>
+\& </tr>
+\& <tr>
+\& <td>Resource:</td>
+\& <td>CPU.</td>
+\& </tr>
+\& </table>
+\& </div>
+\& ECHO
+.Ve
+.SH "EXAMPLES"
+.IX Header "EXAMPLES"
+The first example creates a config file for \fIrouter.place.xyz\fR: the router
+has the community name \fIpublic\fR. Interfaces get identified by their
+\&\s-1IP\s0 number. Two global options get added to the config file. The
+config file gets redirected to \fImrtg.conf\fR. The '\e' signs at the end
+of the line mean that this command should be written on a single line.
+.PP
+.Vb 4
+\& cfgmaker \-\-global "WorkDir: /home/tobi" \e
+\& \-\-global "Options[_]: growright,bits" \e
+\& \-\-ifref=ip \e
+\& public@router.place.xyz > mrtg.cfg
+.Ve
+.PP
+Note: if cfgmaker is not in your path, but you are in the directory where
+cfgmaker is stored, you can start it with ./cfgmaker
+.PP
+The next example creates a config file for four devices:
+\&\fIrouter1.place.xyz\fR, \fIrouter2.place.xyz\fR, \fIswitch1.place.xyz\fR and
+\&\fIswitch2.place.xyz\fR all with the community \fIpublic\fR.
+.PP
+The two routers will have \fB\-\-ifref\fR set to \fBdescr\fR whilst the two
+switches will use \fB\-\-ifref\fR set to \fBname\fR. Further the routers will
+use \fB\-\-ifdesc\fR set to \fBalias\fR and \fIswitch1.place.xyz\fR will use
+\&\fB\-\-ifdesc\fR set to \fBdescr\fR whilst \fIswitch2.place.xyz\fR use \fBname\fR instead.
+.PP
+Finally, there will be two Options lines inserted in the configuration:
+One will be in the beginning, whilst the other will be inserted after
+the lines related to the two routers but before those lines related
+to the switches.
+.PP
+.Vb 12
+\& cfgmaker \-\-global "WorkDir: /home/tobi" \e
+\& \-\-global "Options[_]: growright,bits" \e
+\& \-\-ifref=descr \e
+\& \-\-ifdesc=alias \e
+\& public@router1.place.xyz \e
+\& public@router2.place.xyz \e
+\& \-\-global "Options[_]: growright" \e
+\& \-\-ifref=name \e
+\& \-\-ifdesc=descr \e
+\& public@switch1.place.xyz \e
+\& \-\-ifdesc=name \e
+\& public@switch2.place.xyz > mrtg.cfg
+.Ve
+.PP
+The next example demonstrates how to use the \fB\-\-community\fR,
+\&\fB\-\-snmp\-options\fR and \fB\-\-dns\-domain\fR to make the command line
+simpler. All the equipment will use the community \fIhidden\fR, except for
+the ppp-server which use community \fIaccess\fR. All equipment uses these
+\&\s-1SNMP\s0 options: \fB1s timeout\fR, \fB1 retry\fR and \fB\s-1SNMP\s0 version 2\fR (\fBbackoff\fR and
+\&\fBport\fR is unspecified which means they use the default values).
+The exception again is the ppp-server which uses \fB\s-1SNMP\s0 version 1\fR.
+Finally, all the equipment is part of the domain \fIplace.xyz\fR, except
+for the ppp-server which is part of the domain \fIremote.place.xyz\fR.
+Note that the latter is achieved simply by specifying the name
+of the ppp-server to be \fIppp-server.\f(BIremote\fI\fR .
+.PP
+.Vb 10
+\& cfgmaker \-\-global "WorkDir: /home/tobi" \e
+\& \-\-global "Options[_]: growright,bits" \e
+\& \-\-dns\-domain=place.xyz \e
+\& \-\-community=hidden \e
+\& \-\-snmp\-options=::1:1::2 \e
+\& router1 \e
+\& router2 \e
+\& router3 \e
+\& router4 \e
+\& router5 \e
+\& switch1 \e
+\& switch2 \e
+\& switch3 \e
+\& switch4 \e
+\& switch5 \e
+\& switch6 \e
+\& switch7 \e
+\& access@ppp\-server.remote:::::1 > mrtg.cfg
+.Ve
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+mrtg-reference
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch> and
+Jakob Ilves <jakob.ilves@oracle.com>
+.SH "LICENSE"
+.IX Header "LICENSE"
+\&\s-1GNU\s0 General Public License
+.SH "COPYRIGHT"
+.IX Header "COPYRIGHT"
+Cfgmaker is Copyright 2000 by Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/cfgmaker.pod b/doc/cfgmaker.pod
new file mode 120000
index 0000000..ee651aa
--- /dev/null
+++ b/doc/cfgmaker.pod
@@ -0,0 +1 @@
+../bin/cfgmaker \ No newline at end of file
diff --git a/doc/cfgmaker.txt b/doc/cfgmaker.txt
new file mode 100644
index 0000000..128cf67
--- /dev/null
+++ b/doc/cfgmaker.txt
@@ -0,0 +1,1206 @@
+CFGMAKER(1) mrtg CFGMAKER(1)
+
+
+
+NNAAMMEE
+ cfgmaker - Creates mrtg.cfg files (for mrtg-2.17.7)
+
+SSYYNNOOPPSSIISS
+ cfgmaker [options] [community@]router [[options] [community@]router
+ ...]
+
+OOPPTTIIOONNSS
+ --ifref=nr interface references by Interface Number (default)
+ --ifref=ip ... by Ip Address
+ --ifref=eth ... by Ethernet Number
+ --ifref=descr ... by Interface Description
+ --ifref=name ... by Interface Name
+ --ifref=type ... by Interface Type
+ You may also use multiple options separated by commas,
+ in which case the first available one is used:
+ e.g. --ifref=ip,name,nr
+
+ --ifdesc=nr interface description uses Interface Number (default)
+ --ifdesc=ip ... uses Ip Address
+ --ifdesc=eth ... uses Ethernet Number
+ --ifdesc=descr ... uses Interface Description
+ --ifdesc=name ... uses Interface Name
+ --ifdesc=catname ... uses CatOS Interface Name
+ --ifdesc=ppname ... uses Passport Port Name
+ --ifdesc=alias ... uses Interface Alias
+ --ifdesc=type ... uses Interface Type
+ You may also use multiple options separated by commas,
+ in which case the first available one is used:
+ e.g. --ifdesc=catname,ppname,descr,alias,ip,name,nr
+
+ --if-filter=f Test every interface against filter f to decide wether
+ or not to include that interface into the collection.
+ Currently f is being evaluated as a Perl expression
+ and it's truth value is used to reject or accept the
+ interface.
+ (Experimental, under development, might change)
+
+ --if-template=templatefile
+ Replace the normal target entries for the interfaces
+ with an entry as specified by the contents in the file
+ templatefile. The file is supposed to contain Perl
+ code to be executed to generate the lines for the
+ target in the configuration file.
+ (Experimental, under development, might change)
+
+ --host-template=templatefile
+ In addition to creating targets for a host's interfaces
+ do also create targets for the host itself as specified
+ by the contents in the file templatefile. The file is
+ supposed to contain Perl code to be executed to generate
+ the lines for the host related targets (such as CPU,
+ ping response time measurements etc.) in the config-
+ uration file.
+ (Experimental, under development, might change)
+
+ --global "x: a" add global config entries
+
+ --no-down do not look at admin or opr status of interfaces
+
+ --show-op-down show interfaces which are operatively down
+
+ --zero-speed=spd use this speed in bits-per-second as the interface
+ speed for all interfaces that return a speed of 0
+ via ifSpeed/ifHighSpeed. 100Mbps = 100000000
+
+ --subdirs=format give each router its own subdirectory, naming each per
+ "format", in which HOSTNAME and SNMPNAME will be
+ replaced by the values of those items -- for instance,
+ --subdirs=HOSTNAME or --subdirs="HOSTNAME (SNMPNAME)"
+
+ --noreversedns do not reverse lookup ip numbers
+
+ --community=cmty Set the default community string to "cmty" instead of
+ "public".
+
+ --enable-ipv6 Enable IPv6 support, if the required libraries are
+ present. Numeric IPv6 addresses must be enclosed
+ in square brackets, e.g. public@[2001:760:4::1]:161
+
+ --use-16bit Use 16bit SNMP request IDs to query all routers.
+
+ --snmp-options=:[<port>][:[<tmout>][:[<retr>][:[<backoff>][:<ver>]]]]
+
+ Specify default SNMP options to be appended to all
+ routers following. Individual fields can be empty.
+ Routers following might override some or all of the
+ options given to --snmp-options.
+
+ --dns-domain=domain
+ Specifies a domain to append to the name of all
+ routers following.
+
+ --nointerfaces Don't do generate any configuration lines for interfaces,
+ skip the step of gathering interface information and
+ don't run any interface template code.
+
+ --interfaces Generate configuration lines for interfaces (this is the
+ default). The main purpose of this option is to negate
+ an --nointerfaces appearing earlier on the command line.
+
+ --help brief help message
+ --man full documentation
+ --version print the version of cfgmaker
+
+ --output=file output filename default is STDOUT
+
+DDEESSCCRRIIPPTTIIOONN
+ CCffggmmaakkeerr creates MRTG configuration files based on information pulled
+ from a router or another SNMP manageable device.
+
+ [_c_o_m_m_u_n_i_t_y@@]_r_o_u_t_e_r
+
+ _C_o_m_m_u_n_i_t_y is the community name of the device you want to create a
+ configuration for. If not specified, it defaults to 'ppuubblliicc'; you might
+ want to try this first if you do not know the community name of a
+ device. If you are using the wrong community name you will get no
+ response from the device.
+
+ _R_o_u_t_e_r is the DNS name or the IP number of an SNMP-managable device.
+ Following the name you can specify 6 further options separated by
+ colons. The full syntax looks like this:
+
+ rroouutteerr[:[pprrtt][:[ttmmoouutt][:[rreettrr][:[bbaacckkooffff][:vveerrss]]]]]
+
+ Of special interest may be the last parameter, vveerrss. If you set this
+ to '2' then your device will be queried with SNMP version 2 requests.
+ This allows you to poll the 64 bit traffic counters in the device and
+ will thus work much better with fast interfaces (no more counter
+ overrun). Note that the order in which the routers are specified on
+ the command line do matter as the same order is used when the
+ configuration file is generated. The first specified router has it's
+ configuration lines genrated first, followed by the lines belonging to
+ the next router and so on.
+
+ Note that the first line of the generated cfg file will contain all the
+ commandline options you used for generating it. This is to allow for
+ the easy 'regeneration' in case you want to add newhosts or make some
+ other global change.
+
+ CCoonnffiigguurraattiioonn
+ Except for the ----oouuttppuutt and ----gglloobbaall options, all options affect only
+ the routers following them on the command line. If an option specified
+ earlier on the command line reappears later on the command line with
+ another value, the new value overrides the old value as far as
+ remaining routers are concerned. This way options might be tailored
+ for groups of routers or for individual routers.
+
+ See ----oouuttppuutt and ----gglloobbaall for how their behaviour is affected by where
+ or how many times they appear on the command line.
+
+ See the EExxaammpplleess below on how to set an option differently for multiple
+ routers.
+
+ ----hheellpp
+ Print a brief help message and exit.
+
+ ----mmaann
+ Prints the manual page and exits.
+
+ ----vveerrssiioonn
+ Print the version of cfgmaker. This should match the version of
+ MRTG for which config files are being created.
+
+ ----iiffrreeff nnrr|iipp|eetthh|ddeessccrr|nnaammee
+ Select the interface identification method. Default is nnrr which
+ identifies the router interfaces by their number. Unfortunately
+ the interface numbering scheme in an SNMP tree can change. Some
+ routers change their numbering when new interfaces are added,
+ others change thier numbering every full moon just for fun.
+
+ To work around this sad problem MRTG can identify interfaces by 4
+ other properties. None of these works for all interfaces, but you
+ should be able to find one which does fine for you. Note that
+ especially ethernet addrsses can be problematic as some routers
+ have the same ethernet address on most of their interface cards.
+
+ Select iipp to identify the interface by its IP number. Use eetthh to
+ use the ethernet address for identification. Use ddeessccrr to use the
+ Interface description. Or use nnaammee to use the Interface name.
+
+ You can specify multiple properties if you wish, separated by
+ commas. In this case, cfgmaker will use the first item in the list
+ which can provide unique identification. This allows you to
+ specify, for example, to use IP address and to use ifName if this
+ is not defined:
+ --ifref ip,name
+
+ If your chosen method does not allow unique interface
+ identification on the device you are querying, ccffggmmaakkeerr will tell
+ you about it.
+
+ ----iiffddeesscc nnrr|iipp|eetthh|ddeessccrr|nnaammee|ttyyppee|aalliiaass
+ Select what to use as the description of the interface. The
+ description appears in the "Title[]" property for the target as
+ well as the text header in the HTML code defined in the target's
+ "PageTop[]". Default is to use nnrr which is just the interface
+ number which isn't always useful to the viewer of the graphs.
+
+ There are 6 other properties which could be used. Use iipp if you
+ want to use the interface's IP-address. Use eetthh if you want to use
+ the interface's ethernet address. If you want a better
+ description, you can use either ddeessccrr, nnaammee or aalliiaass. Exactly what
+ each of these do varies between different equipment so you might
+ need to experiment. For instance, for a serial interface on a
+ Cisco router running IOS using nnaammee might result in "S0" being the
+ interface description , ddeessccrr might result in "Serial0" and aalliiaass
+ might result in "Link to HQ" (provided that is what is used as the
+ interface's "description" in the router's configuration).
+
+ Finally, if you want to describe the interface by it's Btype (i.e
+ "ethernetCSMA", "propPointtoPoint" etc) you can use ttyyppee.
+
+ You can specify multiple properties if you wish, separated by
+ commas. In this case, cfgmaker will use the first item in the list
+ which is available for this interface. This allows you to specify,
+ for example, to use any of the different aliases in order of
+ preference.
+
+ ----iiff--ffiilltteerr 'ffiilltteerr--eexxpprreessssiioonn'
+ First of all, this is under some development and is experimental.
+
+ Use this if you want to have better control over what interfaces
+ gets included into the configuration. The ffiilltteerr--eexxpprreessssiioonn is
+ evaluated as a piece of Perl code and is expected to return a truth
+ value. If true, include the interface and if false, exclude the
+ interface.
+
+ For a further discussion on how these filters work, see the section
+ "Details on Filters" below.
+
+ ----iiff--tteemmppllaattee tteemmppllaattee--ffiillee
+ First of all, this is under some development and is experimental.
+
+ Use this if you want to control what the line for each target
+ should look like in the configuration file. The contents of the
+ file tteemmppllaattee--ffiillee will be evaluated as a Perl program which
+ generates the lines using certain variables for input and output.
+
+ For a further discussion on how these templates work, see the
+ section "Details on Temaplates" below.
+
+ ----hhoosstt--tteemmppllaattee tteemmppllaattee--ffiillee
+ First of all, this is under some development and is experimental.
+
+ Use this if you want to have some extra targets related to the host
+ itself such as CPU utilization, ping response time to the host,
+ number of busy modems etc. The contents of the file tteemmppllaattee--ffiillee
+ will be evaluated once per host as a Perl program which generates
+ the lines using certain variables for input and output.
+
+ For a further discussion on how these templates work, see the
+ section "Details on Templates" below.
+
+ ----ccoommmmuunniittyy ccoommmmuunniittyy--ssttrriinngg
+ Use this to set the community for the routers following on the
+ command line to ccoommmmuunniittyy--ssttrriinngg. Individual routers might
+ overrride this community string by using the syntax
+ ccoommmmuunniittyy@@rroouutteerr.
+
+ ----eennaabbllee--iippvv66
+ This option enables IPv6 support. It requires the appropriate perl
+ modules; if they are not found then IPv6 is disabled (see the ipv6
+ documentation).
+
+ cfgmaker will use IPv6 or IPv4 depending on the target. If the
+ target is a numeric address, the protocol depends on the type of
+ address. If the target is a hostname, cfgmaker will try to resolve
+ the name first to an IPv6 address then to an IPv4 address.
+
+ IPv6 numeric addresses must be specified between square braces.
+
+ For example:
+
+ cfgmaker --enable-ipv6 [2001:760:4::1]:165:::2
+
+ If the target has both an IPv6 address and an IPv4 address with the
+ same hostname, cfgmaker first queries the target using IPv6 and
+ falls back to IPv4 if it fails. This is useful for targets which
+ don't support SNMP over IPv6.
+
+ ----uussee--1166bbiitt
+ This option forces the use of 16bit SNMP request IDs. Some broken
+ SNMP agents do not accept 32bit request IDs. Try to avoid this
+ option as much as possible, complain to your agent vendor instead.
+
+ ----ssnnmmpp--ooppttiioonnss :[ppoorrtt][:[ttiimmeeoouutt][:[rreettrriieess][:[bbaacckkooffff][:vveerrssiioonn]]]]
+ Use this to set the default SNMP options for all routers following
+ on the command line. Individual values might be omitted as well as
+ trailing colons. Note that routers might override individual (or
+ all) values specified by ----ssnnmmpp--ooppttiioonnss by using the syntax
+
+ rroouutteerr[:[ppoorrtt][:[ttiimmeeoouutt][:[rreettrriieess][:[bbaacckkooffff][:vveerrssiioonn]]]]]
+
+ ----gglloobbaall ""_b_l_a_: _a_b_c""
+ Use this to add global options to the generated config file. You
+ can call ----gglloobbaall several times to add multiple options. The line
+ will appear in the configuration just before the config for the
+ next router appearing on the command line.
+
+ --global "workdir: /home/mrtg"
+
+ If you want some default Options you might want to put
+
+ --global "options[_]: growright,bits"
+
+ Specifying ----gglloobbaall after the last router on the command line will
+ create a line in the configuration file which will appear after all
+ the routers.
+
+ ----nnoorreevveerrsseeddnnss
+ Do not try to reverse lookup IP numbers ... a must for DNS free
+ environments.
+
+ ----nnoo--ddoowwnn
+ Normally cfgmaker will not include interfaces which are marked
+ anything but administratively and operationally UP. With this
+ switch you get them all.
+
+ ----sshhooww--oopp--ddoowwnn
+ Include interfaces which are operatively down.
+
+ ----zzeerroo--ssppeeeedd _s_p_e_e_d
+ Assign this speed in bits-per-second to all interfaces which return
+ 0 for ifSpeed and ifHighSpeed. Some switches, notably Foundry
+ equipment, return a speed of zero for some interfaces. For
+ example, to have all interfaces reporting zero set to 100Mbps, use
+ --zero-speed=100000000.
+
+ ----ssuubbddiirrss _f_o_r_m_a_t
+ Give each router its own subdirectory for the HTML and graphics (or
+ .rrd) files. The directory name is the given _f_o_r_m_a_t string with a
+ couple of pattern replacements. The string "HOSTNAME" will be
+ replaced by the hostname of the router (however you specified it on
+ the ccffggmmaakkeerr commandline -- it may be an actual hostname or just an
+ IP address), and "SNMPNAME" will be replaced with the device's idea
+ of its own name (the same name that appears on the right side of
+ the "Title" lines). For instance, a call like:
+
+ cfgmaker --subdirs=HOSTNAME__SNMPNAME public@10.10.0.18
+
+ would result in the generation of lines looking something like:
+
+ Directory[10.10.0.18_1]: 10.10.0.18__fp2200-bothrip-1.3
+
+ ----oouuttppuutt _f_i_l_e
+ Write the output from ccffggmmaakkeerr into the file _f_i_l_e. The default is
+ to use "STDOUT". ----oouuttppuutt is expected to appear only once on the
+ command line. If used multiple times, the file specified by the
+ last ----oouuttppuutt will be used.
+
+ ----nnooiinntteerrffaacceess
+ Don't generate configuration lines for interfaces.
+
+ This makes cfgmaker skip all steps related to interfaces which
+ means it will not do any polling of the router to retrieve
+ interface information which speeds up the execution of cfgmaker and
+ it will neither run any interface templates.
+
+ ----iinntteerrffaacceess
+ This makes cfgmaker generate configuration lines for interfaces
+ (the default behaviour).
+
+ The main usage of this option is to negate an --nointerfaces
+ appearing earlier on the command line.
+
+ SSNNMMPP VV33 OOppttiioonnss
+ CCffggmmaakkeerr supports SNMP V3 using the NNeett::SSNNMMPP perl module. There are
+ optional parameters affecting SNMP operation.
+
+ --enablesnmpv3 {yes|no}
+ The ----eennaabblleessnnmmppvv33 option is an optional flag to check for the
+ presence of the NNeett::::SSNNMMPP libraries. CCffggmmaakkeerr will try to
+ determine whether this flag is required and will set the values
+ automatically.
+
+ _S_N_M_P_v_3 _A_r_g_u_m_e_n_t_s
+
+ A SNMP context is a collection of management information accessible by
+ a SNMP entity. An item of management information may exist in more
+ than one context and a SNMP entity potentially has access to many
+ contexts. The combination of a contextEngineID and a contextName
+ unambiguously identifies a context within an administrative domain. In
+ a SNMPv3 message, the contextEngineID and contextName are included as
+ part of the scopedPDU. All methods that generate a SNMP message
+ optionally take a ----ccoonntteexxtteennggiinneeiidd and ----ccoonntteexxttnnaammee argument to
+ configure these fields.
+
+ Context Engine ID
+ The ----ccoonntteexxtteennggiinneeiidd argument expects a hexadecimal string
+ representing the desired contextEngineID. The string must be 10 to
+ 64 characters (5 to 32 octets) long and can be prefixed with an
+ optional "0x". Once the ----ccoonntteexxtteennggiinneeiidd is specified it stays
+ with the object until it is changed again or reset to default by
+ passing in the undefined value. By default, the contextEngineID is
+ set to match the authoritativeEngineID of the authoritative SNMP
+ engine.
+
+ Context Name
+ The contextName is passed as a string which must be 0 to 32 octets
+ in length using the ----ccoonntteexxttnnaammee argument. The contextName stays
+ with the object until it is changed. The contextName defaults to
+ an empty string which represents the "default" context.
+
+ _U_s_e_r_-_b_a_s_e_d _S_e_c_u_r_i_t_y _M_o_d_e_l _A_r_g_u_m_e_n_t_s
+
+ The User-based Security Model (USM) used by SNMPv3 requires that a
+ securityName be specified using the ----uusseerrnnaammee argument. The creation
+ of a Net::SNMP object with the version set to SNMPv3 will fail if the
+ ----uusseerrnnaammee argument is not present. The ----uusseerrnnaammee argument expects a
+ string 1 to 32 octets in length.
+
+ Different levels of security are allowed by the User-based Security
+ Model which address authentication and privacy concerns. A SNMPv3
+ target will derive the security level (securityLevel) based on which of
+ the following arguments are specified.
+
+ By default a securityLevel of 'noAuthNoPriv' is assumed. If the
+ ----aauutthhkkeeyy or ----aauutthhppaasssswwoorrdd arguments are specified, the securityLevel
+ becomes 'authNoPriv'. The ----aauutthhppaasssswwoorrdd argument expects a string
+ which is at least 1 octet in length. Optionally, the ----aauutthhkkeeyy
+ argument can be used so that a plain text password does not have to be
+ specified in a script. The ----aauutthhkkeeyy argument expects a hexadecimal
+ string produced by localizing the password with the
+ authoritativeEngineID for the specific destination device. The
+ "snmpkey" utility included with the Net::SNMP distribution can be used
+ to create the hexadecimal string (see snmpkey).
+
+ Two different hash algorithms are defined by SNMPv3 which can be used
+ by the Security Model for authentication. These algorithms are
+ HMAC-MD5-96 "MD5" (RFC 1321) and HMAC-SHA-96 "SHA-1" (NIST FIPS PUB
+ 180-1). The default algorithm used by the module is HMAC-MD5-96.
+ This behavior can be changed by using the ----aauutthhpprroottooccooll argument.
+ This argument expects either the string 'md5' or 'sha' to be passed to
+ modify the hash algorithm.
+
+ By specifying the arguments ----pprriivvkkeeyy or ----pprriivvppaasssswwoorrdd the
+ securityLevel associated with the object becomes 'authPriv'. According
+ to SNMPv3, privacy requires the use of authentication. Therefore, if
+ either of these two arguments are present and the ----aauutthhkkeeyy or
+ ----aauutthhppaasssswwoorrdd arguments are missing, the creation of the object fails.
+ The ----pprriivvkkeeyy and ----pprriivvppaasssswwoorrdd arguments expect the same input as the
+ ----aauutthhkkeeyy and ----aauutthhppaasssswwoorrdd arguments respectively.
+
+ The User-based Security Model described in RFC 3414 defines a single
+ encryption protocol to be used for privacy. This protocol, CBC-DES
+ "DES" (NIST FIPS PUB 46-1), is used by default or if the string 'des'
+ is passed to the ----pprriivvpprroottooccooll argument. By working with the Extended
+ Security Options Consortium http://www.snmp.com/eso/, the module also
+ supports additional protocols which have been defined in draft
+ specifications. The draft
+ http://www.snmp.com/eso/draft-reeder-snmpv3-usm-3desede-00.txt defines
+ the support of CBC-3DES-EDE "Triple-DES" (NIST FIPS 46-3) in the User-
+ based Security Model. This protocol can be selected using the
+ ----pprriivvpprroottooccooll argument with the string '3desede'. The draft
+ http://www.snmp.com/eso/draft-blumenthal-aes-usm-04.txt describes the
+ use of CFB128-AES-128/192/256 "AES" (NIST FIPS PUB 197) in the USM. The
+ three AES encryption protocols, differentiated by their key sizes, can
+ be selected by passing 'aescfb128', 'aescfb192', or 'aescfb256' to the
+ --pprriivvpprroottooccooll argument.
+
+ DDeettaaiillss oonn FFiilltteerrss
+ The purpose of the filters is to decide which interfaces to accept and
+ which interfaces to reject. This decision is done for each interface
+ by evaluating the filter expression as a piece of Perl code and
+ investigating the result of the evaluation. If true, accept the
+ interface otherwise reject it.
+
+ When working with filters, remember that Perl has it's own idea of what
+ truth and false is. The empty string "" and the string "0" are false,
+ all other strings are true. This further imples that any integer value
+ of 0 is false as well as any undef value. It also implies that all
+ references are considered true.
+
+ As the filter is evaluated as a Perl expression, several useful
+ constructs in Perl are worth mentioning:
+
+ Expressions might be grouped by using parentheses "()". Expressions
+ might be combined using boolean operators such as the following:
+
+ "aanndd" (equivalent with "&&&&")
+ Boolean "and" of the two expressions, is only true if both
+ expressions are true. Example: _e_x_p_r_e_s_s_i_o_n_1 aanndd _e_x_p_r_e_s_s_i_o_n_2
+
+ "oorr" (equivalent with "||||")
+ Boolean "or" of the two expressions, is true if either or both
+ expressions are true. Example: _e_x_p_r_e_s_s_i_o_n_1 oorr _e_x_p_r_e_s_s_i_o_n_2
+
+ "nnoott" (equivalent with "!!")
+ Boolean negation of a single expression. Example: nnoott _e_x_p_r_e_s_s_i_o_n
+ . Yet another example: !!_e_x_p_r_e_s_s_i_o_n
+
+ (For more details on this I recommend a book on Perl)
+
+ _P_r_e_d_e_f_i_n_e_d _F_i_l_t_e_r _V_a_r_i_a_b_l_e_s
+
+ To facilitate, there are a number of predefined values available to use
+ in the filter. Note that these variables are also available when
+ templates interfaces are evaluated (but not host templates).
+
+ Caveat: All these variables' names begin with a dollar sign ($),
+ which is a syntactic requirement for scalar variables in Perl. The
+ danger here is that the dollar sign in many shells is an active
+ character (often used for shell variables exactly as in Perl variables)
+ so it is important to ensure that the Perl expression isn't evaluated
+ by the command line shell as shell code before being passed to cfgmaker
+ as command line arguments. In shells like Bourne shell, ksh shell or
+ bash shell, placing the entire expression within single qoutes will
+ avoid such accidental evaluation:
+
+ '--if-filter=($default_iftype && $if_admin)'
+
+ $$iiff__ttyyppee
+ This is an integer specifying the interface type as per the SNMP
+ standards and as reported by the polled device. A complete list of
+ interface types would be impractical for this document , but there
+ are a number predefined varables below. Normally, cfgmaker puts in
+ the target's PageTop this iftype value within paranthesis after the
+ name of the interface type. (e.g "propPointToPointSerial (22)").
+
+ Here's a list of some of the most common interface types by number:
+
+ 6 ethernetCsmacd
+ 7 iso88023Csmacd
+ 9 iso88025TokenRing
+ 15 fddi
+ 19 E1
+ 20 basicISDN
+ 21 primaryISDN
+ 22 propPointToPointSerial
+ 23 ppp
+ 24 softwareLoopback
+ 30 ds3
+ 32 frame-relay
+ 33 rs232
+ 37 atm
+ 39 sonet
+ 44 frameRelayService
+ 46 hssi
+ 49 aal5
+ 53 propVirtual
+ 62 Fast Ethernet (100BaseT)
+ 63 ISDN & X.25
+ 69 Full Duplex Fast Ethernet (100BaseFX)
+ 94 Asymetric Digital Subscriber Loop (ADSL)
+ 117 Gigabit Ethernet
+ 134 ATM Sub Interface
+
+ $$ddeeffaauulltt
+ True if and only if cfgmaker normally should accepted the interface
+ based on the interfaces administrative and operational state
+ (taking the flags ----nnoo--ddoowwnn and ----sshhooww--oopp--ddoowwnn into account) and
+ it's type (and a few other things).
+
+ $$ddeeffaauulltt__iiffssttaattee
+ True if and only if cfgmaker would have accepted the interface
+ based on it's operational and administrative states (also taking
+ into account the presence of the flags ----nnoo--ddoowwnn and
+ ----sshhooww--oopp--ddoowwnn).
+
+ $$ddeeffaauulltt__iiffttyyppee
+ True if and only if cfgmaker would have accepted the interface
+ based on it's type (and a few type specific details in addition).
+
+ $$iiff__aaddmmiinn
+ True if and only if the interface is in an adminstrative up state.
+
+ $$iiff__ooppeerr
+ True if and only if the interface is in an operational up state.
+
+ A number of variables are also predefined to easily decide if an
+ interface belong to a certain cathegory or not. Below is all those
+ variables listed together with which if_type numbers each variable will
+ be true for. Note that some variables refer to other variables as
+ well.
+
+ $$iiff__iiss__eetthheerrnneett
+ True for ethernet interfaces (nr 6, 7, 26, 62, 69 and 117).
+
+ $$iiff__iiss__iissddnn
+ True for various ISDN interface types (nr 20, 21, 63, 75, 76 and
+ 77)
+
+ $$iiff__iiss__ddiiaalluupp
+ True for dial-up interfaces such as PPP as well as ISDN. (nr 23,
+ 81, 82 and 108 in addition to the numbers of $$iiff__iiss__iissddnn).
+
+ $$iiff__iiss__aattmm
+ True for miscellaneous ATM related interface types (nr 37, 49, 107,
+ 105, 106, 114 and 134).
+
+ $$iiff__iiss__wwaann
+ True for WAN interfaces point to point, Frame Relay and High Speed
+ Serial ( 22,32,44,46)
+
+ $$iiff__iiss__llaann
+ True for LAN interfaces (8, 9, 11, 15, 26, 55, 59, 60 and 115 in
+ addition to the numbers of $$iiff__iiss__eetthheerrnneett).
+
+ $$iiff__iiss__ddssll
+ True for ADSL, RDSL, HDSL and SDSL (nr 94, 95, 96, 97)
+
+ $$iiff__iiss__llooooppbbaacckk
+ True for software loopback interfaces (nr 24)
+
+ $$iiff__iiss__cciissccoovvllaann
+ True for Cisco VLAN interfaces (interfaces with the word Vlan or
+ VLAN in their ifdescs)
+
+ $$iiff__vvllaann__iidd
+ Returns the vlan id associated with a specific port on Cisco
+ Catalyst switches under both Catalyst OS and IOS, and 3Com
+ switches. If it is not a vlan interface, will return undef.
+
+ $$iiff__cciissccoo__ttrruunnkk
+ Returns the trunking state of a specific port on Cisco Catalyst
+ switches under both Catalyst OS and IOS. Returns "1" if the
+ interface is a trunk, undef otherwise.
+
+ $$iiff__MMTTUU
+ Returns the Maximum Transfer Unit associated with a specific port.
+
+ Besides that, you can also use the variables defined for templates
+ below. Further, all the variables available in cfgmaker is at the
+ scripts disposal even if the use of such features is discouraged. More
+ "shortcuts" in the form of variables and functions will be made
+ available in the future instead.
+
+ _E_x_a_m_p_l_e_s _o_n _F_i_l_t_e_r_s
+
+ The following filter will not affect which interfaces get's included or
+ excluded, it will make cfgmaker behave as normally.
+
+ '--if-filter=$default'
+
+ The following filter will make cfgmaker exclude PPP (23) interfaces:
+
+ '--if-filter=$default && $if_type!=23'
+
+ The following filter will make cfgmaker behave as usual except that it
+ will consider the operational state of an interface irrelevant but
+ still reject all interfaces which are administratively down.
+
+ '--if-filter=$if_admin && $default_iftype'
+
+ DDeettaaiillss oonn TTeemmppllaatteess
+ The contents of the template files are evaluated as a Perl program. A
+ number or Perl variables are available for the program to read and
+ others are used to be written to.
+
+ As quite a few of the predefined variables has values which are are
+ supposed to be used in HTML code some of them have an "HTML-escaped"
+ variant, e.g $html_syslocation is the HTML escaped variant of
+ $syslocation. The HTML escaping means that the chars "<", ">" and "&"
+ are replaced by "&lt;", "&gt;" and "&amp;" and that newlines embedded
+ in the string are prepended with "<BR>" and appended with a space
+ character (if a newline is last in the string it is not touched).
+
+ _W_r_i_t_a_b_l_e _T_e_m_p_l_a_t_e _V_a_r_i_a_b_l_e_s
+
+ These are the variables available to store the configuration lines in.
+ Some of them are initialized prior to the evaluation of the template
+ but such content normally is comments for inclusion in the final
+ configuration file so those variables might be reset to the empty
+ string in the template code to eliminate the comments. The other way
+ around is also possible, the contents of these variables might be
+ extended with further information for various reasons such as debugging
+ etc.
+
+ Once the template has been evaluated, the following happens: if the
+ template is a interface template and the actual interface for some
+ reason is rejected and thus needs to be commented out, all the lines in
+ the variable $$ttaarrggeett__lliinneess are turned into comments by adding a hash
+ mark ("#") at their beginning. Then all the variables $$hheeaadd__lliinneess,
+ $$pprroobblleemm__lliinneess , $$ttaarrggeett__lliinneess and $$sseeppaarraattoorr__lliinneess are concatenated
+ together to form the lines to add to the configuration file.
+
+ $$ttaarrggeett__lliinneess
+ This variable is the placeholder for the configuration lines
+ created by the template. $$ttaarrggeett__lliinneess is predefined to be empty
+ when the template code is evaluated.
+
+ $$hheeaadd__lliinneess
+ This variable is intended to be the placeholder for the comment
+ line appearing just before the target in the configuration file.
+ It is initialized with that comment line before the evaluation of
+ the template code and if the template doesn't modify $$hheeaadd__lliinneess
+ during evaluation, the comment will look like usual in the config
+ file.
+
+ $$pprroobblleemm__lliinneess
+ This variable is intended to be the placholder for the comment
+ lines describing any problems which might have been encountered
+ when trying to add the target into the configuration. For host
+ templates it's normally not used and for those it's predefined as
+ the empty string. For interface templates $$pprroobblleemm__lliinneess is
+ predefined with the error description comments which cfgmaker
+ normally would use for rejected interfaces or as the empty string
+ for accepted interfaces.
+
+ It is possible to test against $$pprroobblleemm__lliinneess to find out if an
+ interface will be included or rejected but this is not recommended.
+ Test against $$iiff__ookk instead.
+
+ $$sseeppaarraattoorr__lliinneess
+ This variable is the placeholder for the string to use as the
+ separator between the code for individual targets. The contents of
+ this variable is put after each target (so the lines will appear
+ after the end of the last target in the config as well).
+
+ _P_r_e_d_e_f_i_n_e_d _T_e_m_p_l_a_t_e _V_a_r_i_a_b_l_e_s
+
+ All the variables below are available for interface templates to use.
+ For host templates, only those listed under "Host and System Variables"
+ are available.
+
+ For interface templates the variables listed under "Predefined Filter
+ Variables" are also available.
+
+ _H_o_s_t _a_n_d _S_y_s_t_e_m _V_a_r_i_a_b_l_e_s
+
+ $$rroouutteerr__nnaammee
+ This is the fully qualified name for the router. It is affected by
+ the following items on the command line: the router name itself
+ and ----ddnnss--ddoommaaiinn.
+
+ $$rroouutteerr__ccoonnnneecctt
+ This is the reference string for the router being polled. It is on
+ the form community@router possibly followed by some snmp options.
+ It is affected by the following items on the command line: the
+ router name itself, ----ccoommmmuunniittyy, ----ssnnmmpp--ooppttiioonnss and ----ddnnss--ddoommaaiinn.
+ (There's no HTML escaped variant available)
+
+ $$ddiirreeccttoorryy__nnaammee
+ This variable should contain the directory name as cfgmaker
+ normally would use as the value for the "Directory[]" directive.
+ The value is determined by the ----ssuubbddiirrss command line option. If
+ ----ssuubbddiirrss isn't specified $$ddiirreeccttoorryy__nnaammee will be the empty string.
+ (There's no HTML escaped variant available)
+
+ $$ssyyssccoonnttaacctt
+ This variable is the router's SNMP sysContact value. (HTML escaped
+ variant: $$hhttmmll__ssyyssccoonnttaacctt)
+
+ $$ssyyssnnaammee
+ This variable is the router's SNMP sysName value. (No HTML escaped
+ variant available)
+
+ $$ssyyssllooccaattiioonn
+ This variable is the router's SNMP sysLocation value. (HTML
+ escaped variant: $$hhttmmll__ssyyssllooccaattiioonn)
+
+ $$ssyyssddeessccrr
+ This variable is the router's SNMP sysDescr value. It is normally
+ not used by cfgmaker but might be useful in a template. (HTML
+ escaped variant: $$hhttmmll__ssyyssddeessccrr)
+
+ _I_n_t_e_r_f_a_c_e _T_a_r_g_e_t _R_e_l_a_t_e_d _V_a_r_i_a_b_l_e_s
+
+ $$ttaarrggeett__nnaammee
+ This is what cfgmaker normally would use as the the name of the
+ target. The target name is what is found within the square
+ brackets, "[]", for target directives. (There's no HTML escaped
+ variant available)
+
+ $$iiff__rreeff
+ This the reference string for the interface. It is expected to be
+ used in the "Target[xyz]" directive to distinguish what interface
+ to use. The value of this variable is affected by the ----iiffrreeff
+ command line option. It is normally used together with
+ $$rroouutteerr__ccoonnnneecctt. (There's no HTML escaped variant available)
+
+ $$iiff__ookk
+ This variable is true if the interface is going to be included into
+ the configuration file, otherwise false. Don't test against other
+ variables such as $$pprroobblleemm__lliinneess to find out if an interface will
+ be rejected or not, use this $$iiff__ookk instead.
+
+ $$ddeeffaauulltt__ttaarrggeett__lliinneess
+ This variable contains all the target lines which cfgmaker by
+ default outputs for this interface. It's useful if you want to
+ have the "standard target" but want to add some extra lines to it
+ by using a template.
+
+ By default cfgmaker uses the following directives for each target it
+ generates: Target[], SetEnv[], MaxBytes[], Title[], PageTop[] and if
+ there is any directory specified also the Directory[] directive.
+
+ To facilitate the creation of templates which generates target configs
+ which are similar to the default one, each of the above mentioned
+ directive lines have a corresponding variable containing the line as
+ cfgmaker would have output it by default.
+
+ Note that none of these have a HTML escaped variant, text in them is
+ HTML escaped where needed. Also note that they do not have any newline
+ at the end.
+
+ $$ddeeffaauulltt__ttaarrggeett__ddiirreeccttiivvee
+ This variable contains the default string for the Target[]
+ directive line.
+
+ $$ddeeffaauulltt__sseetteennvv__ddiirreeccttiivvee
+ This variable contains the default string for the SetEnv[]
+ directive line.
+
+ $$ddeeffaauulltt__ddiirreeccttoorryy__ddiirreeccttiivvee
+ This variable contains the default string for the Directory[]
+ directive line which means it is an empty string (with no newline)
+ if there's no directory.
+
+ $$ddeeffaauulltt__mmaaxxbbyytteess__ddiirreeccttiivvee
+ This variable contains the default string for the MaxBytes[]
+ directive line.
+
+ $$ddeeffaauulltt__ttiittllee__ddiirreeccttiivvee
+ This variable contains the default string for the Title[] directive
+ line.
+
+ $$ddeeffaauulltt__ppaaggeettoopp__ddiirreeccttiivvee
+ This variable contains the default string for the PageTop[]
+ directive lines.
+
+ _I_n_t_e_r_f_a_c_e _N_e_t_w_o_r_k _C_o_n_f_i_g_u_r_a_t_i_o_n _V_a_r_i_a_b_l_e_s
+
+ $$iiff__iipp
+ This variable should contain the IP-address of the interface, if
+ any has been assigned to it. (There's no HTML escaped variant
+ available)
+
+ $$iiffiinnddeexx
+ This variable is the SNMP ifIndex for the interface which per
+ definition always is an integer. (There's no HTML escaped variant
+ available)
+
+ $$iiff__iinnddeexx
+ Equivalent with $$iiffiinnddeexx.
+
+ $$iiff__eetthh
+ Contains the ethernet address of the interface, if any. (There's
+ no HTML escaped variant available)
+
+ $$iiff__ssppeeeedd
+ This variable is the speed in bytes/second (with prefixes).
+ (There's no HTML escaped variant available)
+
+ $$iiff__ssppeeeedd__ssttrr
+ This variable is a cooked speed description which is either in bits
+ or bytes depending on wether or not the bits option is active and
+ also with the proper prefix for the speed (k, M, G etc). (No HTML
+ escaped variant available)
+
+ $$iiff__ttyyppee__ddeesscc
+ This variable is a textual description of the interface type.
+ (HTML escaped variant: $$hhttmmll__iiff__ttyyppee__ddeesscc)
+
+ $$iiff__ttyyppee__nnuumm
+ This variable the integer value corresponding to the interface type
+ (for a listing for the value for the more common interface types,
+ see the section DETAILS ON FILTERS above). (No HTML escaped
+ variant available)
+
+ $$iiff__ddnnss__nnaammee
+ This is the DNS name for the interface. (No HTML escaped variant
+ available)
+
+ _I_n_t_e_r_f_a_c_e _N_a_m_e_, _D_e_s_c_r_i_p_t_i_o_n _a_n_d _A_l_i_a_s _V_a_r_i_a_b_l_e_s
+
+ It might seem confusing with both _N_a_m_e, _D_e_s_c_r_i_p_t_i_o_n and _A_l_i_a_s in this
+ context and to some extent it is. _N_a_m_e and _D_e_s_c_r_i_p_t_i_o_n are usually
+ supported on most equipment but how they are used varies, both between
+ manufacturers as well as between different cathegories of equipment
+ from the same manufacturer. The _A_l_i_a_s is at least supported by Cisco
+ IOS, and that variable contains whatever is used in the IOS statement
+ called "description" for the interface (not to be confused with the
+ SNMP variables for _D_e_s_c_r_i_p_t_i_o_n).
+
+ For better control from the command line consider $$iiff__ttiittllee__ddeesscc which
+ contents are controlled by the ----iiff--ddeessccrr command line option.
+
+ $$iiff__ssnnmmpp__ddeessccrr
+ This variable should contain the "raw" description of the interface
+ as determined by the SNMP polling of the router. (HTML escaped
+ variant: $$hhttmmll__iiff__ssnnmmpp__ddeessccrr)
+
+ $$iiff__ssnnmmpp__nnaammee
+ The "raw" name for the interface as provided by SNMP polling.
+ (HTML escaped variant: $$hhttmmll__iiff__ssnnmmpp__nnaammee)
+
+ $$iiff__ssnnmmpp__aalliiaass
+ The "raw" ifAlias for the interface as provided by SNMP polling.
+ (HTML escaped variant: $$hhttmmll__iiff__ssnnmmpp__aalliiaass)
+
+ $$iiff__cciissccoo__ddeessccrr
+ The "raw" CiscolocIfDescr for the interface as provided by SNMP
+ polling. (HTML escaped variant: $$hhttmmll__iiff__cciissccoo__ddeessccrr)
+
+ $$iiff__ddeessccrriippttiioonn
+ This is the "cooked" description string for the interface, taking
+ into account the SNMP values found for the interface's RDescr,
+ ifAlias and CiscolocIfDescr. (HTML escaped variant:
+ $$hhttmmll__iiff__ddeessccrriippttiioonn)
+
+ $$iiff__ttiittllee
+ The full string cfgmaker by default would have used for the Title[]
+ directive in the configuration as well as the content of the
+ topmost H1 tag in the PageTop[]. Is composed by the contents of
+ $$ddeesscc__pprreeffiixx, $$iiff__ttiittllee__ddeesscc and $$ssyyssnnaammee.
+
+ As $$iiff__ttiittllee depends on $$iiff__ttiittllee__ddeesscc, it is possible to
+ indirectly control $$iiff__ttiittllee by using the command line option
+ ----iiff--ddeessccrr.
+
+ (HTML escaped variant: $$hhttmmll__iiff__ttiittllee)
+
+ $$iiff__ppoorrtt__nnaammee
+ If the host is a Cisco Catalyst LAN switch, this variable is the
+ name of that port. (No HTML escaped variant available)
+
+ $$iiff__pppp__ppoorrtt__nnaammee
+ If the host is a Nortel Passport LAN switch, this variable is the
+ name of that port. (No HTML escaped variant available)
+
+ $$ddeesscc__pprreeffiixx
+ This variable is a prefix of the description of what the target is
+ to use in the "Title[]" directive and in the H1 section of the
+ "PageTop[]". Default is "Traffic analysis for ". (HTML escaped
+ variant: $$hhttmmll__ddeesscc__pprreeffiixx)
+
+ $$iiff__ttiittllee__ddeesscc
+ This is the description of the interface normally used by cfgmaker
+ as part of the variable $$iiff__ttiittllee. The latter is used as the full
+ string in the "Title[]" directove and the H1 section in the
+ PageTop[].
+
+ $$iiff__ttiittllee__ddeesscc is controlled by the command line option ----iiff--ddeessccrr
+ which indirectly controls the contents of $$iiff__ttiittllee
+
+ (HTML escaped variant: $$hhttmmll__iiff__ttiittllee__ddeesscc)
+
+ _H_e_l_p _F_u_n_c_t_i_o_n_s _f_o_r _T_e_m_p_l_a_t_e_s
+
+ The following functions exists to facilitate the writing of host and
+ interface templates.
+
+ hhttmmll__eessccaappee((_ss_tt_rr_ii_nn_gg))
+ _hh_tt_mm_ll____ee_ss_cc_aa_pp_ee_((_)) takes a string as an argument and returns a new
+ string where the following substitutions has been done: the chars
+ "<", ">" and "&" are replaced by "&lt;", "&gt;" and "&amp;" and
+ that newlines embedded in the string are prepended with "<BR>" and
+ appended with a space character (newlines at the end of the string
+ are not touched).
+
+ ooiidd__ppiicckk(($$rroouutteerr__ccoonnnneecctt,,$$vv33oopptt,,""ooiidd11"",,""ooiidd22""......))
+ This function will try to poll each of the oids specified until it
+ is successful or has run out of oids. It will return the name of
+ the first oid that worked or undef if it is not successful
+
+ _E_x_a_m_p_l_e _T_e_m_p_l_a_t_e _F_i_l_e_s
+
+ Template Example 1: Eliminating Rejected Targets From Appearing
+
+ This template file generates exactly the same configuration code per
+ interface as cfgmaker does by default, with the exception that it
+ eliminates all lines (comments as well as config code) for an interface
+ if the interface happens to be rejected.
+
+ if(not $problem_lines)
+ {
+ $target_lines .= <<ECHO;
+
+ Target[$target_name]: $if_ref:$router_connect
+ SetEnv[$target_name]: MRTG_INT_IP="$if_ip" MRTG_INT_DESCR="$if_snmp_descr"
+ ECHO
+
+ if ($directory_name) {
+ $target_lines .= "Directory[$target_name]: $directory_name\n";
+ }
+
+ $target_lines .= <<ECHO;
+ MaxBytes[$target_name]: $if_speed
+ Title[$target_name]: $html_desc_prefix$html_if_title_desc -- $sysname
+ PageTop[$target_name]: <h1>$html_desc_prefix$html_if_title_desc -- $sysname</h1>
+ <div id="sysdetails">
+ <table>
+ <tr>
+ <td>System:</td>
+ <td>$sysname in $html_syslocation</td>
+ </tr>
+ <tr>
+ <td>Maintainer:</td>
+ <td>$html_syscontact</td>
+ </tr>
+ <tr>
+ <td>Description:</td>
+ <td>$html_if_description</td>
+ </tr>
+ <tr>
+ <td>ifType:</td>
+ <td>$html_if_type_desc ($if_type_num)</td>
+ </tr>
+ <tr>
+ <td>ifName:</td>
+ <td>$html_if_snmp_name</td>
+ </tr>
+ ECHO
+
+ $target_lines .= <<ECHO if defined $if_port_name;
+ <tr>
+ <td>Port Name:</td>
+ <td>$if_port_name</td>
+ </tr>
+ ECHO
+
+ $target_lines .= <<ECHO if defined $if_pp_port_name;
+ <tr>
+ <td>Port Name:</td>
+ <td>$if_pp_port_name</td>
+ </tr>
+ ECHO
+
+ $target_lines .= <<ECHO;
+ <tr>
+ <td>Max Speed:</td>
+ <td>$if_speed_str</td>
+ </tr>
+ ECHO
+
+ $target_lines .= <<ECHO if $if_ip;
+ <tr>
+ <td>Ip:</td>
+ <td>$if_ip ($if_dns_name)</td>
+ </tr>
+ ECHO
+
+ $target_lines .= <<ECHO;
+ </table>
+ </div>
+ ECHO
+ } else {
+ $head_lines="";
+ $problem_lines="";
+ $target_lines="";
+ $separator_lines="";
+ }
+
+ _T_e_m_p_l_a_t_e _E_x_a_m_p_l_e _2_: _S_i_m_p_l_i_e_r _V_e_r_s_i_o_n _o_f _E_x_a_m_p_l_e _1
+
+ Example 1 was partly intended to demonstrate how to customize the
+ generation of interface targets but also to provide a hint of how the
+ variables are used in the "default" template which one could consider
+ that cfgmaker normally uses.
+
+ If you're only intrested in the easiest way of entirely eliminating
+ those reject interfaces, the template below would do the job as well by
+ using $$ddeeffaauulltt__ttaarrggeett__lliinneess.
+
+ if($if_ok) {
+ $target_lines = $default_target_lines;
+ } else {
+ $head_lines="";
+ $problem_lines="";
+ $target_lines="";
+ $separator_lines="";
+ }
+
+ _T_e_m_p_l_a_t_e _E_x_a_m_p_l_e _3_: _C_r_e_a_t_i_n_g _C_P_U _T_a_r_g_e_t_s _f_o_r _H_o_s_t_s
+
+ Below is an example of a host template.
+
+ $head_lines .= <<ECHO;
+ #---------------------------------------------------------------------
+ ECHO
+
+ my $target_name = $router_name . ".cpu";
+
+ $target_lines .= <<ECHO;
+
+ YLegend[$target_name]: Percentage CPU load
+ ShortLegend[$target_name]: %
+ Legend1[$target_name]: CPU load in %
+ Legend2[$target_name]:
+ Legend3[$target_name]: Max Observed CPU load
+ Legend4[$target_name]:
+ LegendI[$target_name]: &nbsp;CPU Load:
+ LegendO[$target_name]:
+ WithPeak[$target_name]: ywm
+ MaxBytes[$target_name]: 100
+ Options[$target_name]: growright, gauge, nopercent
+ Title[$target_name]: $router_name CPU load
+ Target[$target_name]: 1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:$router_connect
+ PageTop[$target_name]: <h1>$router_name CPU load</h1>
+ <div>
+ <table>
+ <tr>
+ <td>System:</td>
+ <td>$router_name in $html_syslocation</td>
+ </tr>
+ <tr>
+ <td>Maintainer:</td>
+ <td>$html_syscontact</td>
+ </tr>
+ <tr>
+ <td>Description:</td>
+ <td>$html_sysdescr</td>
+ </tr>
+ <tr>
+ <td>Resource:</td>
+ <td>CPU.</td>
+ </tr>
+ </table>
+ </div>
+ ECHO
+
+EEXXAAMMPPLLEESS
+ The first example creates a config file for _r_o_u_t_e_r_._p_l_a_c_e_._x_y_z: the
+ router has the community name _p_u_b_l_i_c. Interfaces get identified by
+ their IP number. Two global options get added to the config file. The
+ config file gets redirected to _m_r_t_g_._c_o_n_f. The '\' signs at the end of
+ the line mean that this command should be written on a single line.
+
+ cfgmaker --global "WorkDir: /home/tobi" \
+ --global "Options[_]: growright,bits" \
+ --ifref=ip \
+ public@router.place.xyz > mrtg.cfg
+
+ Note: if cfgmaker is not in your path, but you are in the directory
+ where cfgmaker is stored, you can start it with ./cfgmaker
+
+ The next example creates a config file for four devices:
+ _r_o_u_t_e_r_1_._p_l_a_c_e_._x_y_z, _r_o_u_t_e_r_2_._p_l_a_c_e_._x_y_z, _s_w_i_t_c_h_1_._p_l_a_c_e_._x_y_z and
+ _s_w_i_t_c_h_2_._p_l_a_c_e_._x_y_z all with the community _p_u_b_l_i_c.
+
+ The two routers will have ----iiffrreeff set to ddeessccrr whilst the two switches
+ will use ----iiffrreeff set to nnaammee. Further the routers will use ----iiffddeesscc
+ set to aalliiaass and _s_w_i_t_c_h_1_._p_l_a_c_e_._x_y_z will use ----iiffddeesscc set to ddeessccrr
+ whilst _s_w_i_t_c_h_2_._p_l_a_c_e_._x_y_z use nnaammee instead.
+
+ Finally, there will be two Options lines inserted in the configuration:
+ One will be in the beginning, whilst the other will be inserted after
+ the lines related to the two routers but before those lines related to
+ the switches.
+
+ cfgmaker --global "WorkDir: /home/tobi" \
+ --global "Options[_]: growright,bits" \
+ --ifref=descr \
+ --ifdesc=alias \
+ public@router1.place.xyz \
+ public@router2.place.xyz \
+ --global "Options[_]: growright" \
+ --ifref=name \
+ --ifdesc=descr \
+ public@switch1.place.xyz \
+ --ifdesc=name \
+ public@switch2.place.xyz > mrtg.cfg
+
+ The next example demonstrates how to use the ----ccoommmmuunniittyy,
+ ----ssnnmmpp--ooppttiioonnss and ----ddnnss--ddoommaaiinn to make the command line simpler. All
+ the equipment will use the community _h_i_d_d_e_n, except for the ppp-server
+ which use community _a_c_c_e_s_s. All equipment uses these SNMP options: 11ss
+ ttiimmeeoouutt, 11 rreettrryy and SSNNMMPP vveerrssiioonn 22 (bbaacckkooffff and ppoorrtt is unspecified
+ which means they use the default values). The exception again is the
+ ppp-server which uses SSNNMMPP vveerrssiioonn 11. Finally, all the equipment is
+ part of the domain _p_l_a_c_e_._x_y_z, except for the ppp-server which is part
+ of the domain _r_e_m_o_t_e_._p_l_a_c_e_._x_y_z. Note that the latter is achieved
+ simply by specifying the name of the ppp-server to be _p_p_p_-_s_e_r_v_e_r_._rr_ee_mm_oo_tt_ee
+ .
+
+ cfgmaker --global "WorkDir: /home/tobi" \
+ --global "Options[_]: growright,bits" \
+ --dns-domain=place.xyz \
+ --community=hidden \
+ --snmp-options=::1:1::2 \
+ router1 \
+ router2 \
+ router3 \
+ router4 \
+ router5 \
+ switch1 \
+ switch2 \
+ switch3 \
+ switch4 \
+ switch5 \
+ switch6 \
+ switch7 \
+ access@ppp-server.remote:::::1 > mrtg.cfg
+
+SSEEEE AALLSSOO
+ mrtg-reference
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch> and Jakob Ilves
+ <jakob.ilves@oracle.com>
+
+LLIICCEENNSSEE
+ GNU General Public License
+
+CCOOPPYYRRIIGGHHTT
+ Cfgmaker is Copyright 2000 by Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 CFGMAKER(1)
diff --git a/doc/indexmaker.1 b/doc/indexmaker.1
new file mode 100644
index 0000000..ff71d0c
--- /dev/null
+++ b/doc/indexmaker.1
@@ -0,0 +1,307 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "INDEXMAKER 1"
+.TH INDEXMAKER 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+indexmaker \- Creates index files for mrtg web sites (mrtg\-2.17.7)
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+indexmaker [options] mrtg.cfg [other.cfg ...]
+.SH "OPTIONS"
+.IX Header "OPTIONS"
+.Vb 1
+\& \-\-output=filename set output filename (default: stdout)
+\&
+\& \-\-filter title=~regexp select targets by matching regexp against titles
+\& \-\-filter pagetop=~regexp select targets by matching regexp against pagetop
+\& \-\-filter name=~regexp select targets by matchin regexp against name
+\&
+\& \-\-addhead=text insert this text between </TITLE> and </HEAD>
+\& \-\-title=text set title of generated index file
+\& \-\-subtitle=text add a subtitle to the generated index file
+\& \-\-bodyopt=text set body tag options
+\& \-\-headlevel=number use <Hnumber> at top of page (default: 1)
+\& \-\-pagetop=text insert this text between <BODY> and <H1>...</H1>
+\& \-\-pageend=text insert this text after the main body
+\& \-\-pagetopend=text use this text for pagetop or pageend if undefined
+\& \-\-nolegend do not add the Mrtg legend at the end of the page
+\&
+\& \-\-columns=number show graphs in a table with x columns (default: 2)
+\& \-\-perhost show graphs of the same host on a row
+\& \-\-compact try to make a vertically more compact page
+\& \-\-optlog log the used command line in the page (default: log)
+\&
+\& \-\-sort=title sort graphs by title
+\& \-\-sort=name sort graphs by their name
+\& \-\-sort=descr sort graphs by their description
+\& \-\-sort=original leave as is (default)
+\&
+\& \-\-enumerate add a sequence number to the title of each graph
+\&
+\& \-\-picfirst place pictures before text (default: text first)
+\& \-\-width=number set width of graphs (default: not set)
+\& \-\-height=number
+\& \-\-sidebyside place text / pictures side by side (default: above/below)
+\& \-\-bold use bold text (default: bold)
+\& \-\-clicktext make the text link to the inner page (like the image)
+\&
+\& \-\-show=day pick which graph to show in the index (default)
+\& \-\-show=week
+\& \-\-show=month
+\& \-\-show=year
+\& \-\-show=none
+\&
+\& \-\-section=h1 h1 tag from pagetop as section heading (default)
+\& \-\-section=title title as section headings for graphs
+\& \-\-section=name graph name as section heading
+\& \-\-section=descr graph description as section heading
+\& \-\-section=ifname interface name (ifName) as section heading
+\& \-\-section=portname port name entry in pagetop as section heading
+\& \-\-sectionhost Try to prepend the host to the section heading if missing
+\&
+\& \-\-rrdviewer=path path to rrdviewer (default: /cgi\-bin/14all.cgi)
+\& \-\-icondir=path path to icondir
+\& \-\-prefix=path path from the location of the index.html to the graphs
+\& \-\-headeradd=string add string to the html page header
+\& \-\-autoprefix try to set prefix automatically
+\&
+\& \-\-<opt>\-file=file read string argument for option <opt> from file
+.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+\&\fBIndexmaker\fR can create web pages which display the status of an
+array of mrtg interface status pages.
+.IP "\fB\-\-output\fR \fIfilename\fR" 4
+.IX Item "--output filename"
+set output filename (default: stdout)
+.IP "\fB\-\-filter\fR (\fBtitle\fR|\fBpagetop\fR|\fBname\fR)(\fB=~\fR|\fB!~\fR)\fIregexp\fR" 4
+.IX Item "--filter (title|pagetop|name)(=~|!~)regexp"
+Several filters may get set. Each filter can match agains the contents
+of a specific section of the mrtg config file. \fBName\fR refers to the
+bit in square brackets (option[name]: bla).
+.Sp
+Depending on the match operator chosen (\fB=~\fR or \fB!~\fR) the match will be
+positive or negative.
+.Sp
+Note that some shells consider \fB!\fR a special character. It may be
+necessary to type \fB\e!~\fR instead.
+.IP "\fB\-\-title\fR \fItext\fR" 4
+.IX Item "--title text"
+Set title of generated index file (default: regexp)
+.IP "\fB\-\-bodyopt\fR \fItext\fR" 4
+.IX Item "--bodyopt text"
+The value of this argument gets appended to
+the <\s-1BODY\s0> tag. This allows you to set document colors.
+By default this option is set to
+.Sp
+.Vb 1
+\& bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000" alink="#000000"
+.Ve
+.IP "\fB\-\-columns\fR \fInumber\fR" 4
+.IX Item "--columns number"
+Display graphs in a table with \fInumber\fR columns (default: 2)
+.IP "\fB\-\-sort\fR \fBtitle\fR|\fBname\fR|\fBdescr\fR|\fBoriginal\fR" 4
+.IX Item "--sort title|name|descr|original"
+Sort the graphs in the page either by \fBtitle\fR, by \fBname\fR, by interface
+\&\fBdescr\fRiption, or leave them as is.
+.IP "\fB\-\-enumerate\fR" 4
+.IX Item "--enumerate"
+Add a sequence number to the title of each graph
+.IP "\fB\-\-width\fR \fInumber\fR" 4
+.IX Item "--width number"
+Set width of graphs
+.IP "\fB\-\-height\fR \fInumber\fR" 4
+.IX Item "--height number"
+Set the height of the graphs
+.IP "\fB\-\-show\fR \fBday\fR|\fBweek\fR|\fBmonth\fR|\fByear\fR|\fBnone\fR" 4
+.IX Item "--show day|week|month|year|none"
+Select which graph to show in the index page. You can supress images
+completely with \fB\-\-show=none\fR.
+.IP "\fB\-\-section\fR \fBh1\fR|\fBtitle\fR|\fBname\fR|\fBdescription\fR|\fBportname\fR" 4
+.IX Item "--section h1|title|name|description|portname"
+Select what to use as the title for each graph in the page. \fBh1\fR is
+the H1 section from pagetop, \fBtitle\fR is the graph title, \fBname\fR is
+the bit in square brackets (option[name]: bla), and \fBdescr\fR or
+\&\fBdescription\fR is the text from the Description field of the PageTop
+(the Cisco description text if it's available, otherwise just the
+interface description). \fBportname\fR is the \f(CW\*(C`Port Name:\*(C'\fR from pagetop.
+.IP "\fB\-\-sectionhost\fR" 4
+.IX Item "--sectionhost"
+Extract the hostname from the target line (this does not work if the
+target is a mathematial expression). Prepend the hostname (and a colon)
+to the section if not already present.
+.IP "\fB\-\-rrdviewer\fR \fIpath\fR" 4
+.IX Item "--rrdviewer path"
+If you have set the \fBLogFormat: rrdtool\fR property in the mrtg.cfg
+file, the index will take this into account. The only thing you must
+tell it is the path to your grapher cgi. (default: /cgi\-bin/14all.cgi)
+.IP "\fB\-\-prefix\fR \fIpath\fR" 4
+.IX Item "--prefix path"
+By default we assume that the file generated by indexmaker is stored in
+\&\fIWorkDir\fR. If you want to store it somewhere else, specify how to reach
+\&\fIWorkDir\fR from the place where the Index is stored. Note that you have to
+use '/' as path separator as this will be used in urls. Speaking of which,
+you can even enter a whole url.
+.IP "\fB\-\-autoprefix\fR \fIpath\fR" 4
+.IX Item "--autoprefix path"
+Requires \-\-output.
+Try to generate the prefix automatically by comparision of the path to the
+output file set with \-\-output and the Htmldir set in the configuration files.
+Particulary useful when multiple configuration files are specified, with
+different Htmldir settings.
+.IP "\fB\-\-optlog\fR" 4
+.IX Item "--optlog"
+Default is logging in the generated page the command line, suppress with
+\&\-\-nooptlog . Useful if the commandline contains a complex \-\-pagetop=string
+which could confuse simple browsers.
+.IP "\fB\-\-someoption\-file\fR \fIfilename\fR" 4
+.IX Item "--someoption-file filename"
+For any someoption which takes a \fIstring\fR as parameter you can read the
+string from a file by adding <\-file> to the option keyword. The whole
+content of the file will be read and used as the \fIstring\fR. The file must
+exist.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
+.SH "LICENSE"
+.IX Header "LICENSE"
+\&\s-1GNU\s0 General Public License
+.SH "COPYRIGHT"
+.IX Header "COPYRIGHT"
+2000\-2001 Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/indexmaker.pod b/doc/indexmaker.pod
new file mode 120000
index 0000000..6c4a442
--- /dev/null
+++ b/doc/indexmaker.pod
@@ -0,0 +1 @@
+../bin/indexmaker \ No newline at end of file
diff --git a/doc/indexmaker.txt b/doc/indexmaker.txt
new file mode 100644
index 0000000..8fd91be
--- /dev/null
+++ b/doc/indexmaker.txt
@@ -0,0 +1,173 @@
+INDEXMAKER(1) mrtg INDEXMAKER(1)
+
+
+
+NNAAMMEE
+ indexmaker - Creates index files for mrtg web sites (mrtg-2.17.7)
+
+SSYYNNOOPPSSIISS
+ indexmaker [options] mrtg.cfg [other.cfg ...]
+
+OOPPTTIIOONNSS
+ --output=filename set output filename (default: stdout)
+
+ --filter title=~regexp select targets by matching regexp against titles
+ --filter pagetop=~regexp select targets by matching regexp against pagetop
+ --filter name=~regexp select targets by matchin regexp against name
+
+ --addhead=text insert this text between </TITLE> and </HEAD>
+ --title=text set title of generated index file
+ --subtitle=text add a subtitle to the generated index file
+ --bodyopt=text set body tag options
+ --headlevel=number use <Hnumber> at top of page (default: 1)
+ --pagetop=text insert this text between <BODY> and <H1>...</H1>
+ --pageend=text insert this text after the main body
+ --pagetopend=text use this text for pagetop or pageend if undefined
+ --nolegend do not add the Mrtg legend at the end of the page
+
+ --columns=number show graphs in a table with x columns (default: 2)
+ --perhost show graphs of the same host on a row
+ --compact try to make a vertically more compact page
+ --optlog log the used command line in the page (default: log)
+
+ --sort=title sort graphs by title
+ --sort=name sort graphs by their name
+ --sort=descr sort graphs by their description
+ --sort=original leave as is (default)
+
+ --enumerate add a sequence number to the title of each graph
+
+ --picfirst place pictures before text (default: text first)
+ --width=number set width of graphs (default: not set)
+ --height=number
+ --sidebyside place text / pictures side by side (default: above/below)
+ --bold use bold text (default: bold)
+ --clicktext make the text link to the inner page (like the image)
+
+ --show=day pick which graph to show in the index (default)
+ --show=week
+ --show=month
+ --show=year
+ --show=none
+
+ --section=h1 h1 tag from pagetop as section heading (default)
+ --section=title title as section headings for graphs
+ --section=name graph name as section heading
+ --section=descr graph description as section heading
+ --section=ifname interface name (ifName) as section heading
+ --section=portname port name entry in pagetop as section heading
+ --sectionhost Try to prepend the host to the section heading if missing
+
+ --rrdviewer=path path to rrdviewer (default: /cgi-bin/14all.cgi)
+ --icondir=path path to icondir
+ --prefix=path path from the location of the index.html to the graphs
+ --headeradd=string add string to the html page header
+ --autoprefix try to set prefix automatically
+
+ --<opt>-file=file read string argument for option <opt> from file
+
+DDEESSCCRRIIPPTTIIOONN
+ IInnddeexxmmaakkeerr can create web pages which display the status of an array of
+ mrtg interface status pages.
+
+ ----oouuttppuutt _f_i_l_e_n_a_m_e
+ set output filename (default: stdout)
+
+ ----ffiilltteerr (ttiittllee|ppaaggeettoopp|nnaammee)(==~~|!!~~)_r_e_g_e_x_p
+ Several filters may get set. Each filter can match agains the
+ contents of a specific section of the mrtg config file. NNaammee refers
+ to the bit in square brackets (option[name]: bla).
+
+ Depending on the match operator chosen (==~~ or !!~~) the match will be
+ positive or negative.
+
+ Note that some shells consider !! a special character. It may be
+ necessary to type \\!!~~ instead.
+
+ ----ttiittllee _t_e_x_t
+ Set title of generated index file (default: regexp)
+
+ ----bbooddyyoopptt _t_e_x_t
+ The value of this argument gets appended to the <BODY> tag. This
+ allows you to set document colors. By default this option is set
+ to
+
+ bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000" alink="#000000"
+
+ ----ccoolluummnnss _n_u_m_b_e_r
+ Display graphs in a table with _n_u_m_b_e_r columns (default: 2)
+
+ ----ssoorrtt ttiittllee|nnaammee|ddeessccrr|oorriiggiinnaall
+ Sort the graphs in the page either by ttiittllee, by nnaammee, by interface
+ ddeessccrription, or leave them as is.
+
+ ----eennuummeerraattee
+ Add a sequence number to the title of each graph
+
+ ----wwiiddtthh _n_u_m_b_e_r
+ Set width of graphs
+
+ ----hheeiigghhtt _n_u_m_b_e_r
+ Set the height of the graphs
+
+ ----sshhooww ddaayy|wweeeekk|mmoonntthh|yyeeaarr|nnoonnee
+ Select which graph to show in the index page. You can supress
+ images completely with ----sshhooww==nnoonnee.
+
+ ----sseeccttiioonn hh11|ttiittllee|nnaammee|ddeessccrriippttiioonn|ppoorrttnnaammee
+ Select what to use as the title for each graph in the page. hh11 is
+ the H1 section from pagetop, ttiittllee is the graph title, nnaammee is the
+ bit in square brackets (option[name]: bla), and ddeessccrr or
+ ddeessccrriippttiioonn is the text from the Description field of the PageTop
+ (the Cisco description text if it's available, otherwise just the
+ interface description). ppoorrttnnaammee is the "Port Name:" from pagetop.
+
+ ----sseeccttiioonnhhoosstt
+ Extract the hostname from the target line (this does not work if
+ the target is a mathematial expression). Prepend the hostname (and
+ a colon) to the section if not already present.
+
+ ----rrrrddvviieewweerr _p_a_t_h
+ If you have set the LLooggFFoorrmmaatt:: rrrrddttooooll property in the mrtg.cfg
+ file, the index will take this into account. The only thing you
+ must tell it is the path to your grapher cgi. (default:
+ /cgi-bin/14all.cgi)
+
+ ----pprreeffiixx _p_a_t_h
+ By default we assume that the file generated by indexmaker is
+ stored in _W_o_r_k_D_i_r. If you want to store it somewhere else,
+ specify how to reach _W_o_r_k_D_i_r from the place where the Index is
+ stored. Note that you have to use '/' as path separator as this
+ will be used in urls. Speaking of which, you can even enter a whole
+ url.
+
+ ----aauuttoopprreeffiixx _p_a_t_h
+ Requires --output. Try to generate the prefix automatically by
+ comparision of the path to the output file set with --output and
+ the Htmldir set in the configuration files. Particulary useful
+ when multiple configuration files are specified, with different
+ Htmldir settings.
+
+ ----ooppttlloogg
+ Default is logging in the generated page the command line, suppress
+ with --nooptlog . Useful if the commandline contains a complex
+ --pagetop=string which could confuse simple browsers.
+
+ ----ssoommeeooppttiioonn--ffiillee _f_i_l_e_n_a_m_e
+ For any someoption which takes a _s_t_r_i_n_g as parameter you can read
+ the string from a file by adding <-file> to the option keyword. The
+ whole content of the file will be read and used as the _s_t_r_i_n_g. The
+ file must exist.
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+LLIICCEENNSSEE
+ GNU General Public License
+
+CCOOPPYYRRIIGGHHTT
+ 2000-2001 Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 INDEXMAKER(1)
diff --git a/doc/mrtg-contrib.1 b/doc/mrtg-contrib.1
new file mode 100644
index 0000000..18955c9
--- /dev/null
+++ b/doc/mrtg-contrib.1
@@ -0,0 +1,199 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-CONTRIB 1"
+.TH MRTG-CONTRIB 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-contrib \- Contribution Guidelines for MRTG
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+If you have written an extension to mrtg or created a bug fix, please
+consider contributing it to the project. As I get quite a number of
+contributions every week, here are a few guidelines which explain how to
+contribute so that I can use the contribution without too much additional
+work.
+.SS "Translations"
+.IX Subsection "Translations"
+\&\s-1MRTG\s0 messages have been translated to a number of languages but there are
+still many which have not been covered yet. If you want to add yours, go
+into the \fImrtg\-2.17.7/translate\fR directory and follow the instructions
+given in the \fI\s-1README\s0\fR file.
+.SS "Patches"
+.IX Subsection "Patches"
+When you have created your modification or extension to mrtg and want to
+submit it to me, please crate a patch for the files which you have modified.
+Do not send entire files unless they are new.
+.PP
+To create a patch, get hold of a copy of \s-1GNU\s0 diff (Many Unix systems will
+have this installed already. In the \s-1NT\s0 world you might want to get
+http://sources.redhat.com/cygwin/ to get all the nice \s-1GNU\s0 tools available.)
+and type
+.PP
+.Vb 1
+\& diff \-\-unified \-\-ignore\-space\-change old\-file new\-file > simple.patch
+.Ve
+.PP
+or if you have modified several files do
+.PP
+.Vb 1
+\& diff \-\-recursive \-\-unified \-\-ignore\-space\-change old\-dir/ new\-dir/ >long.patch
+.Ve
+.SS "Documentation"
+.IX Subsection "Documentation"
+All documentation of mrtg is done with the perl \fB\s-1POD\s0\fR system. If you want to
+learn about it, type
+.PP
+.Vb 1
+\& perldoc perlpod
+.Ve
+.PP
+and read the instructions. If you have bugfixes or additions to the existing
+documents, make sure you modify the \fB\s-1POD\s0\fR files and not the html or txt
+versions.
+.PP
+I take documentation very seriously. Whenever you create a new feature for
+mrtg which you want to get included in the official release, your patch must
+also contain modifications for the relevant \fBpod\fR file in the \fIdoc\fR tree or
+for the documentation sections of \fIcfgmaker\fR and \fIindexmaker\fR.
+.SH "ADDRESS"
+.IX Header "ADDRESS"
+Send your patches, translations and contributions to Tobias Oetiker
+<tobi@oetiker.ch>
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-contrib.pod b/doc/mrtg-contrib.pod
new file mode 100644
index 0000000..f4afa6a
--- /dev/null
+++ b/doc/mrtg-contrib.pod
@@ -0,0 +1,60 @@
+=head1 NAME
+
+mrtg-contrib - Contribution Guidelines for MRTG
+
+=head1 DESCRIPTION
+
+If you have written an extension to mrtg or created a bug fix, please
+consider contributing it to the project. As I get quite a number of
+contributions every week, here are a few guidelines which explain how to
+contribute so that I can use the contribution without too much additional
+work.
+
+=head2 Translations
+
+MRTG messages have been translated to a number of languages but there are
+still many which have not been covered yet. If you want to add yours, go
+into the F<mrtg-2.17.7/translate> directory and follow the instructions
+given in the F<README> file.
+
+=head2 Patches
+
+When you have created your modification or extension to mrtg and want to
+submit it to me, please crate a patch for the files which you have modified.
+Do not send entire files unless they are new.
+
+To create a patch, get hold of a copy of GNU diff (Many Unix systems will
+have this installed already. In the NT world you might want to get
+http://sources.redhat.com/cygwin/ to get all the nice GNU tools available.)
+and type
+
+ diff --unified --ignore-space-change old-file new-file > simple.patch
+
+or if you have modified several files do
+
+ diff --recursive --unified --ignore-space-change old-dir/ new-dir/ >long.patch
+
+=head2 Documentation
+
+All documentation of mrtg is done with the perl B<POD> system. If you want to
+learn about it, type
+
+ perldoc perlpod
+
+and read the instructions. If you have bugfixes or additions to the existing
+documents, make sure you modify the B<POD> files and not the html or txt
+versions.
+
+I take documentation very seriously. Whenever you create a new feature for
+mrtg which you want to get included in the official release, your patch must
+also contain modifications for the relevant B<pod> file in the F<doc> tree or
+for the documentation sections of F<cfgmaker> and F<indexmaker>.
+
+=head1 ADDRESS
+
+Send your patches, translations and contributions to Tobias Oetiker
+E<lt>tobi@oetiker.chE<gt>
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
diff --git a/doc/mrtg-contrib.txt b/doc/mrtg-contrib.txt
new file mode 100644
index 0000000..7bce5de
--- /dev/null
+++ b/doc/mrtg-contrib.txt
@@ -0,0 +1,61 @@
+MRTG-CONTRIB(1) mrtg MRTG-CONTRIB(1)
+
+
+
+NNAAMMEE
+ mrtg-contrib - Contribution Guidelines for MRTG
+
+DDEESSCCRRIIPPTTIIOONN
+ If you have written an extension to mrtg or created a bug fix, please
+ consider contributing it to the project. As I get quite a number of
+ contributions every week, here are a few guidelines which explain how
+ to contribute so that I can use the contribution without too much
+ additional work.
+
+ TTrraannssllaattiioonnss
+ MRTG messages have been translated to a number of languages but there
+ are still many which have not been covered yet. If you want to add
+ yours, go into the _m_r_t_g_-_2_._1_7_._7_/_t_r_a_n_s_l_a_t_e directory and follow the
+ instructions given in the _R_E_A_D_M_E file.
+
+ PPaattcchheess
+ When you have created your modification or extension to mrtg and want
+ to submit it to me, please crate a patch for the files which you have
+ modified. Do not send entire files unless they are new.
+
+ To create a patch, get hold of a copy of GNU diff (Many Unix systems
+ will have this installed already. In the NT world you might want to get
+ http://sources.redhat.com/cygwin/ to get all the nice GNU tools
+ available.) and type
+
+ diff --unified --ignore-space-change old-file new-file > simple.patch
+
+ or if you have modified several files do
+
+ diff --recursive --unified --ignore-space-change old-dir/ new-dir/ >long.patch
+
+ DDooccuummeennttaattiioonn
+ All documentation of mrtg is done with the perl PPOODD system. If you want
+ to learn about it, type
+
+ perldoc perlpod
+
+ and read the instructions. If you have bugfixes or additions to the
+ existing documents, make sure you modify the PPOODD files and not the html
+ or txt versions.
+
+ I take documentation very seriously. Whenever you create a new feature
+ for mrtg which you want to get included in the official release, your
+ patch must also contain modifications for the relevant ppoodd file in the
+ _d_o_c tree or for the documentation sections of _c_f_g_m_a_k_e_r and _i_n_d_e_x_m_a_k_e_r.
+
+AADDDDRREESSSS
+ Send your patches, translations and contributions to Tobias Oetiker
+ <tobi@oetiker.ch>
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-CONTRIB(1)
diff --git a/doc/mrtg-faq.1 b/doc/mrtg-faq.1
new file mode 100644
index 0000000..2c783da
--- /dev/null
+++ b/doc/mrtg-faq.1
@@ -0,0 +1,232 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-FAQ 1"
+.TH MRTG-FAQ 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-faq \- How to get help if you have problems with MRTG
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+\&\s-1MRTG\s0 seems to raise a lot of questions. There are a number of resources
+apart from the documentation where you can find help for mrtg.
+.SH "FAQ"
+.IX Header "FAQ"
+In the following sections you'll find some additonal Frequently Asked Questions, with Answers.
+.ie n .SS "Why is there no ""@#$%"" (my native language) version of \s-1MRTG\s0?"
+.el .SS "Why is there no ``@#$%'' (my native language) version of \s-1MRTG\s0?"
+.IX Subsection "Why is there no @#$% (my native language) version of MRTG?"
+Nobody has contributed a \fI@#$%.pmd\fR file yet. Go into the
+\&\fImrtg\-2.17.7/translate\fR directory and create your own translation file.
+When you are happy with it send it to me for inclusion with the next mrtg
+release.
+.SS "I need a script to make mrtg work with my xyz device."
+.IX Subsection "I need a script to make mrtg work with my xyz device."
+Probably this has already been done. Check the stuff in the
+\&\fImrtg\-2.17.7/contrib\fR directory. There is a file called \fI00INDEX\fR in
+that directory which tells what you can find in there.
+.SS "How does this \s-1SNMP\s0 thing work"
+.IX Subsection "How does this SNMP thing work"
+There are many resources on the net that explain \s-1SNMP.\s0
+Take a look at this article from the Linux Journal by David Guerrero
+.PP
+.Vb 1
+\& http://www.david\-guerrero.com/papers/snmp/
+.Ve
+.PP
+And at this rather long document from \s-1CISCO.\s0
+.PP
+.Vb 1
+\& http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
+.Ve
+.SS "The images created by \s-1MRTG\s0 look very strange."
+.IX Subsection "The images created by MRTG look very strange."
+Remove the *\-{week,day,month,year}.png files and start \s-1MRTG\s0
+again. Using \s-1MRTG\s0 for the first time, you might have to do this
+twice. This will also help when you introduce new routers into the cfg
+file.
+.SS "What is my Community Name?"
+.IX Subsection "What is my Community Name?"
+Ask the person in charge of your Router or try 'public', as this is the
+default Community Name.
+.SS "My graphs show a flat line during an outage. Why ?"
+.IX Subsection "My graphs show a flat line during an outage. Why ?"
+Well, the short answer is that when an \s-1SNMP\s0 query goes out
+and a response doesn't come back, \s-1MRTG\s0 has to assume something to put
+in the graph, and by default it assumes that the last answer we got
+back is probably closer to the truth than zero. This assumption is
+not perfect (as you have noticed). It's a trade-off that happens to
+fail during a total outage.
+.PP
+If this is an unacceptable trade-off, use the \fBunknaszero\fR option.
+.PP
+You may want to know what you're trading off, so in the spirit of
+trade-offs, here's the long answer:
+.PP
+The problem is that \s-1MRTG\s0 doesn't know *why* the data didn't come back, all
+it knows is that it didn't come back. It has to do something, and it
+assumes it's a stray lost packet rather than an outage.
+.PP
+Why don't we always assume the circuit is down and use zero, which will
+(we think) be more nearly right? Well, it turns out that you may be
+taking advantage of \s-1MRTG\s0's \*(L"assume last\*(R" behaviour without being aware of
+it.
+.PP
+\&\s-1MRTG\s0 uses \s-1SNMP \s0(Simple Network Management Protocol) to collect data, and
+\&\s-1SNMP\s0 uses \s-1UDP \s0(User Datagram Protocol) to ship packets around. \s-1UDP\s0 is
+connectionless (not guaranteed) unlike \s-1TCP\s0 where packets are tracked and
+acknowledged and, if needed, retransmitted. \s-1UDP\s0 just throws
+packets at the network and hopes they arrive. Sometimes they don't.
+.PP
+One likely cause of lost \s-1SNMP\s0 data is congestion; another is busy routers.
+Other possibilities include transient telecommunications problems, router
+buffer overflows (which may or may not be congestion-related), \*(L"dirty
+lines\*(R" (links with high error rates), and acts of God. These things
+happen all the time; we just don't notice because many interactive
+services are TCP-based and the lost packets get retransmitted
+automatically.
+.PP
+In the above cases where some \s-1SNMP\s0 packets are lost but traffic is
+flowing, assuming zero is the wrong thing to do \- you end up with a graph
+that looks like it's missing teeth whenever the link fills up. \s-1MRTG\s0
+interpolates the lost data to produce a smoother graph which is more
+accurate in cases of intermittent packet loss. But with V2.8.4 and above,
+you can use the \*(L"unknaszero\*(R" option to produce whichever graph is best
+under the conditions typical for your network.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-faq.pod b/doc/mrtg-faq.pod
new file mode 100644
index 0000000..b28f6e1
--- /dev/null
+++ b/doc/mrtg-faq.pod
@@ -0,0 +1,101 @@
+=head1 NAME
+
+mrtg-faq - How to get help if you have problems with MRTG
+
+=head1 SYNOPSIS
+
+MRTG seems to raise a lot of questions. There are a number of resources
+apart from the documentation where you can find help for mrtg.
+
+=head1 FAQ
+
+In the following sections you'll find some additonal Frequently Asked Questions, with Answers.
+
+=head2 Why is there no "@#$%" (my native language) version of MRTG?
+
+Nobody has contributed a F<@#$%.pmd> file yet. Go into the
+F<mrtg-2.17.7/translate> directory and create your own translation file.
+When you are happy with it send it to me for inclusion with the next mrtg
+release.
+
+
+=head2 I need a script to make mrtg work with my xyz device.
+
+Probably this has already been done. Check the stuff in the
+F<mrtg-2.17.7/contrib> directory. There is a file called F<00INDEX> in
+that directory which tells what you can find in there.
+
+=head2 How does this SNMP thing work
+
+There are many resources on the net that explain SNMP.
+Take a look at this article from the Linux Journal by David Guerrero
+
+ http://www.david-guerrero.com/papers/snmp/
+
+And at this rather long document from CISCO.
+
+ http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
+
+
+=head2 The images created by MRTG look very strange.
+
+Remove the *-{week,day,month,year}.png files and start MRTG
+again. Using MRTG for the first time, you might have to do this
+twice. This will also help when you introduce new routers into the cfg
+file.
+
+=head2 What is my Community Name?
+
+Ask the person in charge of your Router or try 'public', as this is the
+default Community Name.
+
+
+=head2 My graphs show a flat line during an outage. Why ?
+
+Well, the short answer is that when an SNMP query goes out
+and a response doesn't come back, MRTG has to assume something to put
+in the graph, and by default it assumes that the last answer we got
+back is probably closer to the truth than zero. This assumption is
+not perfect (as you have noticed). It's a trade-off that happens to
+fail during a total outage.
+
+If this is an unacceptable trade-off, use the B<unknaszero> option.
+
+You may want to know what you're trading off, so in the spirit of
+trade-offs, here's the long answer:
+
+
+The problem is that MRTG doesn't know *why* the data didn't come back, all
+it knows is that it didn't come back. It has to do something, and it
+assumes it's a stray lost packet rather than an outage.
+
+Why don't we always assume the circuit is down and use zero, which will
+(we think) be more nearly right? Well, it turns out that you may be
+taking advantage of MRTG's "assume last" behaviour without being aware of
+it.
+
+MRTG uses SNMP (Simple Network Management Protocol) to collect data, and
+SNMP uses UDP (User Datagram Protocol) to ship packets around. UDP is
+connectionless (not guaranteed) unlike TCP where packets are tracked and
+acknowledged and, if needed, retransmitted. UDP just throws
+packets at the network and hopes they arrive. Sometimes they don't.
+
+One likely cause of lost SNMP data is congestion; another is busy routers.
+Other possibilities include transient telecommunications problems, router
+buffer overflows (which may or may not be congestion-related), "dirty
+lines" (links with high error rates), and acts of God. These things
+happen all the time; we just don't notice because many interactive
+services are TCP-based and the lost packets get retransmitted
+automatically.
+
+In the above cases where some SNMP packets are lost but traffic is
+flowing, assuming zero is the wrong thing to do - you end up with a graph
+that looks like it's missing teeth whenever the link fills up. MRTG
+interpolates the lost data to produce a smoother graph which is more
+accurate in cases of intermittent packet loss. But with V2.8.4 and above,
+you can use the "unknaszero" option to produce whichever graph is best
+under the conditions typical for your network.
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
diff --git a/doc/mrtg-faq.txt b/doc/mrtg-faq.txt
new file mode 100644
index 0000000..d12325b
--- /dev/null
+++ b/doc/mrtg-faq.txt
@@ -0,0 +1,95 @@
+MRTG-FAQ(1) mrtg MRTG-FAQ(1)
+
+
+
+NNAAMMEE
+ mrtg-faq - How to get help if you have problems with MRTG
+
+SSYYNNOOPPSSIISS
+ MRTG seems to raise a lot of questions. There are a number of resources
+ apart from the documentation where you can find help for mrtg.
+
+FFAAQQ
+ In the following sections you'll find some additonal Frequently Asked
+ Questions, with Answers.
+
+ WWhhyy iiss tthheerree nnoo ""@@##$$%%"" ((mmyy nnaattiivvee llaanngguuaaggee)) vveerrssiioonn ooff MMRRTTGG??
+ Nobody has contributed a _@_#_$_%_._p_m_d file yet. Go into the
+ _m_r_t_g_-_2_._1_7_._7_/_t_r_a_n_s_l_a_t_e directory and create your own translation file.
+ When you are happy with it send it to me for inclusion with the next
+ mrtg release.
+
+ II nneeeedd aa ssccrriipptt ttoo mmaakkee mmrrttgg wwoorrkk wwiitthh mmyy xxyyzz ddeevviiccee..
+ Probably this has already been done. Check the stuff in the
+ _m_r_t_g_-_2_._1_7_._7_/_c_o_n_t_r_i_b directory. There is a file called _0_0_I_N_D_E_X in that
+ directory which tells what you can find in there.
+
+ HHooww ddooeess tthhiiss SSNNMMPP tthhiinngg wwoorrkk
+ There are many resources on the net that explain SNMP. Take a look at
+ this article from the Linux Journal by David Guerrero
+
+ http://www.david-guerrero.com/papers/snmp/
+
+ And at this rather long document from CISCO.
+
+ http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm
+
+ TThhee iimmaaggeess ccrreeaatteedd bbyy MMRRTTGG llooookk vveerryy ssttrraannggee..
+ Remove the *-{week,day,month,year}.png files and start MRTG again.
+ Using MRTG for the first time, you might have to do this twice. This
+ will also help when you introduce new routers into the cfg file.
+
+ WWhhaatt iiss mmyy CCoommmmuunniittyy NNaammee??
+ Ask the person in charge of your Router or try 'public', as this is the
+ default Community Name.
+
+ MMyy ggrraapphhss sshhooww aa ffllaatt lliinnee dduurriinngg aann oouuttaaggee.. WWhhyy ??
+ Well, the short answer is that when an SNMP query goes out and a
+ response doesn't come back, MRTG has to assume something to put in the
+ graph, and by default it assumes that the last answer we got back is
+ probably closer to the truth than zero. This assumption is not perfect
+ (as you have noticed). It's a trade-off that happens to fail during a
+ total outage.
+
+ If this is an unacceptable trade-off, use the uunnkknnaasszzeerroo option.
+
+ You may want to know what you're trading off, so in the spirit of
+ trade-offs, here's the long answer:
+
+ The problem is that MRTG doesn't know *why* the data didn't come back,
+ all it knows is that it didn't come back. It has to do something, and
+ it assumes it's a stray lost packet rather than an outage.
+
+ Why don't we always assume the circuit is down and use zero, which will
+ (we think) be more nearly right? Well, it turns out that you may be
+ taking advantage of MRTG's "assume last" behaviour without being aware
+ of it.
+
+ MRTG uses SNMP (Simple Network Management Protocol) to collect data,
+ and SNMP uses UDP (User Datagram Protocol) to ship packets around. UDP
+ is connectionless (not guaranteed) unlike TCP where packets are tracked
+ and acknowledged and, if needed, retransmitted. UDP just throws
+ packets at the network and hopes they arrive. Sometimes they don't.
+
+ One likely cause of lost SNMP data is congestion; another is busy
+ routers. Other possibilities include transient telecommunications
+ problems, router buffer overflows (which may or may not be congestion-
+ related), "dirty lines" (links with high error rates), and acts of God.
+ These things happen all the time; we just don't notice because many
+ interactive services are TCP-based and the lost packets get
+ retransmitted automatically.
+
+ In the above cases where some SNMP packets are lost but traffic is
+ flowing, assuming zero is the wrong thing to do - you end up with a
+ graph that looks like it's missing teeth whenever the link fills up.
+ MRTG interpolates the lost data to produce a smoother graph which is
+ more accurate in cases of intermittent packet loss. But with V2.8.4
+ and above, you can use the "unknaszero" option to produce whichever
+ graph is best under the conditions typical for your network.
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-FAQ(1)
diff --git a/doc/mrtg-forum.1 b/doc/mrtg-forum.1
new file mode 100644
index 0000000..77b2980
--- /dev/null
+++ b/doc/mrtg-forum.1
@@ -0,0 +1,267 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-FORUM 1"
+.TH MRTG-FORUM 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-forum \- Interactive Help for MRTG users
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+There is a lot of written documentation for mrtg, but nevertheless you may
+have a problem where you can't find the solution.
+In this case some Human Help may be necessary. With \s-1MRTG\s0 there are several
+ways to get Humans to help you.
+.SH "MAILING-LIST"
+.IX Header "MAILING-LIST"
+There are three mailing lists for \s-1MRTG\s0 available.
+.IP "mrtg" 4
+.IX Item "mrtg"
+for discussion among mrtg users.
+.IP "mrtg-announce" 4
+.IX Item "mrtg-announce"
+for announcements regarding new versions of mrtg related software.
+.IP "mrtg-developers" 4
+.IX Item "mrtg-developers"
+for discussion among people who write software in connection with mrtg or
+who hack mrtg itself.
+.SS "\s-1THE RULES\s0"
+.IX Subsection "THE RULES"
+Please note that the memebers of the mrtg mailinglist value politeness
+highly. This means behave in a way you would like others to behave
+towards you.
+.IP "\(bu" 4
+No shouting. (\s-1NO CAPS\s0)
+.IP "\(bu" 4
+No rude language
+.IP "\(bu" 4
+No demands. everybody is on the list out of their own free will. If
+you do not get an answer to your question, chances are high that you
+did not give sufficent details about the nature of your problem or
+that the answer to your problem is in the documentation.
+.IP "\(bu" 4
+If you do not follow the rules you will be unsubscribed from the list
+with no further questions asked.
+.IP "\(bu" 4
+Decisions about your unsubscription from the list will be taken by
+.Sp
+.Vb 2
+\& Alex van den Bogaerdt <alex at ergens.op.het.net>
+\& Paul C. Williamson <pwilliamson at MANDTBANK.COM>
+.Ve
+.Sp
+If you feel that you have been treated unfairly, you may send mail to
+me and explain the situation.
+.Sp
+.Vb 1
+\& Tobi Oetiker <tobi@oetiker.ch>
+.Ve
+.SS "\s-1SUBSCRIBING\s0"
+.IX Subsection "SUBSCRIBING"
+These lists are managed by a mailing-list management program (listar).
+It allows you to subscribe to these lists by sending a message with the
+subject: \fBsubscribe\fR to the following address:
+.PP
+.Vb 1
+\& listname\-request@lists.oetiker.ch
+.Ve
+.PP
+You will then get a message asking you to confirm your subscription.
+.PP
+For posting to the lists use the following address
+.PP
+.Vb 1
+\& listname@lists.oetiker.ch
+.Ve
+.PP
+Note that only people who are subscribed to the list can post.
+.PP
+Further information about the usage of the mailing lists is
+available by sending a message with the subject line \fBhelp\fR to
+either one of the request addresses.
+.PP
+There is also a webinterface to the lists on
+.PP
+.Vb 1
+\& http://lists.oetiker.ch
+.Ve
+.PP
+List archives are on
+.PP
+.Vb 1
+\& http://www.mail\-archive.com/index.php?hunt=mrtg
+.Ve
+.PP
+and
+.PP
+.Vb 1
+\& http://gmane.org/find.php?list=mrtg
+.Ve
+.SH "NEWSGROUP"
+.IX Header "NEWSGROUP"
+For discussion of \s-1MRTG\s0 or related topics on the Usenet, please send your
+posts to:
+.PP
+.Vb 1
+\& news:comp.dcom.net\-management
+.Ve
+.PP
+Many \s-1MRTG\s0 users are in this forum and will help you. You can also find
+an archive of past activity from this Newsgroup on:
+.PP
+.Vb 1
+\& http://groups.google.com/group/comp.dcom.net\-management
+.Ve
+.SH "IRC Channel"
+.IX Header "IRC Channel"
+For discussion of \s-1MRTG\s0 and related topics on \s-1IRC,\s0 the `#mrtg' channel on
+EFNet has been created.
+.PP
+More information can be found at
+.PP
+.Vb 1
+\& http://mrtg.easymac.org
+.Ve
+.SH "MRTG Japan"
+.IX Header "MRTG Japan"
+There is a special Mailinglist for \s-1MRTG\s0 Users in Japan. It carries
+translations of the traffic from MRTG-ANNOUNCE as well as updates on the
+Japanese Translation of the \s-1MRTG\s0 documentation. Go to
+http://www.mrtg.jp/ for further Information.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch> and many contributors
diff --git a/doc/mrtg-forum.pod b/doc/mrtg-forum.pod
new file mode 100644
index 0000000..954c9b9
--- /dev/null
+++ b/doc/mrtg-forum.pod
@@ -0,0 +1,138 @@
+=head1 NAME
+
+mrtg-forum - Interactive Help for MRTG users
+
+=head1 SYNOPSIS
+
+There is a lot of written documentation for mrtg, but nevertheless you may
+have a problem where you can't find the solution.
+In this case some Human Help may be necessary. With MRTG there are several
+ways to get Humans to help you.
+
+=head1 MAILING-LIST
+
+There are three mailing lists for MRTG available.
+
+=over
+
+=item mrtg
+
+for discussion among mrtg users.
+
+=item mrtg-announce
+
+for announcements regarding new versions of mrtg related software.
+
+=item mrtg-developers
+
+for discussion among people who write software in connection with mrtg or
+who hack mrtg itself.
+
+=back
+
+=head2 THE RULES
+
+Please note that the memebers of the mrtg mailinglist value politeness
+highly. This means behave in a way you would like others to behave
+towards you.
+
+=over
+
+=item *
+
+No shouting. (NO CAPS)
+
+=item *
+
+No rude language
+
+=item *
+
+No demands. everybody is on the list out of their own free will. If
+you do not get an answer to your question, chances are high that you
+did not give sufficent details about the nature of your problem or
+that the answer to your problem is in the documentation.
+
+=item *
+
+If you do not follow the rules you will be unsubscribed from the list
+with no further questions asked.
+
+=item *
+
+Decisions about your unsubscription from the list will be taken by
+
+ Alex van den Bogaerdt <alex at ergens.op.het.net>
+ Paul C. Williamson <pwilliamson at MANDTBANK.COM>
+
+If you feel that you have been treated unfairly, you may send mail to
+me and explain the situation.
+
+ Tobi Oetiker <tobi@oetiker.ch>
+
+=back
+
+=head2 SUBSCRIBING
+
+These lists are managed by a mailing-list management program (listar).
+It allows you to subscribe to these lists by sending a message with the
+subject: B<subscribe> to the following address:
+
+ listname-request@lists.oetiker.ch
+
+You will then get a message asking you to confirm your subscription.
+
+For posting to the lists use the following address
+
+ listname@lists.oetiker.ch
+
+Note that only people who are subscribed to the list can post.
+
+Further information about the usage of the mailing lists is
+available by sending a message with the subject line B<help> to
+either one of the request addresses.
+
+There is also a webinterface to the lists on
+
+ http://lists.oetiker.ch
+
+List archives are on
+
+ http://www.mail-archive.com/index.php?hunt=mrtg
+
+and
+
+ http://gmane.org/find.php?list=mrtg
+
+=head1 NEWSGROUP
+
+For discussion of MRTG or related topics on the Usenet, please send your
+posts to:
+
+ news:comp.dcom.net-management
+
+Many MRTG users are in this forum and will help you. You can also find
+an archive of past activity from this Newsgroup on:
+
+ http://groups.google.com/group/comp.dcom.net-management
+
+=head1 IRC Channel
+
+For discussion of MRTG and related topics on IRC, the `#mrtg' channel on
+EFNet has been created.
+
+More information can be found at
+
+ http://mrtg.easymac.org
+
+=head1 MRTG Japan
+
+There is a special Mailinglist for MRTG Users in Japan. It carries
+translations of the traffic from MRTG-ANNOUNCE as well as updates on the
+Japanese Translation of the MRTG documentation. Go to
+http://www.mrtg.jp/ for further Information.
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt> and many contributors
+
diff --git a/doc/mrtg-forum.txt b/doc/mrtg-forum.txt
new file mode 100644
index 0000000..f206053
--- /dev/null
+++ b/doc/mrtg-forum.txt
@@ -0,0 +1,115 @@
+MRTG-FORUM(1) mrtg MRTG-FORUM(1)
+
+
+
+NNAAMMEE
+ mrtg-forum - Interactive Help for MRTG users
+
+SSYYNNOOPPSSIISS
+ There is a lot of written documentation for mrtg, but nevertheless you
+ may have a problem where you can't find the solution. In this case
+ some Human Help may be necessary. With MRTG there are several ways to
+ get Humans to help you.
+
+MMAAIILLIINNGG--LLIISSTT
+ There are three mailing lists for MRTG available.
+
+ mrtg
+ for discussion among mrtg users.
+
+ mrtg-announce
+ for announcements regarding new versions of mrtg related software.
+
+ mrtg-developers
+ for discussion among people who write software in connection with
+ mrtg or who hack mrtg itself.
+
+ TTHHEE RRUULLEESS
+ Please note that the memebers of the mrtg mailinglist value politeness
+ highly. This means behave in a way you would like others to behave
+ towards you.
+
+ +o No shouting. (NO CAPS)
+
+ +o No rude language
+
+ +o No demands. everybody is on the list out of their own free will. If
+ you do not get an answer to your question, chances are high that
+ you did not give sufficent details about the nature of your problem
+ or that the answer to your problem is in the documentation.
+
+ +o If you do not follow the rules you will be unsubscribed from the
+ list with no further questions asked.
+
+ +o Decisions about your unsubscription from the list will be taken by
+
+ Alex van den Bogaerdt <alex at ergens.op.het.net>
+ Paul C. Williamson <pwilliamson at MANDTBANK.COM>
+
+ If you feel that you have been treated unfairly, you may send mail
+ to me and explain the situation.
+
+ Tobi Oetiker <tobi@oetiker.ch>
+
+ SSUUBBSSCCRRIIBBIINNGG
+ These lists are managed by a mailing-list management program (listar).
+ It allows you to subscribe to these lists by sending a message with the
+ subject: ssuubbssccrriibbee to the following address:
+
+ listname-request@lists.oetiker.ch
+
+ You will then get a message asking you to confirm your subscription.
+
+ For posting to the lists use the following address
+
+ listname@lists.oetiker.ch
+
+ Note that only people who are subscribed to the list can post.
+
+ Further information about the usage of the mailing lists is available
+ by sending a message with the subject line hheellpp to either one of the
+ request addresses.
+
+ There is also a webinterface to the lists on
+
+ http://lists.oetiker.ch
+
+ List archives are on
+
+ http://www.mail-archive.com/index.php?hunt=mrtg
+
+ and
+
+ http://gmane.org/find.php?list=mrtg
+
+NNEEWWSSGGRROOUUPP
+ For discussion of MRTG or related topics on the Usenet, please send
+ your posts to:
+
+ news:comp.dcom.net-management
+
+ Many MRTG users are in this forum and will help you. You can also find
+ an archive of past activity from this Newsgroup on:
+
+ http://groups.google.com/group/comp.dcom.net-management
+
+IIRRCC CChhaannnneell
+ For discussion of MRTG and related topics on IRC, the `#mrtg' channel
+ on EFNet has been created.
+
+ More information can be found at
+
+ http://mrtg.easymac.org
+
+MMRRTTGG JJaappaann
+ There is a special Mailinglist for MRTG Users in Japan. It carries
+ translations of the traffic from MRTG-ANNOUNCE as well as updates on
+ the Japanese Translation of the MRTG documentation. Go to
+ http://www.mrtg.jp/ for further Information.
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch> and many contributors
+
+
+
+2.17.7 2018-07-13 MRTG-FORUM(1)
diff --git a/doc/mrtg-ipv6.1 b/doc/mrtg-ipv6.1
new file mode 100644
index 0000000..9ebc69c
--- /dev/null
+++ b/doc/mrtg-ipv6.1
@@ -0,0 +1,236 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-IPV6 1"
+.TH MRTG-IPV6 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-ipv6 \- IPv6 support in MRTG
+.SH "OVERVIEW"
+.IX Header "OVERVIEW"
+\&\s-1MRTG\s0 and cfgmaker support \s-1SNMP\s0 over IPv6. IPv6 targets can be specified by
+hostname or IPv6 address, and if the required libraries are present (see
+below), queries will use IPv6.
+.SH "USAGE"
+.IX Header "USAGE"
+.SS "Enabling IPv6"
+.IX Subsection "Enabling IPv6"
+IPv6 is currently disabled by default and must be explicitly enabled. In
+\&\s-1MRTG\s0 this is done by turning on the \fBEnableIPv6\fR global option in the
+configuration file. In cfgmaker, it is enabled with the \fB\-\-enable\-ipv6\fR
+command-line option.
+.PP
+If IPv6 is disabled, \s-1MRTG\s0 and cfgmaker should behave in exactly the same way
+as previous versions. So the addition of IPv6 support should have no effect
+on existing \s-1MRTG\s0 setups unless IPv6 is enabled.
+.PP
+IPv6 support requires the Socket6 and \s-1INET6\s0 libraries (see below). If \s-1MRTG\s0
+can't find them, IPv6 is disabled.
+.SS "Specifying IPv6 targets"
+.IX Subsection "Specifying IPv6 targets"
+IPv6 targets may be specified by name or IPv6 address. Numeric IPv6 addresses
+may be used with both cfgmaker and \s-1MRTG,\s0 but they must be enclosed in square
+brackets.
+.PP
+For example, a target could be specified as:
+.PP
+.Vb 1
+\& public@[2001:760:4::]:161
+.Ve
+.PP
+Hostnames work as expected: first an IPv6 name lookup is tried, then an IPv4
+lookup.
+.SS "Targets that do not support \s-1SNMP\s0 over IPv6"
+.IX Subsection "Targets that do not support SNMP over IPv6"
+Many targets (this currently includes all Cisco routers) do not yet support
+\&\s-1SNMP\s0 over IPv6 and must be monitored over IPv4. This can cause problems if
+you specify a target through its \s-1DNS\s0 name and the name maps to both the IPv6
+address and the IPv4 address of the target: \s-1MRTG\s0 will only try IPv6, and will
+fail.
+.PP
+To query these targets, use the \fBIPv4Only\fR per-target option, which tells
+\&\s-1MRTG\s0 not to use \s-1SNMP\s0 over IPv6 for the target.
+.PP
+\&\s-1MRTG\s0 does not fall back to IPv4 for performance and correctness reasons. If
+there are many routers to query, a timeout for every router would make \s-1MRTG\s0
+take too long to query them all. And if, for some reason, IPv6 connectivity to
+the target is lost, \s-1MRTG\s0's error messages can help figure out what is wrong.
+.PP
+cfgmaker does fall back from IPv6 to IPv4. If IPv6 is enabled and cfgmaker is
+given a hostname that resolves to both an IPv6 and an IPv4 address, it first
+tries to query the target over IPv6. If it receives no answer, it tries again
+using IPv4. If the target answers, cfgmaker sets the IPv4Only option in the
+generated config file.
+.SH "IPv6 LIBRARIES"
+.IX Header "IPv6 LIBRARIES"
+.SS "Libraries required"
+.IX Subsection "Libraries required"
+IPv6 support requires the \fBSocket6\fR and \fB\s-1INET6\s0\fR Perl modules. Both can be
+downloaded from \s-1CPAN:\s0
+.PP
+http://search.cpan.org/author/UMEMOTO/Socket6/
+.PP
+http://search.cpan.org/author/MONDEJAR/INET6/
+.PP
+If you use Debian, you will need the packages \fBlibsocket6\-perl\fR and
+\&\fBlibio\-socket\-inet6\-perl\fR, which are (or should soon be) in unstable.
+.PP
+So far, IPv6 support has been tested on Linux only, and only with Socket6
+version 0.12. Also note that IPv6 won't work at all if you don't have
+\&\s-1INET6\s0.pm version 2.00 or newer.
+.SS "Installing the libraries"
+.IX Subsection "Installing the libraries"
+Building and installing Socket6 and \s-1INET6\s0 is very simple. For each module,
+just unpack the archive and then do:
+.PP
+.Vb 2
+\& perl Makefile.PL
+\& make
+.Ve
+.PP
+and then:
+.PP
+.Vb 2
+\& su
+\& make install
+.Ve
+.PP
+If you have installed the libraries successfully, cfgmaker and mrtg should
+automatically detect them and allow IPv6 support to be enabled.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Lorenzo Colitti <lorenzo location colitti.com>
diff --git a/doc/mrtg-ipv6.pod b/doc/mrtg-ipv6.pod
new file mode 100644
index 0000000..8c5eb3c
--- /dev/null
+++ b/doc/mrtg-ipv6.pod
@@ -0,0 +1,98 @@
+=head1 NAME
+
+mrtg-ipv6 - IPv6 support in MRTG
+
+=head1 OVERVIEW
+
+MRTG and cfgmaker support SNMP over IPv6. IPv6 targets can be specified by
+hostname or IPv6 address, and if the required libraries are present (see
+below), queries will use IPv6.
+
+=head1 USAGE
+
+=head2 Enabling IPv6
+
+IPv6 is currently disabled by default and must be explicitly enabled. In
+MRTG this is done by turning on the B<EnableIPv6> global option in the
+configuration file. In cfgmaker, it is enabled with the B<--enable-ipv6>
+command-line option.
+
+If IPv6 is disabled, MRTG and cfgmaker should behave in exactly the same way
+as previous versions. So the addition of IPv6 support should have no effect
+on existing MRTG setups unless IPv6 is enabled.
+
+IPv6 support requires the Socket6 and INET6 libraries (see below). If MRTG
+can't find them, IPv6 is disabled.
+
+=head2 Specifying IPv6 targets
+
+IPv6 targets may be specified by name or IPv6 address. Numeric IPv6 addresses
+may be used with both cfgmaker and MRTG, but they must be enclosed in square
+brackets.
+
+For example, a target could be specified as:
+
+ public@[2001:760:4::]:161
+
+Hostnames work as expected: first an IPv6 name lookup is tried, then an IPv4
+lookup.
+
+=head2 Targets that do not support SNMP over IPv6
+
+Many targets (this currently includes all Cisco routers) do not yet support
+SNMP over IPv6 and must be monitored over IPv4. This can cause problems if
+you specify a target through its DNS name and the name maps to both the IPv6
+address and the IPv4 address of the target: MRTG will only try IPv6, and will
+fail.
+
+To query these targets, use the B<IPv4Only> per-target option, which tells
+MRTG not to use SNMP over IPv6 for the target.
+
+MRTG does not fall back to IPv4 for performance and correctness reasons. If
+there are many routers to query, a timeout for every router would make MRTG
+take too long to query them all. And if, for some reason, IPv6 connectivity to
+the target is lost, MRTG's error messages can help figure out what is wrong.
+
+cfgmaker does fall back from IPv6 to IPv4. If IPv6 is enabled and cfgmaker is
+given a hostname that resolves to both an IPv6 and an IPv4 address, it first
+tries to query the target over IPv6. If it receives no answer, it tries again
+using IPv4. If the target answers, cfgmaker sets the IPv4Only option in the
+generated config file.
+
+=head1 IPv6 LIBRARIES
+
+=head2 Libraries required
+
+IPv6 support requires the B<Socket6> and B<INET6> Perl modules. Both can be
+downloaded from CPAN:
+
+http://search.cpan.org/author/UMEMOTO/Socket6/
+
+http://search.cpan.org/author/MONDEJAR/INET6/
+
+If you use Debian, you will need the packages B<libsocket6-perl> and
+B<libio-socket-inet6-perl>, which are (or should soon be) in unstable.
+
+So far, IPv6 support has been tested on Linux only, and only with Socket6
+version 0.12. Also note that IPv6 won't work at all if you don't have
+INET6.pm version 2.00 or newer.
+
+=head2 Installing the libraries
+
+Building and installing Socket6 and INET6 is very simple. For each module,
+just unpack the archive and then do:
+
+ perl Makefile.PL
+ make
+
+and then:
+
+ su
+ make install
+
+If you have installed the libraries successfully, cfgmaker and mrtg should
+automatically detect them and allow IPv6 support to be enabled.
+
+=head1 AUTHOR
+
+Lorenzo Colitti E<lt>lorenzo location colitti.comE<gt>
diff --git a/doc/mrtg-ipv6.txt b/doc/mrtg-ipv6.txt
new file mode 100644
index 0000000..34ec5c1
--- /dev/null
+++ b/doc/mrtg-ipv6.txt
@@ -0,0 +1,97 @@
+MRTG-IPV6(1) mrtg MRTG-IPV6(1)
+
+
+
+NNAAMMEE
+ mrtg-ipv6 - IPv6 support in MRTG
+
+OOVVEERRVVIIEEWW
+ MRTG and cfgmaker support SNMP over IPv6. IPv6 targets can be specified
+ by hostname or IPv6 address, and if the required libraries are present
+ (see below), queries will use IPv6.
+
+UUSSAAGGEE
+ EEnnaabblliinngg IIPPvv66
+ IPv6 is currently disabled by default and must be explicitly enabled.
+ In MRTG this is done by turning on the EEnnaabblleeIIPPvv66 global option in the
+ configuration file. In cfgmaker, it is enabled with the ----eennaabbllee--iippvv66
+ command-line option.
+
+ If IPv6 is disabled, MRTG and cfgmaker should behave in exactly the
+ same way as previous versions. So the addition of IPv6 support should
+ have no effect on existing MRTG setups unless IPv6 is enabled.
+
+ IPv6 support requires the Socket6 and INET6 libraries (see below). If
+ MRTG can't find them, IPv6 is disabled.
+
+ SSppeecciiffyyiinngg IIPPvv66 ttaarrggeettss
+ IPv6 targets may be specified by name or IPv6 address. Numeric IPv6
+ addresses may be used with both cfgmaker and MRTG, but they must be
+ enclosed in square brackets.
+
+ For example, a target could be specified as:
+
+ public@[2001:760:4::]:161
+
+ Hostnames work as expected: first an IPv6 name lookup is tried, then an
+ IPv4 lookup.
+
+ TTaarrggeettss tthhaatt ddoo nnoott ssuuppppoorrtt SSNNMMPP oovveerr IIPPvv66
+ Many targets (this currently includes all Cisco routers) do not yet
+ support SNMP over IPv6 and must be monitored over IPv4. This can cause
+ problems if you specify a target through its DNS name and the name maps
+ to both the IPv6 address and the IPv4 address of the target: MRTG will
+ only try IPv6, and will fail.
+
+ To query these targets, use the IIPPvv44OOnnllyy per-target option, which tells
+ MRTG not to use SNMP over IPv6 for the target.
+
+ MRTG does not fall back to IPv4 for performance and correctness
+ reasons. If there are many routers to query, a timeout for every router
+ would make MRTG take too long to query them all. And if, for some
+ reason, IPv6 connectivity to the target is lost, MRTG's error messages
+ can help figure out what is wrong.
+
+ cfgmaker does fall back from IPv6 to IPv4. If IPv6 is enabled and
+ cfgmaker is given a hostname that resolves to both an IPv6 and an IPv4
+ address, it first tries to query the target over IPv6. If it receives
+ no answer, it tries again using IPv4. If the target answers, cfgmaker
+ sets the IPv4Only option in the generated config file.
+
+IIPPvv66 LLIIBBRRAARRIIEESS
+ LLiibbrraarriieess rreeqquuiirreedd
+ IPv6 support requires the SSoocckkeett66 and IINNEETT66 Perl modules. Both can be
+ downloaded from CPAN:
+
+ http://search.cpan.org/author/UMEMOTO/Socket6/
+
+ http://search.cpan.org/author/MONDEJAR/INET6/
+
+ If you use Debian, you will need the packages lliibbssoocckkeett66--ppeerrll and
+ lliibbiioo--ssoocckkeett--iinneett66--ppeerrll, which are (or should soon be) in unstable.
+
+ So far, IPv6 support has been tested on Linux only, and only with
+ Socket6 version 0.12. Also note that IPv6 won't work at all if you
+ don't have INET6.pm version 2.00 or newer.
+
+ IInnssttaalllliinngg tthhee lliibbrraarriieess
+ Building and installing Socket6 and INET6 is very simple. For each
+ module, just unpack the archive and then do:
+
+ perl Makefile.PL
+ make
+
+ and then:
+
+ su
+ make install
+
+ If you have installed the libraries successfully, cfgmaker and mrtg
+ should automatically detect them and allow IPv6 support to be enabled.
+
+AAUUTTHHOORR
+ Lorenzo Colitti <lorenzo location colitti.com>
+
+
+
+2.17.7 2018-07-13 MRTG-IPV6(1)
diff --git a/doc/mrtg-l.gif b/doc/mrtg-l.gif
new file mode 100644
index 0000000..11eb3d7
--- /dev/null
+++ b/doc/mrtg-l.gif
Binary files differ
diff --git a/doc/mrtg-l.png b/doc/mrtg-l.png
new file mode 100644
index 0000000..0730c9a
--- /dev/null
+++ b/doc/mrtg-l.png
Binary files differ
diff --git a/doc/mrtg-logfile.1 b/doc/mrtg-logfile.1
new file mode 100644
index 0000000..5c8ec65
--- /dev/null
+++ b/doc/mrtg-logfile.1
@@ -0,0 +1,225 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-LOGFILE 1"
+.TH MRTG-LOGFILE 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-logfile \- description of the mrtg\-2 logfile format
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+This document provides a description of the contents of
+the mrtg\-2 logfile.
+.SH "OVERVIEW"
+.IX Header "OVERVIEW"
+The logfile consists of two main sections.
+.IP "The first Line" 4
+.IX Item "The first Line"
+It stores the traffic counters from the most recent run of mrtg.
+.IP "The rest of the File" 4
+.IX Item "The rest of the File"
+Stores past traffic rate averates and maxima at increassing
+intervals.
+.PP
+The first number on each line is a unix time stamp. It represents
+the number of seconds since 1970.
+.SH "DETAILS"
+.IX Header "DETAILS"
+.SS "The first Line"
+.IX Subsection "The first Line"
+The first line has 3 numbers which are:
+.IP "A (1st column)" 4
+.IX Item "A (1st column)"
+A timestamp of when \s-1MRTG\s0 last ran for this interface. The timestamp is the
+number of non-skip seconds passed since the standard \s-1UNIX \s0\*(L"epoch\*(R" of midnight
+on 1st of January 1970 \s-1GMT.\s0
+.IP "B (2nd column)" 4
+.IX Item "B (2nd column)"
+The \*(L"incoming bytes counter\*(R" value.
+.IP "C (3rd column)" 4
+.IX Item "C (3rd column)"
+The \*(L"outgoing bytes counter\*(R" value.
+.SS "The rest of the File"
+.IX Subsection "The rest of the File"
+The second and remaining lines of the file contains 5 numbers
+which are:
+.IP "A (1st column)" 4
+.IX Item "A (1st column)"
+The Unix timestamp for the point in time the data on this line is relevant.
+Note that the interval between timestamps increases as you progress through the
+file. At first it is 5 minutes and at the end it is one day between two lines.
+.Sp
+This timestamp may be converted in OpenOffice Calc or \s-1MS\s0 Excel by using the
+following formula
+.Sp
+.Vb 1
+\& =(x+y)/86400+DATE(1970;1;1)
+.Ve
+.Sp
+(instead of \*(L";\*(R" it may be that you have to use \*(L",\*(R" this depends on the context and your locale settings)
+.Sp
+you can also ask perl to help by typing
+.Sp
+.Vb 1
+\& perl \-e \*(Aqprint scalar localtime(x),"\en"\*(Aq
+.Ve
+.Sp
+\&\fBx\fR is the unix timestamp and \fBy\fR is the offset in seconds
+from \s-1UTC. \s0(Perl knows \fBy\fR).
+.IP "B (2nd column)" 4
+.IX Item "B (2nd column)"
+The average incoming transfer rate in bytes per second. This is valid
+for the time between the A value of the current line and the A value of the
+previous line.
+.IP "C (3rd column)" 4
+.IX Item "C (3rd column)"
+The average outgoing transfer rate in bytes per second since the previous
+measurement.
+.IP "D (4th column)" 4
+.IX Item "D (4th column)"
+The maximum incoming transfer rate in bytes per second for the current
+interval. This is calculated from all the updates which have occured in the
+current interval. If the current interval is 1 hour, and updates have
+occured every 5 minutes, it will be the biggest 5 minute transfer rate seen
+during the hour.
+.IP "E (5th column)" 4
+.IX Item "E (5th column)"
+The maximum outgoing transfer rate in bytes per second for the current interval.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Butch Kemper <kemper@bihs.net> and
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-logfile.pod b/doc/mrtg-logfile.pod
new file mode 100644
index 0000000..4d8f2e6
--- /dev/null
+++ b/doc/mrtg-logfile.pod
@@ -0,0 +1,110 @@
+=head1 NAME
+
+mrtg-logfile - description of the mrtg-2 logfile format
+
+=head1 SYNOPSIS
+
+This document provides a description of the contents of
+the mrtg-2 logfile.
+
+=head1 OVERVIEW
+
+The logfile consists of two main sections.
+
+=over
+
+=item The first Line
+
+It stores the traffic counters from the most recent run of mrtg.
+
+=item The rest of the File
+
+Stores past traffic rate averates and maxima at increassing
+intervals.
+
+=back
+
+The first number on each line is a unix time stamp. It represents
+the number of seconds since 1970.
+
+=head1 DETAILS
+
+=head2 The first Line
+
+The first line has 3 numbers which are:
+
+=over
+
+=item A (1st column)
+
+A timestamp of when MRTG last ran for this interface. The timestamp is the
+number of non-skip seconds passed since the standard UNIX "epoch" of midnight
+on 1st of January 1970 GMT.
+
+=item B (2nd column)
+
+The "incoming bytes counter" value.
+
+=item C (3rd column)
+
+The "outgoing bytes counter" value.
+
+=back
+
+=head2 The rest of the File
+
+The second and remaining lines of the file contains 5 numbers
+which are:
+
+=over
+
+=item A (1st column)
+
+The Unix timestamp for the point in time the data on this line is relevant.
+Note that the interval between timestamps increases as you progress through the
+file. At first it is 5 minutes and at the end it is one day between two lines.
+
+This timestamp may be converted in OpenOffice Calc or MS Excel by using the
+following formula
+
+ =(x+y)/86400+DATE(1970;1;1)
+
+(instead of ";" it may be that you have to use "," this depends on the context and your locale settings)
+
+you can also ask perl to help by typing
+
+ perl -e 'print scalar localtime(x),"\n"'
+
+B<x> is the unix timestamp and B<y> is the offset in seconds
+from UTC. (Perl knows B<y>).
+
+
+=item B (2nd column)
+
+The average incoming transfer rate in bytes per second. This is valid
+for the time between the A value of the current line and the A value of the
+previous line.
+
+=item C (3rd column)
+
+The average outgoing transfer rate in bytes per second since the previous
+measurement.
+
+=item D (4th column)
+
+The maximum incoming transfer rate in bytes per second for the current
+interval. This is calculated from all the updates which have occured in the
+current interval. If the current interval is 1 hour, and updates have
+occured every 5 minutes, it will be the biggest 5 minute transfer rate seen
+during the hour.
+
+=item E (5th column)
+
+The maximum outgoing transfer rate in bytes per second for the current interval.
+
+=back
+
+=head1 AUTHOR
+
+Butch Kemper E<lt>kemper@bihs.netE<gt> and
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
diff --git a/doc/mrtg-logfile.txt b/doc/mrtg-logfile.txt
new file mode 100644
index 0000000..a6e95e1
--- /dev/null
+++ b/doc/mrtg-logfile.txt
@@ -0,0 +1,90 @@
+MRTG-LOGFILE(1) mrtg MRTG-LOGFILE(1)
+
+
+
+NNAAMMEE
+ mrtg-logfile - description of the mrtg-2 logfile format
+
+SSYYNNOOPPSSIISS
+ This document provides a description of the contents of the mrtg-2
+ logfile.
+
+OOVVEERRVVIIEEWW
+ The logfile consists of two main sections.
+
+ The first Line
+ It stores the traffic counters from the most recent run of mrtg.
+
+ The rest of the File
+ Stores past traffic rate averates and maxima at increassing
+ intervals.
+
+ The first number on each line is a unix time stamp. It represents the
+ number of seconds since 1970.
+
+DDEETTAAIILLSS
+ TThhee ffiirrsstt LLiinnee
+ The first line has 3 numbers which are:
+
+ A (1st column)
+ A timestamp of when MRTG last ran for this interface. The
+ timestamp is the number of non-skip seconds passed since the
+ standard UNIX "epoch" of midnight on 1st of January 1970 GMT.
+
+ B (2nd column)
+ The "incoming bytes counter" value.
+
+ C (3rd column)
+ The "outgoing bytes counter" value.
+
+ TThhee rreesstt ooff tthhee FFiillee
+ The second and remaining lines of the file contains 5 numbers which
+ are:
+
+ A (1st column)
+ The Unix timestamp for the point in time the data on this line is
+ relevant. Note that the interval between timestamps increases as
+ you progress through the file. At first it is 5 minutes and at the
+ end it is one day between two lines.
+
+ This timestamp may be converted in OpenOffice Calc or MS Excel by
+ using the following formula
+
+ =(x+y)/86400+DATE(1970;1;1)
+
+ (instead of ";" it may be that you have to use "," this depends on
+ the context and your locale settings)
+
+ you can also ask perl to help by typing
+
+ perl -e 'print scalar localtime(x),"\n"'
+
+ xx is the unix timestamp and yy is the offset in seconds from UTC.
+ (Perl knows yy).
+
+ B (2nd column)
+ The average incoming transfer rate in bytes per second. This is
+ valid for the time between the A value of the current line and the
+ A value of the previous line.
+
+ C (3rd column)
+ The average outgoing transfer rate in bytes per second since the
+ previous measurement.
+
+ D (4th column)
+ The maximum incoming transfer rate in bytes per second for the
+ current interval. This is calculated from all the updates which
+ have occured in the current interval. If the current interval is 1
+ hour, and updates have occured every 5 minutes, it will be the
+ biggest 5 minute transfer rate seen during the hour.
+
+ E (5th column)
+ The maximum outgoing transfer rate in bytes per second for the
+ current interval.
+
+AAUUTTHHOORR
+ Butch Kemper <kemper@bihs.net> and Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-LOGFILE(1)
diff --git a/doc/mrtg-m.gif b/doc/mrtg-m.gif
new file mode 100644
index 0000000..ec4ee9a
--- /dev/null
+++ b/doc/mrtg-m.gif
Binary files differ
diff --git a/doc/mrtg-m.png b/doc/mrtg-m.png
new file mode 100644
index 0000000..743e495
--- /dev/null
+++ b/doc/mrtg-m.png
Binary files differ
diff --git a/doc/mrtg-mibhelp.1 b/doc/mrtg-mibhelp.1
new file mode 100644
index 0000000..61d56b8
--- /dev/null
+++ b/doc/mrtg-mibhelp.1
@@ -0,0 +1,344 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-MIBHELP 1"
+.TH MRTG-MIBHELP 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-mibhelp \- A Table of some interesting OIDs
+.SH "OVERVIEW"
+.IX Header "OVERVIEW"
+This File Contains a collection of interesting \s-1MIB\s0 Entries ...
+mrtg knows about their names ... depending on the \s-1ASN.1\s0 Syntax
+you may have to put \fBgauge\fR into the \fBOptions[]:\fR parameter.
+.PP
+For information about how to create a \fBTarget[]:\fR parameter which
+references these \s-1MIB\s0 entries, please consult mrtg-reference.
+.SH "MIB LIST"
+.IX Header "MIB LIST"
+.SS "ifOperStatus"
+.IX Subsection "ifOperStatus"
+.Vb 4
+\& Descriptor: ifOperStatus
+\& Identifier: 1.3.6.1.2.1.2.2.1.8
+\& ASN.1 Syntax: INTEGER
+\& Enumeration: up 1, down 2, testing 3
+.Ve
+.PP
+The current operational state of the interface.
+The \fItesting\fR\|(3) state indicates that no operational
+packets can be passed.
+.SS "ifAdminStatus"
+.IX Subsection "ifAdminStatus"
+.Vb 4
+\& Descriptor: ifAdminStatus
+\& Identifier: 1.3.6.1.2.1.2.2.1.7
+\& ASN.1 Syntax: INTEGER
+\& Enumeration: up 1, down 2, testing 3
+.Ve
+.PP
+The current administrative state of the interface.
+The \fItesting\fR\|(3) state indicates that no operational
+packets can be passed.
+.SS "ifInOctets"
+.IX Subsection "ifInOctets"
+.Vb 3
+\& Descriptor: ifInOctets
+\& Identifier: 1.3.6.1.2.1.2.2.1.10
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The total number of octets received on the
+interface, including framing characters.
+.SS "ifInUcastPkts"
+.IX Subsection "ifInUcastPkts"
+.Vb 3
+\& Descriptor: ifInUcastPkts
+\& Identifier: 1.3.6.1.2.1.2.2.1.11
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of subnetwork-unicast packets
+delivered to a higher-layer protocol.
+.SS "ifInNUcastPkts"
+.IX Subsection "ifInNUcastPkts"
+.Vb 3
+\& Descriptor: ifInNUcastPkts
+\& Identifier: 1.3.6.1.2.1.2.2.1.12
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of non-unicast (i.e., subnetwork\-
+broadcast or subnetwork-multicast) packets
+delivered to a higher-layer protocol.
+.SS "ifInDiscards"
+.IX Subsection "ifInDiscards"
+.Vb 3
+\& Descriptor: ifInDiscards
+\& Identifier: 1.3.6.1.2.1.2.2.1.13
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of inbound packets which were chosen
+to be discarded even though no errors had been
+detected to prevent their being deliverable to a
+higher-layer protocol. One possible reason for
+discarding such a packet could be to free up
+buffer space.
+.SS "ifInErrors"
+.IX Subsection "ifInErrors"
+.Vb 3
+\& Descriptor: ifInErrors
+\& Identifier: 1.3.6.1.2.1.2.2.1.14
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of inbound packets that contained
+errors preventing them from being deliverable to a
+higher-layer protocol.
+.SS "ifInUnknownProtos"
+.IX Subsection "ifInUnknownProtos"
+.Vb 3
+\& Descriptor: ifInUnknownProtos
+\& Identifier: 1.3.6.1.2.1.2.2.1.15
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of packets received via the interface
+which were discarded because of an unknown or
+unsupported protocol.
+.SS "ifOutOctets"
+.IX Subsection "ifOutOctets"
+.Vb 3
+\& Descriptor: ifOutOctets
+\& Identifier: 1.3.6.1.2.1.2.2.1.16
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The total number of octets transmitted out of the
+interface, including framing characters.
+.SS "ifOutUcastPkts"
+.IX Subsection "ifOutUcastPkts"
+.Vb 3
+\& Descriptor: ifOutUcastPkts
+\& Identifier: 1.3.6.1.2.1.2.2.1.17
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The total number of packets that higher-level
+protocols requested be transmitted to a
+subnetwork-unicast address, including those that
+were discarded or not sent.
+.SS "ifOutNUcastPkts"
+.IX Subsection "ifOutNUcastPkts"
+.Vb 3
+\& Descriptor: ifOutNUcastPkts
+\& Identifier: 1.3.6.1.2.1.2.2.1.18
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The total number of packets that higher-level
+protocols requested be transmitted to a non\-
+unicast (i.e., a subnetwork-broadcast or
+subnetwork-multicast) address, including those
+that were discarded or not sent.
+.SS "ifOutDiscards"
+.IX Subsection "ifOutDiscards"
+.Vb 3
+\& Descriptor: ifOutDiscards
+\& Identifier: 1.3.6.1.2.1.2.2.1.19
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of outbound packets which were chosen
+to be discarded even though no errors had been
+detected to prevent their being transmitted. One
+possible reason for discarding such a packet could
+be to free up buffer space.
+.SS "ifOutErrors"
+.IX Subsection "ifOutErrors"
+.Vb 3
+\& Descriptor: ifOutErrors
+\& Identifier: 1.3.6.1.2.1.2.2.1.20
+\& ASN.1 Syntax: Counter32
+.Ve
+.PP
+The number of outbound packets that could not be
+transmitted because of errors.
+.SS "ifOutQLen"
+.IX Subsection "ifOutQLen"
+.Vb 3
+\& Descriptor: ifOutQLen
+\& Identifier: 1.3.6.1.2.1.2.2.1.21
+\& ASN.1 Syntax: Unsigned32
+.Ve
+.PP
+The length of the output packet queue (in
+packets).
+.SS "frInOctets"
+.IX Subsection "frInOctets"
+From: Simon Ferrett <simonf@world.net>
+.PP
+.Vb 2
+\& \*(AqfrInOctets\*(Aq => \*(Aq1.3.6.1.2.1.10.32.2.1.9\*(Aq
+\& \*(AqfrOutOctets\*(Aq => \*(Aq1.3.6.1.2.1.10.32.2.1.7\*(Aq
+.Ve
+.PP
+which when used in the form:
+.PP
+.Vb 1
+\& frInOctets.pp.dd&frOutOctets.pp.dd:community@cisco.router
+.Ve
+.PP
+where pp is the physical port that the frame relay pvc is
+defined on and dd is the \s-1DLCI\s0 of the pvc gets you the in
+and out octets for just that pvc.
+.SS "ifAdminHack and ifOperHack"
+.IX Subsection "ifAdminHack and ifOperHack"
+The return values of ifAdminStatus and ifOperStatus are not very useful
+for graphing. Use ifOperHack and ifAdminHack instead. They return 1 for
+\&\s-1UP\s0 and 0 otherwise.
+.PP
+Note these are not real \s-1MIB\s0 entities but mrtg hacks
+.SS "PseudoZero and PseudoOne"
+.IX Subsection "PseudoZero and PseudoOne"
+will return 0 and 1 respectively
+.PP
+Note these are not real \s-1MIB\s0 entities but mrtg hacks
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-mibhelp.pod b/doc/mrtg-mibhelp.pod
new file mode 100644
index 0000000..2f410c8
--- /dev/null
+++ b/doc/mrtg-mibhelp.pod
@@ -0,0 +1,193 @@
+=head1 NAME
+
+mrtg-mibhelp - A Table of some interesting OIDs
+
+=head1 OVERVIEW
+
+This File Contains a collection of interesting MIB Entries ...
+mrtg knows about their names ... depending on the ASN.1 Syntax
+you may have to put B<gauge> into the B<Options[]:> parameter.
+
+For information about how to create a B<Target[]:> parameter which
+references these MIB entries, please consult mrtg-reference.
+
+=head1 MIB LIST
+
+=head2 ifOperStatus
+
+ Descriptor: ifOperStatus
+ Identifier: 1.3.6.1.2.1.2.2.1.8
+ ASN.1 Syntax: INTEGER
+ Enumeration: up 1, down 2, testing 3
+
+The current operational state of the interface.
+The testing(3) state indicates that no operational
+packets can be passed.
+
+=head2 ifAdminStatus
+
+ Descriptor: ifAdminStatus
+ Identifier: 1.3.6.1.2.1.2.2.1.7
+ ASN.1 Syntax: INTEGER
+ Enumeration: up 1, down 2, testing 3
+
+The current administrative state of the interface.
+The testing(3) state indicates that no operational
+packets can be passed.
+
+
+=head2 ifInOctets
+
+ Descriptor: ifInOctets
+ Identifier: 1.3.6.1.2.1.2.2.1.10
+ ASN.1 Syntax: Counter32
+
+The total number of octets received on the
+interface, including framing characters.
+
+=head2 ifInUcastPkts
+
+ Descriptor: ifInUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.11
+ ASN.1 Syntax: Counter32
+
+The number of subnetwork-unicast packets
+delivered to a higher-layer protocol.
+
+=head2 ifInNUcastPkts
+
+ Descriptor: ifInNUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.12
+ ASN.1 Syntax: Counter32
+
+The number of non-unicast (i.e., subnetwork-
+broadcast or subnetwork-multicast) packets
+delivered to a higher-layer protocol.
+
+=head2 ifInDiscards
+
+ Descriptor: ifInDiscards
+ Identifier: 1.3.6.1.2.1.2.2.1.13
+ ASN.1 Syntax: Counter32
+
+The number of inbound packets which were chosen
+to be discarded even though no errors had been
+detected to prevent their being deliverable to a
+higher-layer protocol. One possible reason for
+discarding such a packet could be to free up
+buffer space.
+
+=head2 ifInErrors
+
+ Descriptor: ifInErrors
+ Identifier: 1.3.6.1.2.1.2.2.1.14
+ ASN.1 Syntax: Counter32
+
+The number of inbound packets that contained
+errors preventing them from being deliverable to a
+higher-layer protocol.
+
+=head2 ifInUnknownProtos
+
+ Descriptor: ifInUnknownProtos
+ Identifier: 1.3.6.1.2.1.2.2.1.15
+ ASN.1 Syntax: Counter32
+
+The number of packets received via the interface
+which were discarded because of an unknown or
+unsupported protocol.
+
+=head2 ifOutOctets
+
+ Descriptor: ifOutOctets
+ Identifier: 1.3.6.1.2.1.2.2.1.16
+ ASN.1 Syntax: Counter32
+
+The total number of octets transmitted out of the
+interface, including framing characters.
+
+=head2 ifOutUcastPkts
+
+ Descriptor: ifOutUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.17
+ ASN.1 Syntax: Counter32
+
+The total number of packets that higher-level
+protocols requested be transmitted to a
+subnetwork-unicast address, including those that
+were discarded or not sent.
+
+=head2 ifOutNUcastPkts
+
+ Descriptor: ifOutNUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.18
+ ASN.1 Syntax: Counter32
+
+The total number of packets that higher-level
+protocols requested be transmitted to a non-
+unicast (i.e., a subnetwork-broadcast or
+subnetwork-multicast) address, including those
+that were discarded or not sent.
+
+=head2 ifOutDiscards
+
+ Descriptor: ifOutDiscards
+ Identifier: 1.3.6.1.2.1.2.2.1.19
+ ASN.1 Syntax: Counter32
+
+The number of outbound packets which were chosen
+to be discarded even though no errors had been
+detected to prevent their being transmitted. One
+possible reason for discarding such a packet could
+be to free up buffer space.
+
+=head2 ifOutErrors
+
+ Descriptor: ifOutErrors
+ Identifier: 1.3.6.1.2.1.2.2.1.20
+ ASN.1 Syntax: Counter32
+
+The number of outbound packets that could not be
+transmitted because of errors.
+
+=head2 ifOutQLen
+
+ Descriptor: ifOutQLen
+ Identifier: 1.3.6.1.2.1.2.2.1.21
+ ASN.1 Syntax: Unsigned32
+
+The length of the output packet queue (in
+packets).
+
+=head2 frInOctets
+
+From: Simon Ferrett <simonf@world.net>
+
+ 'frInOctets' => '1.3.6.1.2.1.10.32.2.1.9'
+ 'frOutOctets' => '1.3.6.1.2.1.10.32.2.1.7'
+
+which when used in the form:
+
+ frInOctets.pp.dd&frOutOctets.pp.dd:community@cisco.router
+
+where pp is the physical port that the frame relay pvc is
+defined on and dd is the DLCI of the pvc gets you the in
+and out octets for just that pvc.
+
+=head2 ifAdminHack and ifOperHack
+
+The return values of ifAdminStatus and ifOperStatus are not very useful
+for graphing. Use ifOperHack and ifAdminHack instead. They return 1 for
+UP and 0 otherwise.
+
+Note these are not real MIB entities but mrtg hacks
+
+=head2 PseudoZero and PseudoOne
+
+will return 0 and 1 respectively
+
+Note these are not real MIB entities but mrtg hacks
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
diff --git a/doc/mrtg-mibhelp.txt b/doc/mrtg-mibhelp.txt
new file mode 100644
index 0000000..d5425b8
--- /dev/null
+++ b/doc/mrtg-mibhelp.txt
@@ -0,0 +1,168 @@
+MRTG-MIBHELP(1) mrtg MRTG-MIBHELP(1)
+
+
+
+NNAAMMEE
+ mrtg-mibhelp - A Table of some interesting OIDs
+
+OOVVEERRVVIIEEWW
+ This File Contains a collection of interesting MIB Entries ... mrtg
+ knows about their names ... depending on the ASN.1 Syntax you may have
+ to put ggaauuggee into the OOppttiioonnss[[]]:: parameter.
+
+ For information about how to create a TTaarrggeett[[]]:: parameter which
+ references these MIB entries, please consult mrtg-reference.
+
+MMIIBB LLIISSTT
+ iiffOOppeerrSSttaattuuss
+ Descriptor: ifOperStatus
+ Identifier: 1.3.6.1.2.1.2.2.1.8
+ ASN.1 Syntax: INTEGER
+ Enumeration: up 1, down 2, testing 3
+
+ The current operational state of the interface. The _t_e_s_t_i_n_g(3) state
+ indicates that no operational packets can be passed.
+
+ iiffAAddmmiinnSSttaattuuss
+ Descriptor: ifAdminStatus
+ Identifier: 1.3.6.1.2.1.2.2.1.7
+ ASN.1 Syntax: INTEGER
+ Enumeration: up 1, down 2, testing 3
+
+ The current administrative state of the interface. The _t_e_s_t_i_n_g(3)
+ state indicates that no operational packets can be passed.
+
+ iiffIInnOOcctteettss
+ Descriptor: ifInOctets
+ Identifier: 1.3.6.1.2.1.2.2.1.10
+ ASN.1 Syntax: Counter32
+
+ The total number of octets received on the interface, including framing
+ characters.
+
+ iiffIInnUUccaassttPPkkttss
+ Descriptor: ifInUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.11
+ ASN.1 Syntax: Counter32
+
+ The number of subnetwork-unicast packets delivered to a higher-layer
+ protocol.
+
+ iiffIInnNNUUccaassttPPkkttss
+ Descriptor: ifInNUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.12
+ ASN.1 Syntax: Counter32
+
+ The number of non-unicast (i.e., subnetwork- broadcast or subnetwork-
+ multicast) packets delivered to a higher-layer protocol.
+
+ iiffIInnDDiissccaarrddss
+ Descriptor: ifInDiscards
+ Identifier: 1.3.6.1.2.1.2.2.1.13
+ ASN.1 Syntax: Counter32
+
+ The number of inbound packets which were chosen to be discarded even
+ though no errors had been detected to prevent their being deliverable
+ to a higher-layer protocol. One possible reason for discarding such a
+ packet could be to free up buffer space.
+
+ iiffIInnEErrrroorrss
+ Descriptor: ifInErrors
+ Identifier: 1.3.6.1.2.1.2.2.1.14
+ ASN.1 Syntax: Counter32
+
+ The number of inbound packets that contained errors preventing them
+ from being deliverable to a higher-layer protocol.
+
+ iiffIInnUUnnkknnoowwnnPPrroottooss
+ Descriptor: ifInUnknownProtos
+ Identifier: 1.3.6.1.2.1.2.2.1.15
+ ASN.1 Syntax: Counter32
+
+ The number of packets received via the interface which were discarded
+ because of an unknown or unsupported protocol.
+
+ iiffOOuuttOOcctteettss
+ Descriptor: ifOutOctets
+ Identifier: 1.3.6.1.2.1.2.2.1.16
+ ASN.1 Syntax: Counter32
+
+ The total number of octets transmitted out of the interface, including
+ framing characters.
+
+ iiffOOuuttUUccaassttPPkkttss
+ Descriptor: ifOutUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.17
+ ASN.1 Syntax: Counter32
+
+ The total number of packets that higher-level protocols requested be
+ transmitted to a subnetwork-unicast address, including those that were
+ discarded or not sent.
+
+ iiffOOuuttNNUUccaassttPPkkttss
+ Descriptor: ifOutNUcastPkts
+ Identifier: 1.3.6.1.2.1.2.2.1.18
+ ASN.1 Syntax: Counter32
+
+ The total number of packets that higher-level protocols requested be
+ transmitted to a non- unicast (i.e., a subnetwork-broadcast or
+ subnetwork-multicast) address, including those that were discarded or
+ not sent.
+
+ iiffOOuuttDDiissccaarrddss
+ Descriptor: ifOutDiscards
+ Identifier: 1.3.6.1.2.1.2.2.1.19
+ ASN.1 Syntax: Counter32
+
+ The number of outbound packets which were chosen to be discarded even
+ though no errors had been detected to prevent their being transmitted.
+ One possible reason for discarding such a packet could be to free up
+ buffer space.
+
+ iiffOOuuttEErrrroorrss
+ Descriptor: ifOutErrors
+ Identifier: 1.3.6.1.2.1.2.2.1.20
+ ASN.1 Syntax: Counter32
+
+ The number of outbound packets that could not be transmitted because of
+ errors.
+
+ iiffOOuuttQQLLeenn
+ Descriptor: ifOutQLen
+ Identifier: 1.3.6.1.2.1.2.2.1.21
+ ASN.1 Syntax: Unsigned32
+
+ The length of the output packet queue (in packets).
+
+ ffrrIInnOOcctteettss
+ From: Simon Ferrett <simonf@world.net>
+
+ 'frInOctets' => '1.3.6.1.2.1.10.32.2.1.9'
+ 'frOutOctets' => '1.3.6.1.2.1.10.32.2.1.7'
+
+ which when used in the form:
+
+ frInOctets.pp.dd&frOutOctets.pp.dd:community@cisco.router
+
+ where pp is the physical port that the frame relay pvc is defined on
+ and dd is the DLCI of the pvc gets you the in and out octets for just
+ that pvc.
+
+ iiffAAddmmiinnHHaacckk aanndd iiffOOppeerrHHaacckk
+ The return values of ifAdminStatus and ifOperStatus are not very useful
+ for graphing. Use ifOperHack and ifAdminHack instead. They return 1 for
+ UP and 0 otherwise.
+
+ Note these are not real MIB entities but mrtg hacks
+
+ PPsseeuuddooZZeerroo aanndd PPsseeuuddooOOnnee
+ will return 0 and 1 respectively
+
+ Note these are not real MIB entities but mrtg hacks
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-MIBHELP(1)
diff --git a/doc/mrtg-nt-guide.1 b/doc/mrtg-nt-guide.1
new file mode 100644
index 0000000..c3224d1
--- /dev/null
+++ b/doc/mrtg-nt-guide.1
@@ -0,0 +1,526 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-NT-GUIDE 1"
+.TH MRTG-NT-GUIDE 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-nt\-guide \- The MRTG 2.17.7 Windows Installation Guide
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+Installing \s-1MRTG\s0 on a Windows box is not quite as \*(L"click and point\*(R" as some
+might want it to be. But then again, it is not all that difficult if you
+follow the instructions below.
+.SH "PREREQUISITES"
+.IX Header "PREREQUISITES"
+To get \s-1MRTG\s0 to work on Windows you need the following:
+.IP "\(bu" 4
+A current copy of Perl.
+For Example ActivePerl 5.8.8 from ActiveState
+http://www.activestate.com/store/activeperl/download/
+.IP "\(bu" 4
+The latest version of \s-1MRTG\s0 from http://oss.oetiker.ch/mrtg/pub. Look for
+mrtg\-2.17.7.zip or better. The archive also contains a precompiled copy of
+rateup.exe for Win32.
+.SH "INSTALLING"
+.IX Header "INSTALLING"
+I suggest you do the following from the machine that will be running \s-1MRTG,\s0
+which, in this case, is also a web server. All examples are for doing things
+to a \s-1LOCAL\s0 machine.
+.IP "First" 4
+.IX Item "First"
+Unzip \s-1MRTG\s0 to C:\emrtg\-2.17.7 on the Windows machine of your choice.
+.IP "Next" 4
+.IX Item "Next"
+Install Perl on the same Windows machine. You might want to make sure
+that the Perl binary directory is listed in your system path.
+.Sp
+.Vb 1
+\& C:\ePerl\ebin;%SystemRoot%\esystem32;%SystemRoot%;...
+.Ve
+.Sp
+You can manually check this by going to [Control Panel]\->[System]\->[Environment]
+.PP
+To see if everything is installed properly you can open a Command Shell
+and go into \fIc:\emrtg\-2.17.7\ebin\fR. Type:
+.PP
+.Vb 1
+\& perl mrtg
+.Ve
+.PP
+This should give you a friendly error message complaining about the missing \s-1MRTG\s0
+configuration file. Now, you have successfully installed \s-1MRTG\s0 and Perl.
+.SH "CONFIGURING MRTG"
+.IX Header "CONFIGURING MRTG"
+Now it is time to create a configuration for \s-1MRTG.\s0 But before we begin you need to know a few things. Take an
+opportunity to gather the following information:
+.IP "\(bu" 4
+The \s-1IP\s0 address or hostname and the \s-1SNMP\s0 port number, (if non standard), of the device you want to monitor.
+.IP "\(bu" 4
+If you want to monitor something other than bytes in and out, you must also know the \s-1SNMPOID\s0 of what you
+want to monitor.
+.IP "\(bu" 4
+Finally you need to know the read-only \s-1SNMP\s0 community string
+for your device. If you don't know it, try \fBpublic\fR, that is the default.
+.PP
+For the rest of this document we will be using device \fB10.10.10.1\fR ( a \s-1CISCO\s0
+Catalyst 5000) with Community string \fBpublic\fR. We are interested in monitoring
+traffic, and the \s-1CPU\s0 load. Let's begin.
+.PP
+The first thing we do in setting up \s-1MRTG\s0 is making a default config file.
+Get to a cmd prompt and change to the \fIc:\emrtg\-2.17.7\ebin\fR directory. Type the
+following command:
+.PP
+.Vb 1
+\& perl cfgmaker public@10.10.10.1 \-\-global "WorkDir: c:\ewww\emrtg" \-\-output mrtg.cfg
+.Ve
+.PP
+This creates an initial \s-1MRTG\s0 config file for you. Note that in this file all interfaces
+of your router will be stored by number. Unfortunately, these numbers are likely to change whenever you
+reconfigure your router. In order to work around this you can get \fIcfgmaker\fR to produce a configuration
+which is based on Ip numbers, or even Interface Descriptions. Check cfgmaker
+.PP
+If you get an error message complaining about \fBno such name\fR or \fBno
+response\fR, your community name is probably wrong.
+.PP
+Now, let's take a look at the mrtg.cfg file that was created.
+.PP
+In Perl, a \f(CW\*(C`#\*(C'\fR is a comment, synonymous with \f(CW\*(C`REM\*(C'\fR in \s-1DOS.\s0
+.PP
+Add the following to the top of the mrtg.cfg file:
+.PP
+.Vb 1
+\& WorkDir: c:\ewww\emrtg
+.Ve
+.PP
+This is where the web pages are created, usually a web root.
+.PP
+.Vb 6
+\& ######################################################################
+\& # Description: LCP SUWGB
+\& # Contact: Administrator
+\& # System Name: LC\-Bridge
+\& # Location: Here
+\& #.....................................................................
+.Ve
+.PP
+TargetDevice's \s-1IP\s0 Address:Interface Number:Community:IP Address
+.PP
+.Vb 1
+\& Target[10.10.10.1.1]: 1:public@10.10.10.1
+.Ve
+.PP
+This is the interface speed (Default is 10 megabits; for 100Mbit devices use 12500000 and so on...)
+.PP
+.Vb 1
+\& MaxBytes[10.10.10.1.1]: 1250000
+\&
+\& Title[10.10.10.1.1]: LC\-Bridge (sample.device): ether0
+.Ve
+.PP
+This section determines how the web page headers will look
+.PP
+.Vb 9
+\& PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ether0(1)</TD></TR>
+\& <TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& Target[10.10.10.1.2]: 2:public@10.10.10.1
+\& MaxBytes[10.10.10.1.2]: 1250000
+\& Title[10.10.10.1.2]: LC\-Bridge (): ulink0
+\& PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR>
+\& <TR><TD>IP:</TD><TD>()</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+.Ve
+.PP
+And that's a very basic \s-1MRTG\s0 config file. You can run this and see your
+results by going into the \fIc:\emrtg\-2.17.7\ebin\fR directory and typing:
+.PP
+.Vb 1
+\& perl mrtg mrtg.cfg
+.Ve
+.PP
+It is normal to get errors for the first two times you run this command. The
+errors will alert you about the fact that there have not been any log files
+in existence before.
+.PP
+If you take a look at those web pages they are not very exciting (yet). You need
+to have the \s-1MRTG\s0 files run every five minutes to produce the desired results.
+Just run it again after a few minutes. You should now be able to see the first
+lines in your graphs.
+.SH "MAKE MRTG RUN ALL THE TIME"
+.IX Header "MAKE MRTG RUN ALL THE TIME"
+Starting \s-1MRTG\s0 by hand every time you want to run it is not going to make you
+happy I guess.
+.PP
+There is a special option you can set in the \s-1MRTG\s0 configuration file so
+so that \s-1MRTG\s0 will not terminate after it was started. Instead it
+will wait for 5 minutes and then run again.
+.PP
+Add the option
+.PP
+.Vb 1
+\& RunAsDaemon: yes
+.Ve
+.PP
+to your mrtg.cfg file and start it with:
+.PP
+.Vb 1
+\& start /Dc:\emrtg\-2.17.7\ebin wperl mrtg \-\-logging=eventlog mrtg.cfg
+.Ve
+.PP
+If you use \fBwperl\fR instead of \fBperl\fR, no console window will show. \s-1MRTG\s0 is now
+running in the background. If it runs into problems it will tell you so
+over the EventLog. To stop \s-1MRTG,\s0 open the Task Manager and terminate the
+\&\fBwperl.exe\fR process. If mrtg has anything to tell you these messages
+can be found in the event log.
+.PP
+If you put a shortcut with
+.PP
+.Vb 2
+\& Target: wperl mrtg \-\-logging=eventlog mrtg.cfg
+\& Start in: c:\emrtg\-2.17.7\ebin
+.Ve
+.PP
+into your start-up folder, \s-1MRTG\s0 will now start whenever you login to your \s-1NT\s0
+box.
+.PP
+If you do not want to log into your box just to start \s-1MRTG.\s0 Have a look
+at http://www.firedaemon.com/mrtg\-howto.html which describes a free tool to
+start any program as a Service. The pages gives specific instructions for
+\&\s-1MRTG\s0 users.
+.SH "HOW TO SETUP MRTG AS A WINDOWS SERVICE"
+.IX Header "HOW TO SETUP MRTG AS A WINDOWS SERVICE"
+.SS "Additional Prerequisites"
+.IX Subsection "Additional Prerequisites"
+.IP "\(bu" 4
+\&\s-1MRTG\s0 must be installed and fully configured on the target system. In the
+following exercise the assumption is that \s-1MRTG\s0 is installed under c:\emrtg\e
+and all the sample files use this location.
+.IP "\(bu" 4
+Microsoft Tools \fB\s-1SRVANY\s0.exe\fR (Applications as Services Utility) and
+\&\fB\s-1INSTSRV\s0.exe\fR (Service Installer) \- Those files can be downloaded from
+Microsoft as a part of Windows 2000 Resource Kit at
+<http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp>.
+They are also available from other locations such as
+<http://www.electrasoft.com/srvany/srvany.htm>,
+<http://www.iopus.com/guides/srvany.htm>, etc. Detailed instructions on how
+to use this package are available at
+<http://support.microsoft.com/kb/q137890/>. In order to follow the steps in
+this HOW-TO you \fB\s-1MUST\s0\fR obtain both executables.
+.IP "\(bu" 4
+You must have administrative rights on the target system.
+.SS "Preparation"
+.IX Subsection "Preparation"
+Please complete the following steps before starting the installation:
+.IP "\(bu" 4
+Copy \fBsrvany.exe\fR and \fBinstsrv.exe\fR to c:\emrtg\-2.17.7\ebin\e (your \s-1MRTG\s0 bin directory).
+.IP "\(bu" 4
+Create a file called \fBmrtg.reg\fR anywhere on your system and paste the
+following content into it:
+.Sp
+.Vb 1
+\& Windows Registry Editor Version 5.00
+\&
+\& [HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eMRTG\eParameters]
+\& "Application"="c:\e\eperl\e\ebin\e\ewperl.exe"
+\& "AppParameters"="c:\e\emrtg\-2.17.7\e\ebin\e\emrtg \-\-logging=eventlog c:\e\emrtg\-2.17.7\e\ebin\e\emrtg.cfg"
+\& "AppDirectory"="c:\e\emrtg\-2.17.7\e\ebin\e\e"
+.Ve
+.SS "Service Installation"
+.IX Subsection "Service Installation"
+Once again, assuming that \s-1MRTG\s0 is already fully installed and configured on
+the target system under c:\emrtg\e the following steps are necessary to setup
+\&\s-1MRTG\s0 as a service.
+.PP
+Using the command prompt go into the temporary directory where you unzipped
+the package. When there type the following command to create a service
+named \*(L"\s-1MRTG\*(R"\s0 in the Windows Services management console:
+.PP
+.Vb 1
+\& instsrv MRTG c:\emrtg\ebin\esrvany.exe
+.Ve
+.PP
+Now you need to create the \fBApp*\fR entries required for the new service. You
+can do this by either right-clicking on the mrtg.reg file and selecting
+\&'merge' or by running the following command:
+.PP
+.Vb 1
+\& regedit /s mrtg.reg
+.Ve
+.PP
+After setting up the registry entry it is time to point it to your \s-1MRTG\s0
+installation. If you have installed \s-1MRTG\s0 under \fIc:\emrtg\e\fR, you can skip this
+step. Open your registry editor (Start \-> Run \-> regedt32), and locate the
+\&\fB[HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eMRTG]\fR key. Make
+sure that the \fBImagePath\fR variable is correctly pointing to \fBsrvany.exe\fR
+located in your \s-1MRTG\s0 bin directory (for example c:\emrtg\ebin\esrvany.exe).
+Next you have to expand the \s-1MRTG\s0 tree, and go to the
+\&\fB[HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eMRTG\eParameters]\fR
+key. Under Parameters make sure that all the \fBApplication\fR variables are
+setup properly.
+.PP
+At this point you are ready to run the service. The only thing left to do
+is to start the \s-1MRTG\s0 service in the Services management console. After you
+do this, you should see two new processes running on your system: srvany.exe
+and wperl.exe. Make sure to stop any previously running \s-1MRTG\s0 processes to
+avoid conflict.
+.PP
+Note that it is imperative to set the \fBRunAsDaemon: yes\fR option or the
+service will stop after just one single run!
+.SH "EXAMPLE"
+.IX Header "EXAMPLE"
+Now lets look at a config file to monitor what we wanted to on our mythical
+Cisco Cat 5000 \*(-- utilization on ports 3, 5, 10, and 24, and the \s-1CPU\s0 Load,
+which will show us nonstandard mrtg configurations as well as more options..
+.PP
+.Vb 2
+\& WorkDir: c:\ewww\emrtg
+\& RunAsDaemon: yes
+\&
+\& ######################################################################
+\& # Description: LCP SUWGB
+\& # Contact: Administrator
+\& # System Name: LC\-Bridge
+\& # Location: Here
+\& #.....................................................................
+\&
+\& Target[10.10.10.1.1]: 3:public@10.10.10.1
+\& MaxBytes[10.10.10.1.1]: 1250000
+\& Title[10.10.10.1.1]: LC\-Bridge (sample\-device): ether0
+\& PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ether0(3)</TD></TR>
+\& <TR><TD>IP:</TD><TD>sample\-device(10.10.10.1)</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\&
+\& Target[10.10.10.1.2]: 5:public@10.10.10.1
+\& MaxBytes[10.10.10.1.2]: 1250000
+\& Title[10.10.10.1.2]: LC\-Bridge (): ulink0
+\& PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ulink0(5)</TD></TR>
+\& <TR><TD>IP:</TD><TD>()</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\&
+\& Target[10.10.10.1.1]: 10:public@10.10.10.1
+\& MaxBytes[10.10.10.1.1]: 1250000
+\& Title[10.10.10.1.1]: LC\-Bridge (sample\-device): ether0
+\& PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ether0(10)</TD></TR>
+\& <TR><TD>IP:</TD><TD>sample\-device(10.10.10.1)</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\&
+\& Target[10.10.10.1.2]: 24:public@10.10.10.1
+\& MaxBytes[10.10.10.1.2]: 1250000
+\& Title[10.10.10.1.2]: LC\-Bridge (): ulink0
+\& PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+\& <TABLE>
+\& <TR><TD>System:</TD><TD>LC\-Bridge inAndover</TD></TR>
+\& <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+\& <TR><TD>Interface:</TD><TD>ulink0(24)</TD></TR>
+\& <TR><TD>IP:</TD><TD>()</TD></TR>
+\& <TR><TD>Max Speed:</TD>
+\& <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+\& </TABLE>
+\&
+\& #\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
+\&
+\& # Router CPU load %
+\& Target[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public@10.10.10.1
+\& RouterUptime[cpu.1]: public@10.10.10.1
+\& MaxBytes[cpu.1]: 100
+\& Title[cpu.1]: CPU LOAD
+\& PageTop[cpu.1]: <H1>CPU Load %</H1>
+\& Unscaled[cpu.1]: ymwd
+\& ShortLegend[cpu.1]: %
+\& XSize[cpu.1]: 380
+\& YSize[cpu.1]: 100
+\& YLegend[cpu.1]: CPU Utilization
+\& Legend1[cpu.1]: CPU Utilization in % (Load)
+\& Legend2[cpu.1]: CPU Utilization in % (Load)
+\& Legend3[cpu.1]:
+\& Legend4[cpu.1]:
+\& LegendI[cpu.1]:
+\& LegendO[cpu.1]: &nbsp;Usage
+\& Options[cpu.1]: gauge
+.Ve
+.PP
+This is a nice example of how to monitor any \s-1SNMP\s0 device if you know what \s-1OID\s0
+you want to use. Once again, for an explanation of the more advance features of
+mrtg, please see the rest of the documentation.
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+Tobi Oetiker <tobi@oetiker.ch>,
+David S. Divins <ddivins@moon.jic.com>,
+Steve Pierce <MRTG@HDL.com>,
+Artyom Adjemov <one.bofh@gmail.com>,
+Ilja Ivanov <ivanov@bseu.by>
+Karel Fajkus <http://fajkus.cz/>
diff --git a/doc/mrtg-nt-guide.pod b/doc/mrtg-nt-guide.pod
new file mode 100644
index 0000000..57359d0
--- /dev/null
+++ b/doc/mrtg-nt-guide.pod
@@ -0,0 +1,411 @@
+=head1 NAME
+
+mrtg-nt-guide - The MRTG 2.17.7 Windows Installation Guide
+
+=head1 SYNOPSIS
+
+Installing MRTG on a Windows box is not quite as "click and point" as some
+might want it to be. But then again, it is not all that difficult if you
+follow the instructions below.
+
+=head1 PREREQUISITES
+
+To get MRTG to work on Windows you need the following:
+
+=over
+
+=item *
+
+A current copy of Perl.
+For Example ActivePerl 5.8.8 from ActiveState
+http://www.activestate.com/store/activeperl/download/
+
+
+=item *
+
+The latest version of MRTG from http://oss.oetiker.ch/mrtg/pub. Look for
+mrtg-2.17.7.zip or better. The archive also contains a precompiled copy of
+rateup.exe for Win32.
+
+
+=back
+
+=head1 INSTALLING
+
+I suggest you do the following from the machine that will be running MRTG,
+which, in this case, is also a web server. All examples are for doing things
+to a LOCAL machine.
+
+=over
+
+=item First
+
+Unzip MRTG to C:\mrtg-2.17.7 on the Windows machine of your choice.
+
+=item Next
+
+Install Perl on the same Windows machine. You might want to make sure
+that the Perl binary directory is listed in your system path.
+
+ C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;...
+
+You can manually check this by going to [Control Panel]->[System]->[Environment]
+
+=back
+
+To see if everything is installed properly you can open a Command Shell
+and go into F<c:\mrtg-2.17.7\bin>. Type:
+
+ perl mrtg
+
+This should give you a friendly error message complaining about the missing MRTG
+configuration file. Now, you have successfully installed MRTG and Perl.
+
+=head1 CONFIGURING MRTG
+
+Now it is time to create a configuration for MRTG. But before we begin you need to know a few things. Take an
+opportunity to gather the following information:
+
+=over
+
+=item *
+
+The IP address or hostname and the SNMP port number, (if non standard), of the device you want to monitor.
+
+=item *
+
+If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you
+want to monitor.
+
+=item *
+
+Finally you need to know the read-only SNMP community string
+for your device. If you don't know it, try B<public>, that is the default.
+
+=back
+
+For the rest of this document we will be using device B<10.10.10.1> ( a CISCO
+Catalyst 5000) with Community string B<public>. We are interested in monitoring
+traffic, and the CPU load. Let's begin.
+
+The first thing we do in setting up MRTG is making a default config file.
+Get to a cmd prompt and change to the F<c:\mrtg-2.17.7\bin> directory. Type the
+following command:
+
+ perl cfgmaker public@10.10.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
+
+This creates an initial MRTG config file for you. Note that in this file all interfaces
+of your router will be stored by number. Unfortunately, these numbers are likely to change whenever you
+reconfigure your router. In order to work around this you can get F<cfgmaker> to produce a configuration
+which is based on Ip numbers, or even Interface Descriptions. Check L<cfgmaker>
+
+If you get an error message complaining about B<no such name> or B<no
+response>, your community name is probably wrong.
+
+Now, let's take a look at the mrtg.cfg file that was created.
+
+In Perl, a C<#> is a comment, synonymous with C<REM> in DOS.
+
+Add the following to the top of the mrtg.cfg file:
+
+ WorkDir: c:\www\mrtg
+
+This is where the web pages are created, usually a web root.
+
+ ######################################################################
+ # Description: LCP SUWGB
+ # Contact: Administrator
+ # System Name: LC-Bridge
+ # Location: Here
+ #.....................................................................
+
+TargetDevice's IP Address:Interface Number:Community:IP Address
+
+ Target[10.10.10.1.1]: 1:public@10.10.10.1
+
+This is the interface speed (Default is 10 megabits; for 100Mbit devices use 12500000 and so on...)
+
+ MaxBytes[10.10.10.1.1]: 1250000
+
+ Title[10.10.10.1.1]: LC-Bridge (sample.device): ether0
+
+This section determines how the web page headers will look
+
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(1)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ Target[10.10.10.1.2]: 2:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+And that's a very basic MRTG config file. You can run this and see your
+results by going into the F<c:\mrtg-2.17.7\bin> directory and typing:
+
+ perl mrtg mrtg.cfg
+
+It is normal to get errors for the first two times you run this command. The
+errors will alert you about the fact that there have not been any log files
+in existence before.
+
+
+If you take a look at those web pages they are not very exciting (yet). You need
+to have the MRTG files run every five minutes to produce the desired results.
+Just run it again after a few minutes. You should now be able to see the first
+lines in your graphs.
+
+=head1 MAKE MRTG RUN ALL THE TIME
+
+Starting MRTG by hand every time you want to run it is not going to make you
+happy I guess.
+
+There is a special option you can set in the MRTG configuration file so
+so that MRTG will not terminate after it was started. Instead it
+will wait for 5 minutes and then run again.
+
+Add the option
+
+ RunAsDaemon: yes
+
+to your mrtg.cfg file and start it with:
+
+ start /Dc:\mrtg-2.17.7\bin wperl mrtg --logging=eventlog mrtg.cfg
+
+If you use B<wperl> instead of B<perl>, no console window will show. MRTG is now
+running in the background. If it runs into problems it will tell you so
+over the EventLog. To stop MRTG, open the Task Manager and terminate the
+B<wperl.exe> process. If mrtg has anything to tell you these messages
+can be found in the event log.
+
+If you put a shortcut with
+
+ Target: wperl mrtg --logging=eventlog mrtg.cfg
+ Start in: c:\mrtg-2.17.7\bin
+
+into your start-up folder, MRTG will now start whenever you login to your NT
+box.
+
+If you do not want to log into your box just to start MRTG. Have a look
+at http://www.firedaemon.com/mrtg-howto.html which describes a free tool to
+start any program as a Service. The pages gives specific instructions for
+MRTG users.
+
+=head1 HOW TO SETUP MRTG AS A WINDOWS SERVICE
+
+=head2 Additional Prerequisites
+
+=over
+
+=item *
+
+MRTG must be installed and fully configured on the target system. In the
+following exercise the assumption is that MRTG is installed under c:\mrtg\
+and all the sample files use this location.
+
+=item *
+
+Microsoft Tools B<SRVANY.exe> (Applications as Services Utility) and
+B<INSTSRV.exe> (Service Installer) - Those files can be downloaded from
+Microsoft as a part of Windows 2000 Resource Kit at
+L<http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp>.
+They are also available from other locations such as
+L<http://www.electrasoft.com/srvany/srvany.htm>,
+L<http://www.iopus.com/guides/srvany.htm>, etc. Detailed instructions on how
+to use this package are available at
+L<http://support.microsoft.com/kb/q137890/>. In order to follow the steps in
+this HOW-TO you B<MUST> obtain both executables.
+
+=item *
+
+You must have administrative rights on the target system.
+
+=back
+
+=head2 Preparation
+
+Please complete the following steps before starting the installation:
+
+=over
+
+=item *
+
+Copy B<srvany.exe> and B<instsrv.exe> to c:\mrtg-2.17.7\bin\ (your MRTG bin directory).
+
+=item *
+
+Create a file called B<mrtg.reg> anywhere on your system and paste the
+following content into it:
+
+ Windows Registry Editor Version 5.00
+
+ [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters]
+ "Application"="c:\\perl\\bin\\wperl.exe"
+ "AppParameters"="c:\\mrtg-2.17.7\\bin\\mrtg --logging=eventlog c:\\mrtg-2.17.7\\bin\\mrtg.cfg"
+ "AppDirectory"="c:\\mrtg-2.17.7\\bin\\"
+
+=back
+
+=head2 Service Installation
+
+Once again, assuming that MRTG is already fully installed and configured on
+the target system under c:\mrtg\ the following steps are necessary to setup
+MRTG as a service.
+
+Using the command prompt go into the temporary directory where you unzipped
+the package. When there type the following command to create a service
+named "MRTG" in the Windows Services management console:
+
+ instsrv MRTG c:\mrtg\bin\srvany.exe
+
+Now you need to create the B<App*> entries required for the new service. You
+can do this by either right-clicking on the mrtg.reg file and selecting
+'merge' or by running the following command:
+
+ regedit /s mrtg.reg
+
+After setting up the registry entry it is time to point it to your MRTG
+installation. If you have installed MRTG under F<c:\mrtg\>, you can skip this
+step. Open your registry editor (Start -E<gt> Run -E<gt> regedt32), and locate the
+B<[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG]> key. Make
+sure that the B<ImagePath> variable is correctly pointing to B<srvany.exe>
+located in your MRTG bin directory (for example c:\mrtg\bin\srvany.exe).
+Next you have to expand the MRTG tree, and go to the
+B<[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters]>
+key. Under Parameters make sure that all the B<Application> variables are
+setup properly.
+
+At this point you are ready to run the service. The only thing left to do
+is to start the MRTG service in the Services management console. After you
+do this, you should see two new processes running on your system: srvany.exe
+and wperl.exe. Make sure to stop any previously running MRTG processes to
+avoid conflict.
+
+Note that it is imperative to set the B<RunAsDaemon: yes> option or the
+service will stop after just one single run!
+
+=head1 EXAMPLE
+
+Now lets look at a config file to monitor what we wanted to on our mythical
+Cisco Cat 5000 -- utilization on ports 3, 5, 10, and 24, and the CPU Load,
+which will show us nonstandard mrtg configurations as well as more options..
+
+ WorkDir: c:\www\mrtg
+ RunAsDaemon: yes
+
+ ######################################################################
+ # Description: LCP SUWGB
+ # Contact: Administrator
+ # System Name: LC-Bridge
+ # Location: Here
+ #.....................................................................
+
+ Target[10.10.10.1.1]: 3:public@10.10.10.1
+ MaxBytes[10.10.10.1.1]: 1250000
+ Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(3)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.2]: 5:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(5)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.1]: 10:public@10.10.10.1
+ MaxBytes[10.10.10.1.1]: 1250000
+ Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(10)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.2]: 24:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(24)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ # Router CPU load %
+ Target[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public@10.10.10.1
+ RouterUptime[cpu.1]: public@10.10.10.1
+ MaxBytes[cpu.1]: 100
+ Title[cpu.1]: CPU LOAD
+ PageTop[cpu.1]: <H1>CPU Load %</H1>
+ Unscaled[cpu.1]: ymwd
+ ShortLegend[cpu.1]: %
+ XSize[cpu.1]: 380
+ YSize[cpu.1]: 100
+ YLegend[cpu.1]: CPU Utilization
+ Legend1[cpu.1]: CPU Utilization in % (Load)
+ Legend2[cpu.1]: CPU Utilization in % (Load)
+ Legend3[cpu.1]:
+ Legend4[cpu.1]:
+ LegendI[cpu.1]:
+ LegendO[cpu.1]: &nbsp;Usage
+ Options[cpu.1]: gauge
+
+This is a nice example of how to monitor any SNMP device if you know what OID
+you want to use. Once again, for an explanation of the more advance features of
+mrtg, please see the rest of the documentation.
+
+=head1 AUTHORS
+
+Tobi Oetiker E<lt>tobi@oetiker.chE<gt>,
+David S. Divins E<lt>ddivins@moon.jic.comE<gt>,
+Steve Pierce E<lt>MRTG@HDL.comE<gt>,
+Artyom Adjemov E<lt>one.bofh@gmail.comE<gt>,
+Ilja Ivanov E<lt>ivanov@bseu.byE<gt>
+Karel Fajkus E<lt>http://fajkus.cz/E<gt>
+
+
diff --git a/doc/mrtg-nt-guide.txt b/doc/mrtg-nt-guide.txt
new file mode 100644
index 0000000..0fa5ff0
--- /dev/null
+++ b/doc/mrtg-nt-guide.txt
@@ -0,0 +1,366 @@
+MRTG-NT-GUIDE(1) mrtg MRTG-NT-GUIDE(1)
+
+
+
+NNAAMMEE
+ mrtg-nt-guide - The MRTG 2.17.7 Windows Installation Guide
+
+SSYYNNOOPPSSIISS
+ Installing MRTG on a Windows box is not quite as "click and point" as
+ some might want it to be. But then again, it is not all that difficult
+ if you follow the instructions below.
+
+PPRREERREEQQUUIISSIITTEESS
+ To get MRTG to work on Windows you need the following:
+
+ +o A current copy of Perl. For Example ActivePerl 5.8.8 from
+ ActiveState http://www.activestate.com/store/activeperl/download/
+
+ +o The latest version of MRTG from http://oss.oetiker.ch/mrtg/pub.
+ Look for mrtg-2.17.7.zip or better. The archive also contains a
+ precompiled copy of rateup.exe for Win32.
+
+IINNSSTTAALLLLIINNGG
+ I suggest you do the following from the machine that will be running
+ MRTG, which, in this case, is also a web server. All examples are for
+ doing things to a LOCAL machine.
+
+ First
+ Unzip MRTG to C:\mrtg-2.17.7 on the Windows machine of your choice.
+
+ Next
+ Install Perl on the same Windows machine. You might want to make
+ sure that the Perl binary directory is listed in your system path.
+
+ C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;...
+
+ You can manually check this by going to [Control
+ Panel]->[System]->[Environment]
+
+ To see if everything is installed properly you can open a Command Shell
+ and go into _c_:_\_m_r_t_g_-_2_._1_7_._7_\_b_i_n. Type:
+
+ perl mrtg
+
+ This should give you a friendly error message complaining about the
+ missing MRTG configuration file. Now, you have successfully installed
+ MRTG and Perl.
+
+CCOONNFFIIGGUURRIINNGG MMRRTTGG
+ Now it is time to create a configuration for MRTG. But before we begin
+ you need to know a few things. Take an opportunity to gather the
+ following information:
+
+ +o The IP address or hostname and the SNMP port number, (if non
+ standard), of the device you want to monitor.
+
+ +o If you want to monitor something other than bytes in and out, you
+ must also know the SNMPOID of what you want to monitor.
+
+ +o Finally you need to know the read-only SNMP community string for
+ your device. If you don't know it, try ppuubblliicc, that is the default.
+
+ For the rest of this document we will be using device 1100..1100..1100..11 ( a
+ CISCO Catalyst 5000) with Community string ppuubblliicc. We are interested in
+ monitoring traffic, and the CPU load. Let's begin.
+
+ The first thing we do in setting up MRTG is making a default config
+ file. Get to a cmd prompt and change to the _c_:_\_m_r_t_g_-_2_._1_7_._7_\_b_i_n
+ directory. Type the following command:
+
+ perl cfgmaker public@10.10.10.1 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg
+
+ This creates an initial MRTG config file for you. Note that in this
+ file all interfaces of your router will be stored by number.
+ Unfortunately, these numbers are likely to change whenever you
+ reconfigure your router. In order to work around this you can get
+ _c_f_g_m_a_k_e_r to produce a configuration which is based on Ip numbers, or
+ even Interface Descriptions. Check cfgmaker
+
+ If you get an error message complaining about nnoo ssuucchh nnaammee or nnoo
+ rreessppoonnssee, your community name is probably wrong.
+
+ Now, let's take a look at the mrtg.cfg file that was created.
+
+ In Perl, a "#" is a comment, synonymous with "REM" in DOS.
+
+ Add the following to the top of the mrtg.cfg file:
+
+ WorkDir: c:\www\mrtg
+
+ This is where the web pages are created, usually a web root.
+
+ ######################################################################
+ # Description: LCP SUWGB
+ # Contact: Administrator
+ # System Name: LC-Bridge
+ # Location: Here
+ #.....................................................................
+
+ TargetDevice's IP Address:Interface Number:Community:IP Address
+
+ Target[10.10.10.1.1]: 1:public@10.10.10.1
+
+ This is the interface speed (Default is 10 megabits; for 100Mbit
+ devices use 12500000 and so on...)
+
+ MaxBytes[10.10.10.1.1]: 1250000
+
+ Title[10.10.10.1.1]: LC-Bridge (sample.device): ether0
+
+ This section determines how the web page headers will look
+
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(1)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ Target[10.10.10.1.2]: 2:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ And that's a very basic MRTG config file. You can run this and see your
+ results by going into the _c_:_\_m_r_t_g_-_2_._1_7_._7_\_b_i_n directory and typing:
+
+ perl mrtg mrtg.cfg
+
+ It is normal to get errors for the first two times you run this
+ command. The errors will alert you about the fact that there have not
+ been any log files in existence before.
+
+ If you take a look at those web pages they are not very exciting (yet).
+ You need to have the MRTG files run every five minutes to produce the
+ desired results. Just run it again after a few minutes. You should now
+ be able to see the first lines in your graphs.
+
+MMAAKKEE MMRRTTGG RRUUNN AALLLL TTHHEE TTIIMMEE
+ Starting MRTG by hand every time you want to run it is not going to
+ make you happy I guess.
+
+ There is a special option you can set in the MRTG configuration file so
+ so that MRTG will not terminate after it was started. Instead it will
+ wait for 5 minutes and then run again.
+
+ Add the option
+
+ RunAsDaemon: yes
+
+ to your mrtg.cfg file and start it with:
+
+ start /Dc:\mrtg-2.17.7\bin wperl mrtg --logging=eventlog mrtg.cfg
+
+ If you use wwppeerrll instead of ppeerrll, no console window will show. MRTG is
+ now running in the background. If it runs into problems it will tell
+ you so over the EventLog. To stop MRTG, open the Task Manager and
+ terminate the wwppeerrll..eexxee process. If mrtg has anything to tell you these
+ messages can be found in the event log.
+
+ If you put a shortcut with
+
+ Target: wperl mrtg --logging=eventlog mrtg.cfg
+ Start in: c:\mrtg-2.17.7\bin
+
+ into your start-up folder, MRTG will now start whenever you login to
+ your NT box.
+
+ If you do not want to log into your box just to start MRTG. Have a look
+ at http://www.firedaemon.com/mrtg-howto.html which describes a free
+ tool to start any program as a Service. The pages gives specific
+ instructions for MRTG users.
+
+HHOOWW TTOO SSEETTUUPP MMRRTTGG AASS AA WWIINNDDOOWWSS SSEERRVVIICCEE
+ AAddddiittiioonnaall PPrreerreeqquuiissiitteess
+ +o MRTG must be installed and fully configured on the target system.
+ In the following exercise the assumption is that MRTG is installed
+ under c:\mrtg\ and all the sample files use this location.
+
+ +o Microsoft Tools SSRRVVAANNYY..eexxee (Applications as Services Utility) and
+ IINNSSTTSSRRVV..eexxee (Service Installer) - Those files can be downloaded
+ from Microsoft as a part of Windows 2000 Resource Kit at
+ <http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp>.
+ They are also available from other locations such as
+ <http://www.electrasoft.com/srvany/srvany.htm>,
+ <http://www.iopus.com/guides/srvany.htm>, etc. Detailed
+ instructions on how to use this package are available at
+ <http://support.microsoft.com/kb/q137890/>. In order to follow the
+ steps in this HOW-TO you MMUUSSTT obtain both executables.
+
+ +o You must have administrative rights on the target system.
+
+ PPrreeppaarraattiioonn
+ Please complete the following steps before starting the installation:
+
+ +o Copy ssrrvvaannyy..eexxee and iinnssttssrrvv..eexxee to c:\mrtg-2.17.7\bin\ (your MRTG
+ bin directory).
+
+ +o Create a file called mmrrttgg..rreegg anywhere on your system and paste the
+ following content into it:
+
+ Windows Registry Editor Version 5.00
+
+ [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters]
+ "Application"="c:\\perl\\bin\\wperl.exe"
+ "AppParameters"="c:\\mrtg-2.17.7\\bin\\mrtg --logging=eventlog c:\\mrtg-2.17.7\\bin\\mrtg.cfg"
+ "AppDirectory"="c:\\mrtg-2.17.7\\bin\\"
+
+ SSeerrvviiccee IInnssttaallllaattiioonn
+ Once again, assuming that MRTG is already fully installed and
+ configured on the target system under c:\mrtg\ the following steps are
+ necessary to setup MRTG as a service.
+
+ Using the command prompt go into the temporary directory where you
+ unzipped the package. When there type the following command to create
+ a service named "MRTG" in the Windows Services management console:
+
+ instsrv MRTG c:\mrtg\bin\srvany.exe
+
+ Now you need to create the AApppp** entries required for the new service.
+ You can do this by either right-clicking on the mrtg.reg file and
+ selecting 'merge' or by running the following command:
+
+ regedit /s mrtg.reg
+
+ After setting up the registry entry it is time to point it to your MRTG
+ installation. If you have installed MRTG under _c_:_\_m_r_t_g_\, you can skip
+ this step. Open your registry editor (Start -> Run -> regedt32), and
+ locate the [[HHKKEEYY__LLOOCCAALL__MMAACCHHIINNEE\\SSYYSSTTEEMM\\CCuurrrreennttCCoonnttrroollSSeett\\SSeerrvviicceess\\MMRRTTGG]]
+ key. Make sure that the IImmaaggeePPaatthh variable is correctly pointing to
+ ssrrvvaannyy..eexxee located in your MRTG bin directory (for example
+ c:\mrtg\bin\srvany.exe). Next you have to expand the MRTG tree, and go
+ to the
+ [[HHKKEEYY__LLOOCCAALL__MMAACCHHIINNEE\\SSYYSSTTEEMM\\CCuurrrreennttCCoonnttrroollSSeett\\SSeerrvviicceess\\MMRRTTGG\\PPaarraammeetteerrss]]
+ key. Under Parameters make sure that all the AApppplliiccaattiioonn variables
+ are setup properly.
+
+ At this point you are ready to run the service. The only thing left to
+ do is to start the MRTG service in the Services management console.
+ After you do this, you should see two new processes running on your
+ system: srvany.exe and wperl.exe. Make sure to stop any previously
+ running MRTG processes to avoid conflict.
+
+ Note that it is imperative to set the RRuunnAAssDDaaeemmoonn:: yyeess option or the
+ service will stop after just one single run!
+
+EEXXAAMMPPLLEE
+ Now lets look at a config file to monitor what we wanted to on our
+ mythical Cisco Cat 5000 -- utilization on ports 3, 5, 10, and 24, and
+ the CPU Load, which will show us nonstandard mrtg configurations as
+ well as more options..
+
+ WorkDir: c:\www\mrtg
+ RunAsDaemon: yes
+
+ ######################################################################
+ # Description: LCP SUWGB
+ # Contact: Administrator
+ # System Name: LC-Bridge
+ # Location: Here
+ #.....................................................................
+
+ Target[10.10.10.1.1]: 3:public@10.10.10.1
+ MaxBytes[10.10.10.1.1]: 1250000
+ Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(3)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.2]: 5:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(5)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.1]: 10:public@10.10.10.1
+ MaxBytes[10.10.10.1.1]: 1250000
+ Title[10.10.10.1.1]: LC-Bridge (sample-device): ether0
+ PageTop[10.10.10.1.1]: <H1>Traffic Analysis for ether0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ether0(10)</TD></TR>
+ <TR><TD>IP:</TD><TD>sample-device(10.10.10.1)</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ Target[10.10.10.1.2]: 24:public@10.10.10.1
+ MaxBytes[10.10.10.1.2]: 1250000
+ Title[10.10.10.1.2]: LC-Bridge (): ulink0
+ PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>
+ <TABLE>
+ <TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>
+ <TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>
+ <TR><TD>Interface:</TD><TD>ulink0(24)</TD></TR>
+ <TR><TD>IP:</TD><TD>()</TD></TR>
+ <TR><TD>Max Speed:</TD>
+ <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
+ </TABLE>
+
+ #---------------------------------------------------------------
+
+ # Router CPU load %
+ Target[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public@10.10.10.1
+ RouterUptime[cpu.1]: public@10.10.10.1
+ MaxBytes[cpu.1]: 100
+ Title[cpu.1]: CPU LOAD
+ PageTop[cpu.1]: <H1>CPU Load %</H1>
+ Unscaled[cpu.1]: ymwd
+ ShortLegend[cpu.1]: %
+ XSize[cpu.1]: 380
+ YSize[cpu.1]: 100
+ YLegend[cpu.1]: CPU Utilization
+ Legend1[cpu.1]: CPU Utilization in % (Load)
+ Legend2[cpu.1]: CPU Utilization in % (Load)
+ Legend3[cpu.1]:
+ Legend4[cpu.1]:
+ LegendI[cpu.1]:
+ LegendO[cpu.1]: &nbsp;Usage
+ Options[cpu.1]: gauge
+
+ This is a nice example of how to monitor any SNMP device if you know
+ what OID you want to use. Once again, for an explanation of the more
+ advance features of mrtg, please see the rest of the documentation.
+
+AAUUTTHHOORRSS
+ Tobi Oetiker <tobi@oetiker.ch>, David S. Divins <ddivins@moon.jic.com>,
+ Steve Pierce <MRTG@HDL.com>, Artyom Adjemov <one.bofh@gmail.com>, Ilja
+ Ivanov <ivanov@bseu.by> Karel Fajkus <http://fajkus.cz/>
+
+
+
+2.17.7 2018-07-13 MRTG-NT-GUIDE(1)
diff --git a/doc/mrtg-nw-guide.1 b/doc/mrtg-nw-guide.1
new file mode 100644
index 0000000..1942a63
--- /dev/null
+++ b/doc/mrtg-nw-guide.1
@@ -0,0 +1,537 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-NW-GUIDE 1"
+.TH MRTG-NW-GUIDE 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-nw\-guide \- MRTG for NetWare
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+This guide is intended to aid in the installation and configuration of \s-1MRTG\s0 on a NetWare server.
+.SH "OVERVIEW"
+.IX Header "OVERVIEW"
+\&\s-1MRTG\s0 is a relative newcomer to the NetWare platform. Earlier versions of NetWare could not run \s-1MRTG\s0 natively for
+several reasons:
+.IP "\(bu" 4
+Absence of NetWare \s-1OS\s0 support in the \s-1MRTG\s0 package.
+.IP "\(bu" 4
+A NetWare server commandline length limitation.
+.IP "\(bu" 4
+Absence of the Rateup executable (Rateup.nlm).
+.IP "\(bu" 4
+A standard installation method.
+.IP "\(bu" 4
+Problems with NetWare's implementation of Perl.
+.PP
+Support for the NetWare \s-1OS\s0 has now been fully added into \s-1MRTG,\s0 beginning with \s-1MRTG\s0 release 2.12.2.
+.PP
+Liberallly minded operating systems support a commandline length approaching 1000 characters. In such environments it
+was an easy matter to pass the sometimes high number of parameters used by \s-1MRTG\s0's Rateup executable directly on the
+commandline. Until NetWare 6.5, NetWare had a commandline limit of 512 characters. This limitation was also removed
+for NetWare 6.0 by Service Pack 5. For other NetWare versions and earlier Service Packs, this limitation remains. To
+permit a 'standard' interface for NetWare, the Rateup executable has been modified to also read its parameters from
+a file, and the \s-1MRTG\s0 script has been modified to support this method on a NetWare platform. (See New Rateup Switch)
+.PP
+A Rateup \s-1NLM\s0 is now available, along with the necessary scripts to build it if required. See the NetWare Support
+section of this document for further details. Additionally, mrtg.pl has been revised because of the unique (to NetWare)
+name of executables (\s-1NLM\s0).
+.PP
+The absence of a specific installation procedure has caused \s-1MRTG\s0 to fail in the past because the Perl script could
+not find or load the Rateup executable. The installation method supplied here will solve this problem for now.
+.PP
+The \s-1MRTG\s0.pl script in the 2.12.2 (or later) version of \s-1MRTG\s0 has been configured to suit all likely versions of
+NetWare able to use Perl5, and bypasses all of the known problems with NetWare Perl running \s-1MRTG.\s0
+.SH "PREREQUISITES"
+.IX Header "PREREQUISITES"
+You will need the following:
+.IP "\(bu" 4
+Perl 5.8.0 for NetWare with latest Perl Updates (February, 2005 or later; previous versions \s-1MAY\s0 work)
+.IP "\(bu" 4
+NetWare 5.1 w/ \s-1SP8,\s0 NetWare 6.0 w/ \s-1SP5\s0 or NetWare 6.5 w/ \s-1SP2.\s0
+.IP "\(bu" 4
+A copy of the \s-1MRTG\s0 Package (v2.12.2 at time of writting)
+.IP "\(bu" 4
+Three .ncf files to execute the Perl scripts at the NetWare server console.
+.IP "\(bu" 4
+A copy of the Rateup \s-1NLM \s0(Pre-built or compiled)
+.IP "\(bu" 4
+Optionally, any NetWare supported Web Server (Netscape, Apache 1.3 or 2.0)
+.PP
+For copies of the .ncf files and Rateup \s-1NLM,\s0 see NetWare Support in this document.
+.SH "INSTALLING MRTG"
+.IX Header "INSTALLING MRTG"
+.IP "1." 4
+Install the latest Perl 5.8.x release on your server. See the Perl documentation for details.
+.IP "2." 4
+Create the following directories:
+.Sp
+.Vb 10
+\& SYS:/Mrtg
+\& SYS:/Mrtg/bin
+\& SYS:/Mrtg/contrib (Optional for this document)
+\& SYS:/Mrtg/doc (Optional for this document)
+\& SYS:/Mrtg/html
+\& SYS:/Mrtg/html/images
+\& SYS:/Mrtg/html/work
+\& SYS:/Mrtg/lib
+\& SYS:/Mrtg/logs
+\& SYS:/Mrtg/translate
+.Ve
+.IP "3." 4
+Copy from the \s-1MRTG\s0 package the following files:
+.Sp
+.Vb 1
+\& \ebin\e* to SYS:/Mrtg/bin All files. See Note 1.
+.Ve
+.Sp
+Note 1: Add a .pl extension to the mrtg, cfgmaker and indexmaker files.
+The rateup.exe will \s-1NOT\s0 be needed on the NetWare server.
+.Sp
+.Vb 4
+\& \econtrib\e* to SYS:/Mrtg/contrib/ Include sub\-directories
+\& \edoc\e* to SYS:/Mrtg/doc/ All files
+\& \eimages\e* to SYS:/Mrtg/html/images/ All files
+\& \etranslate\e* to SYS:/Mrtg/translate/ All files. See Note 2.
+.Ve
+.Sp
+Note 2: For English-only language support, all \etranslate files \s-1EXCEPT\s0 Locales_mrtg may be deleted.
+.Sp
+.Vb 1
+\& \elib\e* to SYS:/Mrtg/lib Include sub\-directories. See Note 3.
+.Ve
+.Sp
+Note 3: This will create the SYS:/Mrtg/lib/mrtg2 and ./pod directories.
+.IP "4." 4
+Create copies of the three .ncf files and install them:
+.Sp
+.Vb 1
+\& *.ncf to SYS:/Mrtg/bin
+.Ve
+.Sp
+See NetWare Support in this document for details on how to create copies of these files.
+.IP "5." 4
+See Compiling Rateup.nlm"> in this document for details on compiling the Rateup \s-1NLM\s0 yourself if desired.
+A prebuit verion is available in the .\emrtg\ebin directory where it must remain.
+.SH "CONFIGURING MRTG"
+.IX Header "CONFIGURING MRTG"
+.IP "\(bu" 4
+Refer to Novell documentation on configuring and loading \s-1SNMP\s0 support on your server if this is the device to
+be monitored.
+.IP "\(bu" 4
+Edit sys:/mrtg/bin/MakeMrtgCfg.ncf:
+.Sp
+replace ccccc with the \s-1GET\s0 community name for the \s-1SNMP\s0 device (typically 'public'),
+.Sp
+replace ddddd with the \s-1DNS\s0 name or \s-1IP\s0 address of the device to be monitored. e.g public@www.myserver.com, public@10.202.65.180
+.Sp
+Note 1: These are \s-1NOT\s0 mail addresses, they just look like one!
+.Sp
+Note 2: If multiple devices are to be monitored, add their entries to the same line:
+.Sp
+e.g perl cfgmaker.pl public@www.myserver.com public@10.202.65.180 > sys:/mrtg/bin/mrtg.cfg
+.Sp
+In this \*(L"Getting Started\*(R", it is 'suggested' to only monitor a single device.
+.IP "\(bu" 4
+At the server console, run:
+.Sp
+.Vb 1
+\& sys:/mrtg/bin/MakeMrtgCfg.ncf
+.Ve
+.Sp
+This will create Mrtg.cfg in sys:/mrtg/bin.
+.IP "\(bu" 4
+Edit the Mrtg.cfg configuration file created in the previous step. Note the following:
+.Sp
+It was found, when testing \s-1MRTG\s0 on a NetWare 6.5 server using a \s-1NIC\s0 Interface, that mrtg.cfg contained
+the following message:
+.Sp
+.Vb 5
+\& ### Interface 1 >> Descr: \*(AqIntel(R)\-8255x\-based\-Network\-Connection\*(Aq...
+\& ### The following interface is commented out because:
+\& ### * has a speed of 0 which makes no sense
+\& #
+\& ...
+.Ve
+.Sp
+If this occurs, edit MakeMrtgCfg.ncf and add the following parameter as shown:
+.Sp
+.Vb 1
+\& perl sys:\emrtg\ebin\ecfgmaker.pl \-\-zero\-speed=nnn public@10.202.65.180 > sys:\emrtg\ebin\eMrtg.cfg
+.Ve
+.Sp
+where \fBnnn\fR is the interface speed in bits per second. For a 100 Megabit \s-1LAN NIC,\s0 nnn = 10000000. It will be
+necessary to re-execute the MakeMrtgCfg.ncf script before continuing with this section.
+.Sp
+Below line 16 (*** Global Defaults), add:
+.Sp
+.Vb 4
+\& HtmlDir: <a path> e.g HtmlDir: sys:/mrtg/html
+\& ImageDir: <a path> e.g ImageDir: sys:/mrtg/html/work
+\& LogDir: <a path> e.g LogDir: sys:/mrtg/logs
+\& IconDir: <a path> e.g IconDir: ./images
+.Ve
+.Sp
+Note 1. The HtmlDir entry specifies where \s-1MRTG\s0 will create its \s-1HTML\s0 pages.
+.Sp
+Note 2. The ImageDir entry specifies where the created graphic icons are placed.
+.Sp
+Note 3. The IconDir entry specifies where the supplied \s-1MRTG\s0 icons are located.
+It \s-1MUST\s0 be a relative path from HtmlDir or absolute \s-1URL.\s0 The value shown
+is recommended.
+.IP "\(bu" 4
+At the server console run:
+.Sp
+.Vb 1
+\& sys:/mrtg/bin/RunMrtg.ncf
+.Ve
+.Sp
+several times. By the third time it should run without showing error messages on the console screen.
+.Sp
+This should create.
+.Sp
+\&\- A \s-1HTML\s0 page in the (HtmlDir) directory for each monitored device,
+.Sp
+\&\- A .dat file in the (ImageDir) directory for each monitored device,
+.Sp
+\&\- Several .png icons in the (ImageDir) directory,
+.Sp
+\&\- Some log file entries in the (LogDir) directory.
+.Sp
+Note: If you experience a \*(L"Use of uninitialised value in split\*(R" error, it will be necessary to
+create a 'Path' environment variable at the server console; use the following example
+.Sp
+.Vb 1
+\& env path="SYS:\e" (The actual value is immaterial, as long as the var itself exists.)
+.Ve
+.IP "\(bu" 4
+Edit sys:/mrtg/bin/MakeMrtgIndex.ncf. Change the indicated <path> shown in the following example to
+match the value entered for (HtmlDir).
+.Sp
+.Vb 1
+\& perl \-\-noscreen sys:/mrtg/bin/indexmaker.pl sys:/mrtg/bin/Mrtg.cfg > <path>/index.html
+.Ve
+.IP "\(bu" 4
+Create an index.html page linking the seperate device \s-1HTML\s0 page(s). At the server console, run:
+.Sp
+.Vb 1
+\& sys:/mrtg/bin/MakeMrtgIndex.ncf
+.Ve
+.Sp
+This will create index.html in the (HtmlDir) directory.
+.IP "\(bu" 4
+Optionally, configure a Web Server to permit access to the directory specified in (HtmlDir) to view the \s-1MRTG\s0
+graphs remotely, at, for example:
+.Sp
+.Vb 1
+\& http://ip_or_dns/mrtg/index.html
+.Ve
+.Sp
+A sample configuration for an Apache Webserver is shown:
+.Sp
+.Vb 6
+\& Alias /mrtg/ "SYS:/mrtg/html/"
+\& <Directory "SYS:/mrtg/html">
+\& AllowOverride None
+\& Order allow,deny
+\& Allow from all
+\& </Directory>
+.Ve
+.IP "\(bu" 4
+Set the property of the directory pointed to by (ImageDir), to 'Purge Immediate'.
+.IP "\(bu" 4
+Finally, read the \s-1MRTG\s0 documentation for much more detailed configuration/usage information.
+.PP
+Welcome to \s-1MRTG\s0!!
+.SH "MAKE MRTG RUN ALL THE TIME"
+.IX Header "MAKE MRTG RUN ALL THE TIME"
+\&\s-1MRTG\s0 can be made to run periodically by at least two means:
+.IP "\(bu" 4
+Using \s-1CRON\s0 Scheduling
+.IP "\(bu" 4
+Running \s-1MRTG\s0 in Daemon Mode
+.SS "\s-1CRON\s0 Scheduling"
+.IX Subsection "CRON Scheduling"
+To use \s-1CRON\s0 scheduling, create a \s-1CRON\s0 Scheduler entry to execute the RunMrtg.ncf file on a frequency appropriate for
+the server environment and information desired. The following entry in the sys:\eetc\ecrontab file will execute \s-1MRTG\s0
+every five minutes:
+.PP
+.Vb 1
+\& 0,5,10,15,20,25,30,35,40,45,50,55 * * * * sys:\emrtg\ebin\erunmrtg.ncf
+.Ve
+.PP
+The \s-1CRON\s0 Scheduler (cron.nlm) can be started automatically by adding it in \s-1AUTOEXEC\s0.ncf or, manually loading it at
+the server console.
+.SS "\s-1MRTG\s0 in Daemon Mode"
+.IX Subsection "MRTG in Daemon Mode"
+Refer to the MRTG-Reference document for information about the 'RunAsDaemon' option. Its use is outside the scope
+of this document.
+.SH "TROUBLESHOOTING"
+.IX Header "TROUBLESHOOTING"
+Read the \s-1MRTG\s0 documents, Perl documents or, finally, submit questions to the \s-1MRTG\s0 User forums.
+.PP
+For NetWare specific issues, submit questions to the Perl forum at
+news://developer\-forums.novell.com/novell.devsup.perl (Novell Developer Forums).
+.SH "COMPILING RATEUP.NLM"
+.IX Header "COMPILING RATEUP.NLM"
+In addition to the rateup.c and Makefile.Netware supplied with the \s-1MRTG\s0 release, you will also need:
+.IP "\(bu" 4
+Metrowerks CodeWarrior with NetWare Support \s-1OR GCC\s0 Compiler (v3.0.3 or later) with NlmConv Utility
+.IP "\(bu" 4
+Novell LibC \s-1NDK \s0(February 2004 or later)
+.IP "\(bu" 4
+\&\s-1GD\s0 Graphics Library (v2.0.33 or later)
+.IP "\(bu" 4
+LibPNG Graphics Library (v1.2.8 or later)
+.IP "\(bu" 4
+ZLib Library (v1.2.3 or later)
+.IP "\(bu" 4
+The get_ver.awk script
+.IP "\(bu" 4
+A copy of the \s-1GNU\s0 build tools. (See http://sourceforge.net/projects/gnuwin32/)
+.PP
+The auxiliary libraries can be obtained from:
+.PP
+\&\s-1GD\s0 Graphics Library. (See http://www.boutell.com/gd/ )
+.PP
+\&\s-1PNG\s0 Graphics Library. (See http://libpng.sourceforge.net/ )
+.PP
+zLib Compression Library. (See http://www.gzip.org/zlib/ )
+.PP
+Edit the Makefile.Netware file as required to match your installation paths; search
+the file for the key word 'Edit'.
+.SH "NETWARE SUPPORT"
+.IX Header "NETWARE SUPPORT"
+For copies of the \s-1NCF\s0 and get_ver.awk scripts, see Appendix.
+.PP
+For NetWare specific issues, submit questions to the Perl forum at
+news://developer\-forums.novell.com/novell.devsup.perl (Novell Developer Forums).
+.PP
+To move the \s-1MRTG\s0 application to a volume other than \s-1SYS:\s0 you will need to edit the \s-1NCF\s0
+scripts provided plus the MRTG[.pl] script itself in two places.
+.SH "NEW RATEUP SWITCH"
+.IX Header "NEW RATEUP SWITCH"
+The MRTG[.pl] script, when used on a NetWare platform, uses Rateup[.nlm] with the new
+commandline switch:
+.PP
+.Vb 1
+\& RATEUP \-f filename
+.Ve
+.PP
+where the filename parameter can include a leading path element.
+.PP
+The file format is exactly the same as that used on the commandline by other operating
+systems, including the leading path and name of the Rateup \s-1NLM.\s0
+.SH "APPENDIX"
+.IX Header "APPENDIX"
+The Appendix includes 'copies' of the following files:
+.IP "\(bu" 4
+The \s-1NCF\s0 files used during \s-1MRTG\s0 configuration,
+.PP
+To create copies of these files, simply 'cut and paste' into your favourite '\fBtext editor\fR' and save
+under their respective names. You should remove the leading space from each line.
+.PP
+\fIMakeMrtgCfg.NCF\fR
+.IX Subsection "MakeMrtgCfg.NCF"
+.PP
+.Vb 6
+\& # MakeMrtgCfg.NCF
+\& # Purpose : Create the MRTG Configuration File
+\& # Changed : 5/05/2005 New
+\& # Located : SYS:MRTG\eBIN
+\& # Set For :
+\& # Params :
+\&
+\& # Edit this file and:
+\&
+\& # Replace ccccc with your device GET SNMP Community Name \- If unsure try \*(Aqpublic\*(Aq.
+\& # Replace ddddd with your device IP (n.n.n.n) or domain name.
+\&
+\& perl \-\-noscreen sys:\emrtg\ebin\ecfgmaker.pl ccccc@ddddd > sys:\emrtg\ebin\eMrtg.cfg
+\&
+\& #
+\& # End of MakeMrtgCfg.NCF
+.Ve
+.PP
+\fIRunMrtg.NCF\fR
+.IX Subsection "RunMrtg.NCF"
+.PP
+.Vb 6
+\& # RunMrtg.NCF
+\& # Purpose : Run the MRTG Application
+\& # Changed : 5/05/2005 New
+\& # Located : SYS:MRTG\eBIN
+\& # Set For :
+\& # Params :
+\&
+\& # The paths are as per the examples recommended in "Getting Started".
+\&
+\& perl \-\-noscreen sys:\emrtg\ebin\emrtg.pl sys:\emrtg\ebin\emrtg.cfg
+\&
+\& #
+\& # End of RunMrtg.NCF
+.Ve
+.PP
+\fIMakeMrtgIndex.NCF\fR
+.IX Subsection "MakeMrtgIndex.NCF"
+.PP
+.Vb 6
+\& # MakeMrtgIndex.NCF
+\& # Purpose : Create the HTML Index File for MRTG HTML data pages
+\& # Changed : 5/05/2005 New
+\& # Located : SYS:MRTG\eBIN
+\& # Set For :
+\& # Params :
+\&
+\& # Note: Edit this file and change the redirected output to the location
+\& # specified for HtmlDir or WorkDir. The sys:\eapache2\ehtdocs\emrtg\eindex.html
+\& # is based on the examples in "Getting Started".
+\&
+\& perl \-\-noscreen sys:\emrtg\ebin\eindexmaker.pl sys:\emrtg\ebin\eMrtg.cfg > sys:\emrtg\ehtml\eindex.html
+\&
+\& #
+\& # End of MakeMrtgIndex.NCF
+.Ve
+.SH "LICENSE"
+.IX Header "LICENSE"
+\&\s-1GNU\s0 General Public License
+.SH "CREDITS"
+.IX Header "CREDITS"
+The \s-1MRTG\s0 for NetWare exists largely through the efforts of Guenter Knauf and feedback from beta testers.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Norm W..
diff --git a/doc/mrtg-nw-guide.pod b/doc/mrtg-nw-guide.pod
new file mode 100644
index 0000000..b83529a
--- /dev/null
+++ b/doc/mrtg-nw-guide.pod
@@ -0,0 +1,471 @@
+=head1 NAME
+
+mrtg-nw-guide - MRTG for NetWare
+
+=head1 SYNOPSIS
+
+This guide is intended to aid in the installation and configuration of MRTG on a NetWare server.
+
+=head1 OVERVIEW
+
+MRTG is a relative newcomer to the NetWare platform. Earlier versions of NetWare could not run MRTG natively for
+several reasons:
+
+=over
+
+=item *
+
+Absence of NetWare OS support in the MRTG package.
+
+=item *
+
+A NetWare server commandline length limitation.
+
+=item *
+
+Absence of the Rateup executable (Rateup.nlm).
+
+=item *
+
+A standard installation method.
+
+=item *
+
+Problems with NetWare's implementation of Perl.
+
+=back
+
+Support for the NetWare OS has now been fully added into MRTG, beginning with MRTG release 2.12.2.
+
+Liberallly minded operating systems support a commandline length approaching 1000 characters. In such environments it
+was an easy matter to pass the sometimes high number of parameters used by MRTG's Rateup executable directly on the
+commandline. Until NetWare 6.5, NetWare had a commandline limit of 512 characters. This limitation was also removed
+for NetWare 6.0 by Service Pack 5. For other NetWare versions and earlier Service Packs, this limitation remains. To
+permit a 'standard' interface for NetWare, the Rateup executable has been modified to also read its parameters from
+a file, and the MRTG script has been modified to support this method on a NetWare platform. (See New Rateup Switch)
+
+A Rateup NLM is now available, along with the necessary scripts to build it if required. See the NetWare Support
+section of this document for further details. Additionally, mrtg.pl has been revised because of the unique (to NetWare)
+name of executables (NLM).
+
+The absence of a specific installation procedure has caused MRTG to fail in the past because the Perl script could
+not find or load the Rateup executable. The installation method supplied here will solve this problem for now.
+
+The MRTG.pl script in the 2.12.2 (or later) version of MRTG has been configured to suit all likely versions of
+NetWare able to use Perl5, and bypasses all of the known problems with NetWare Perl running MRTG.
+
+=head1 PREREQUISITES
+
+You will need the following:
+
+=over
+
+=item *
+
+Perl 5.8.0 for NetWare with latest Perl Updates (February, 2005 or later; previous versions MAY work)
+
+=item *
+
+NetWare 5.1 w/ SP8, NetWare 6.0 w/ SP5 or NetWare 6.5 w/ SP2.
+
+=item *
+
+A copy of the MRTG Package (v2.12.2 at time of writting)
+
+=item *
+
+Three .ncf files to execute the Perl scripts at the NetWare server console.
+
+=item *
+
+A copy of the Rateup NLM (Pre-built or compiled)
+
+=item *
+
+Optionally, any NetWare supported Web Server (Netscape, Apache 1.3 or 2.0)
+
+=back
+
+For copies of the .ncf files and Rateup NLM, see NetWare Support in this document.
+
+=head1 INSTALLING MRTG
+
+=over
+
+=item 1.
+
+Install the latest Perl 5.8.x release on your server. See the Perl documentation for details.
+
+=item 2.
+
+Create the following directories:
+
+ SYS:/Mrtg
+ SYS:/Mrtg/bin
+ SYS:/Mrtg/contrib (Optional for this document)
+ SYS:/Mrtg/doc (Optional for this document)
+ SYS:/Mrtg/html
+ SYS:/Mrtg/html/images
+ SYS:/Mrtg/html/work
+ SYS:/Mrtg/lib
+ SYS:/Mrtg/logs
+ SYS:/Mrtg/translate
+
+=item 3.
+
+Copy from the MRTG package the following files:
+
+ \bin\* to SYS:/Mrtg/bin All files. See Note 1.
+
+Note 1: Add a .pl extension to the mrtg, cfgmaker and indexmaker files.
+The rateup.exe will NOT be needed on the NetWare server.
+
+ \contrib\* to SYS:/Mrtg/contrib/ Include sub-directories
+ \doc\* to SYS:/Mrtg/doc/ All files
+ \images\* to SYS:/Mrtg/html/images/ All files
+ \translate\* to SYS:/Mrtg/translate/ All files. See Note 2.
+
+Note 2: For English-only language support, all \translate files EXCEPT Locales_mrtg may be deleted.
+
+ \lib\* to SYS:/Mrtg/lib Include sub-directories. See Note 3.
+
+Note 3: This will create the SYS:/Mrtg/lib/mrtg2 and ./pod directories.
+
+=item 4.
+
+Create copies of the three .ncf files and install them:
+
+ *.ncf to SYS:/Mrtg/bin
+
+See NetWare Support in this document for details on how to create copies of these files.
+
+=item 5.
+
+See Compiling Rateup.nlm"> in this document for details on compiling the Rateup NLM yourself if desired.
+A prebuit verion is available in the .\mrtg\bin directory where it must remain.
+
+=back
+
+=head1 CONFIGURING MRTG
+
+=over
+
+=item *
+
+Refer to Novell documentation on configuring and loading SNMP support on your server if this is the device to
+be monitored.
+
+=item *
+
+Edit sys:/mrtg/bin/MakeMrtgCfg.ncf:
+
+replace ccccc with the GET community name for the SNMP device (typically 'public'),
+
+replace ddddd with the DNS name or IP address of the device to be monitored. e.g public@www.myserver.com, public@10.202.65.180
+
+Note 1: These are NOT mail addresses, they just look like one!
+
+Note 2: If multiple devices are to be monitored, add their entries to the same line:
+
+e.g perl cfgmaker.pl public@www.myserver.com public@10.202.65.180 > sys:/mrtg/bin/mrtg.cfg
+
+In this "Getting Started", it is 'suggested' to only monitor a single device.
+
+=item *
+
+At the server console, run:
+
+ sys:/mrtg/bin/MakeMrtgCfg.ncf
+
+This will create Mrtg.cfg in sys:/mrtg/bin.
+
+=item *
+
+Edit the Mrtg.cfg configuration file created in the previous step. Note the following:
+
+It was found, when testing MRTG on a NetWare 6.5 server using a NIC Interface, that mrtg.cfg contained
+the following message:
+
+ ### Interface 1 >> Descr: 'Intel(R)-8255x-based-Network-Connection'...
+ ### The following interface is commented out because:
+ ### * has a speed of 0 which makes no sense
+ #
+ ...
+
+If this occurs, edit MakeMrtgCfg.ncf and add the following parameter as shown:
+
+ perl sys:\mrtg\bin\cfgmaker.pl --zero-speed=nnn public@10.202.65.180 > sys:\mrtg\bin\Mrtg.cfg
+
+where B<nnn> is the interface speed in bits per second. For a 100 Megabit LAN NIC, nnn = 10000000. It will be
+necessary to re-execute the MakeMrtgCfg.ncf script before continuing with this section.
+
+Below line 16 (*** Global Defaults), add:
+
+ HtmlDir: <a path> e.g HtmlDir: sys:/mrtg/html
+ ImageDir: <a path> e.g ImageDir: sys:/mrtg/html/work
+ LogDir: <a path> e.g LogDir: sys:/mrtg/logs
+ IconDir: <a path> e.g IconDir: ./images
+
+Note 1. The HtmlDir entry specifies where MRTG will create its HTML pages.
+
+Note 2. The ImageDir entry specifies where the created graphic icons are placed.
+
+Note 3. The IconDir entry specifies where the supplied MRTG icons are located.
+It MUST be a relative path from HtmlDir or absolute URL. The value shown
+is recommended.
+
+=item *
+
+At the server console run:
+
+ sys:/mrtg/bin/RunMrtg.ncf
+
+several times. By the third time it should run without showing error messages on the console screen.
+
+This should create.
+
+- A HTML page in the (HtmlDir) directory for each monitored device,
+
+- A .dat file in the (ImageDir) directory for each monitored device,
+
+- Several .png icons in the (ImageDir) directory,
+
+- Some log file entries in the (LogDir) directory.
+
+Note: If you experience a "Use of uninitialised value in split" error, it will be necessary to
+create a 'Path' environment variable at the server console; use the following example
+
+ env path="SYS:\" (The actual value is immaterial, as long as the var itself exists.)
+
+=item *
+
+Edit sys:/mrtg/bin/MakeMrtgIndex.ncf. Change the indicated E<lt>pathE<gt> shown in the following example to
+match the value entered for (HtmlDir).
+
+ perl --noscreen sys:/mrtg/bin/indexmaker.pl sys:/mrtg/bin/Mrtg.cfg > <path>/index.html
+
+=item *
+
+Create an index.html page linking the seperate device HTML page(s). At the server console, run:
+
+ sys:/mrtg/bin/MakeMrtgIndex.ncf
+
+This will create index.html in the (HtmlDir) directory.
+
+=item *
+
+Optionally, configure a Web Server to permit access to the directory specified in (HtmlDir) to view the MRTG
+graphs remotely, at, for example:
+
+ http://ip_or_dns/mrtg/index.html
+
+A sample configuration for an Apache Webserver is shown:
+
+ Alias /mrtg/ "SYS:/mrtg/html/"
+ <Directory "SYS:/mrtg/html">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+=item *
+
+Set the property of the directory pointed to by (ImageDir), to 'Purge Immediate'.
+
+=item *
+
+Finally, read the MRTG documentation for much more detailed configuration/usage information.
+
+=back
+
+Welcome to MRTG!!
+
+=head1 MAKE MRTG RUN ALL THE TIME
+
+MRTG can be made to run periodically by at least two means:
+
+=over
+
+=item *
+
+Using CRON Scheduling
+
+=item *
+
+Running MRTG in Daemon Mode
+
+=back
+
+=head2 CRON Scheduling
+
+To use CRON scheduling, create a CRON Scheduler entry to execute the RunMrtg.ncf file on a frequency appropriate for
+the server environment and information desired. The following entry in the sys:\etc\crontab file will execute MRTG
+every five minutes:
+
+ 0,5,10,15,20,25,30,35,40,45,50,55 * * * * sys:\mrtg\bin\runmrtg.ncf
+
+The CRON Scheduler (cron.nlm) can be started automatically by adding it in AUTOEXEC.ncf or, manually loading it at
+the server console.
+
+=head2 MRTG in Daemon Mode
+
+Refer to the MRTG-Reference document for information about the 'RunAsDaemon' option. Its use is outside the scope
+of this document.
+
+=head1 TROUBLESHOOTING
+
+Read the MRTG documents, Perl documents or, finally, submit questions to the MRTG User forums.
+
+For NetWare specific issues, submit questions to the Perl forum at
+news://developer-forums.novell.com/novell.devsup.perl (Novell Developer Forums).
+
+=head1 COMPILING RATEUP.NLM
+
+In addition to the rateup.c and Makefile.Netware supplied with the MRTG release, you will also need:
+
+=over
+
+=item *
+
+Metrowerks CodeWarrior with NetWare Support OR GCC Compiler (v3.0.3 or later) with NlmConv Utility
+
+=item *
+
+Novell LibC NDK (February 2004 or later)
+
+=item *
+
+GD Graphics Library (v2.0.33 or later)
+
+=item *
+
+LibPNG Graphics Library (v1.2.8 or later)
+
+=item *
+
+ZLib Library (v1.2.3 or later)
+
+=item *
+
+The get_ver.awk script
+
+=item *
+
+A copy of the GNU build tools. (See http://sourceforge.net/projects/gnuwin32/)
+
+=back
+
+The auxiliary libraries can be obtained from:
+
+GD Graphics Library. (See http://www.boutell.com/gd/ )
+
+PNG Graphics Library. (See http://libpng.sourceforge.net/ )
+
+zLib Compression Library. (See http://www.gzip.org/zlib/ )
+
+Edit the Makefile.Netware file as required to match your installation paths; search
+the file for the key word 'Edit'.
+
+=head1 NETWARE SUPPORT
+
+For copies of the NCF and get_ver.awk scripts, see Appendix.
+
+For NetWare specific issues, submit questions to the Perl forum at
+news://developer-forums.novell.com/novell.devsup.perl (Novell Developer Forums).
+
+To move the MRTG application to a volume other than SYS: you will need to edit the NCF
+scripts provided plus the MRTG[.pl] script itself in two places.
+
+=head1 NEW RATEUP SWITCH
+
+The MRTG[.pl] script, when used on a NetWare platform, uses Rateup[.nlm] with the new
+commandline switch:
+
+ RATEUP -f filename
+
+where the filename parameter can include a leading path element.
+
+The file format is exactly the same as that used on the commandline by other operating
+systems, including the leading path and name of the Rateup NLM.
+
+=head1 APPENDIX
+
+The Appendix includes 'copies' of the following files:
+
+=over
+
+=item *
+
+The NCF files used during MRTG configuration,
+
+=back
+
+To create copies of these files, simply 'cut and paste' into your favourite 'B<text editor>' and save
+under their respective names. You should remove the leading space from each line.
+
+=head3 MakeMrtgCfg.NCF
+
+ # MakeMrtgCfg.NCF
+ # Purpose : Create the MRTG Configuration File
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # Edit this file and:
+
+ # Replace ccccc with your device GET SNMP Community Name - If unsure try 'public'.
+ # Replace ddddd with your device IP (n.n.n.n) or domain name.
+
+ perl --noscreen sys:\mrtg\bin\cfgmaker.pl ccccc@ddddd > sys:\mrtg\bin\Mrtg.cfg
+
+ #
+ # End of MakeMrtgCfg.NCF
+
+=head3 RunMrtg.NCF
+
+ # RunMrtg.NCF
+ # Purpose : Run the MRTG Application
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # The paths are as per the examples recommended in "Getting Started".
+
+ perl --noscreen sys:\mrtg\bin\mrtg.pl sys:\mrtg\bin\mrtg.cfg
+
+ #
+ # End of RunMrtg.NCF
+
+=head3 MakeMrtgIndex.NCF
+
+ # MakeMrtgIndex.NCF
+ # Purpose : Create the HTML Index File for MRTG HTML data pages
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # Note: Edit this file and change the redirected output to the location
+ # specified for HtmlDir or WorkDir. The sys:\apache2\htdocs\mrtg\index.html
+ # is based on the examples in "Getting Started".
+
+ perl --noscreen sys:\mrtg\bin\indexmaker.pl sys:\mrtg\bin\Mrtg.cfg > sys:\mrtg\html\index.html
+
+ #
+ # End of MakeMrtgIndex.NCF
+
+=head1 LICENSE
+
+GNU General Public License
+
+=head1 CREDITS
+
+The MRTG for NetWare exists largely through the efforts of Guenter Knauf and feedback from beta testers.
+
+=head1 AUTHOR
+
+Norm W..
+
+=cut
diff --git a/doc/mrtg-nw-guide.txt b/doc/mrtg-nw-guide.txt
new file mode 100644
index 0000000..f026206
--- /dev/null
+++ b/doc/mrtg-nw-guide.txt
@@ -0,0 +1,408 @@
+MRTG-NW-GUIDE(1) mrtg MRTG-NW-GUIDE(1)
+
+
+
+NNAAMMEE
+ mrtg-nw-guide - MRTG for NetWare
+
+SSYYNNOOPPSSIISS
+ This guide is intended to aid in the installation and configuration of
+ MRTG on a NetWare server.
+
+OOVVEERRVVIIEEWW
+ MRTG is a relative newcomer to the NetWare platform. Earlier versions
+ of NetWare could not run MRTG natively for several reasons:
+
+ +o Absence of NetWare OS support in the MRTG package.
+
+ +o A NetWare server commandline length limitation.
+
+ +o Absence of the Rateup executable (Rateup.nlm).
+
+ +o A standard installation method.
+
+ +o Problems with NetWare's implementation of Perl.
+
+ Support for the NetWare OS has now been fully added into MRTG,
+ beginning with MRTG release 2.12.2.
+
+ Liberallly minded operating systems support a commandline length
+ approaching 1000 characters. In such environments it was an easy matter
+ to pass the sometimes high number of parameters used by MRTG's Rateup
+ executable directly on the commandline. Until NetWare 6.5, NetWare had
+ a commandline limit of 512 characters. This limitation was also removed
+ for NetWare 6.0 by Service Pack 5. For other NetWare versions and
+ earlier Service Packs, this limitation remains. To permit a 'standard'
+ interface for NetWare, the Rateup executable has been modified to also
+ read its parameters from a file, and the MRTG script has been modified
+ to support this method on a NetWare platform. (See New Rateup Switch)
+
+ A Rateup NLM is now available, along with the necessary scripts to
+ build it if required. See the NetWare Support section of this document
+ for further details. Additionally, mrtg.pl has been revised because of
+ the unique (to NetWare) name of executables (NLM).
+
+ The absence of a specific installation procedure has caused MRTG to
+ fail in the past because the Perl script could not find or load the
+ Rateup executable. The installation method supplied here will solve
+ this problem for now.
+
+ The MRTG.pl script in the 2.12.2 (or later) version of MRTG has been
+ configured to suit all likely versions of NetWare able to use Perl5,
+ and bypasses all of the known problems with NetWare Perl running MRTG.
+
+PPRREERREEQQUUIISSIITTEESS
+ You will need the following:
+
+ +o Perl 5.8.0 for NetWare with latest Perl Updates (February, 2005 or
+ later; previous versions MAY work)
+
+ +o NetWare 5.1 w/ SP8, NetWare 6.0 w/ SP5 or NetWare 6.5 w/ SP2.
+
+ +o A copy of the MRTG Package (v2.12.2 at time of writting)
+
+ +o Three .ncf files to execute the Perl scripts at the NetWare server
+ console.
+
+ +o A copy of the Rateup NLM (Pre-built or compiled)
+
+ +o Optionally, any NetWare supported Web Server (Netscape, Apache 1.3
+ or 2.0)
+
+ For copies of the .ncf files and Rateup NLM, see NetWare Support in
+ this document.
+
+IINNSSTTAALLLLIINNGG MMRRTTGG
+ 1. Install the latest Perl 5.8.x release on your server. See the Perl
+ documentation for details.
+
+ 2. Create the following directories:
+
+ SYS:/Mrtg
+ SYS:/Mrtg/bin
+ SYS:/Mrtg/contrib (Optional for this document)
+ SYS:/Mrtg/doc (Optional for this document)
+ SYS:/Mrtg/html
+ SYS:/Mrtg/html/images
+ SYS:/Mrtg/html/work
+ SYS:/Mrtg/lib
+ SYS:/Mrtg/logs
+ SYS:/Mrtg/translate
+
+ 3. Copy from the MRTG package the following files:
+
+ \bin\* to SYS:/Mrtg/bin All files. See Note 1.
+
+ Note 1: Add a .pl extension to the mrtg, cfgmaker and indexmaker
+ files. The rateup.exe will NOT be needed on the NetWare server.
+
+ \contrib\* to SYS:/Mrtg/contrib/ Include sub-directories
+ \doc\* to SYS:/Mrtg/doc/ All files
+ \images\* to SYS:/Mrtg/html/images/ All files
+ \translate\* to SYS:/Mrtg/translate/ All files. See Note 2.
+
+ Note 2: For English-only language support, all \translate files
+ EXCEPT Locales_mrtg may be deleted.
+
+ \lib\* to SYS:/Mrtg/lib Include sub-directories. See Note 3.
+
+ Note 3: This will create the SYS:/Mrtg/lib/mrtg2 and ./pod
+ directories.
+
+ 4. Create copies of the three .ncf files and install them:
+
+ *.ncf to SYS:/Mrtg/bin
+
+ See NetWare Support in this document for details on how to create
+ copies of these files.
+
+ 5. See Compiling Rateup.nlm"> in this document for details on
+ compiling the Rateup NLM yourself if desired. A prebuit verion is
+ available in the .\mrtg\bin directory where it must remain.
+
+CCOONNFFIIGGUURRIINNGG MMRRTTGG
+ +o Refer to Novell documentation on configuring and loading SNMP
+ support on your server if this is the device to be monitored.
+
+ +o Edit sys:/mrtg/bin/MakeMrtgCfg.ncf:
+
+ replace ccccc with the GET community name for the SNMP device
+ (typically 'public'),
+
+ replace ddddd with the DNS name or IP address of the device to be
+ monitored. e.g public@www.myserver.com, public@10.202.65.180
+
+ Note 1: These are NOT mail addresses, they just look like one!
+
+ Note 2: If multiple devices are to be monitored, add their entries
+ to the same line:
+
+ e.g perl cfgmaker.pl public@www.myserver.com public@10.202.65.180
+ > sys:/mrtg/bin/mrtg.cfg
+
+ In this "Getting Started", it is 'suggested' to only monitor a
+ single device.
+
+ +o At the server console, run:
+
+ sys:/mrtg/bin/MakeMrtgCfg.ncf
+
+ This will create Mrtg.cfg in sys:/mrtg/bin.
+
+ +o Edit the Mrtg.cfg configuration file created in the previous step.
+ Note the following:
+
+ It was found, when testing MRTG on a NetWare 6.5 server using a NIC
+ Interface, that mrtg.cfg contained the following message:
+
+ ### Interface 1 >> Descr: 'Intel(R)-8255x-based-Network-Connection'...
+ ### The following interface is commented out because:
+ ### * has a speed of 0 which makes no sense
+ #
+ ...
+
+ If this occurs, edit MakeMrtgCfg.ncf and add the following
+ parameter as shown:
+
+ perl sys:\mrtg\bin\cfgmaker.pl --zero-speed=nnn public@10.202.65.180 > sys:\mrtg\bin\Mrtg.cfg
+
+ where nnnnnn is the interface speed in bits per second. For a 100
+ Megabit LAN NIC, nnn = 10000000. It will be necessary to re-execute
+ the MakeMrtgCfg.ncf script before continuing with this section.
+
+ Below line 16 (*** Global Defaults), add:
+
+ HtmlDir: <a path> e.g HtmlDir: sys:/mrtg/html
+ ImageDir: <a path> e.g ImageDir: sys:/mrtg/html/work
+ LogDir: <a path> e.g LogDir: sys:/mrtg/logs
+ IconDir: <a path> e.g IconDir: ./images
+
+ Note 1. The HtmlDir entry specifies where MRTG will create its HTML
+ pages.
+
+ Note 2. The ImageDir entry specifies where the created graphic
+ icons are placed.
+
+ Note 3. The IconDir entry specifies where the supplied MRTG icons
+ are located. It MUST be a relative path from HtmlDir or absolute
+ URL. The value shown is recommended.
+
+ +o At the server console run:
+
+ sys:/mrtg/bin/RunMrtg.ncf
+
+ several times. By the third time it should run without showing
+ error messages on the console screen.
+
+ This should create.
+
+ - A HTML page in the (HtmlDir) directory for each monitored device,
+
+ - A .dat file in the (ImageDir) directory for each monitored
+ device,
+
+ - Several .png icons in the (ImageDir) directory,
+
+ - Some log file entries in the (LogDir) directory.
+
+ Note: If you experience a "Use of uninitialised value in split"
+ error, it will be necessary to create a 'Path' environment variable
+ at the server console; use the following example
+
+ env path="SYS:\" (The actual value is immaterial, as long as the var itself exists.)
+
+ +o Edit sys:/mrtg/bin/MakeMrtgIndex.ncf. Change the indicated <path>
+ shown in the following example to match the value entered for
+ (HtmlDir).
+
+ perl --noscreen sys:/mrtg/bin/indexmaker.pl sys:/mrtg/bin/Mrtg.cfg > <path>/index.html
+
+ +o Create an index.html page linking the seperate device HTML page(s).
+ At the server console, run:
+
+ sys:/mrtg/bin/MakeMrtgIndex.ncf
+
+ This will create index.html in the (HtmlDir) directory.
+
+ +o Optionally, configure a Web Server to permit access to the
+ directory specified in (HtmlDir) to view the MRTG graphs remotely,
+ at, for example:
+
+ http://ip_or_dns/mrtg/index.html
+
+ A sample configuration for an Apache Webserver is shown:
+
+ Alias /mrtg/ "SYS:/mrtg/html/"
+ <Directory "SYS:/mrtg/html">
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ +o Set the property of the directory pointed to by (ImageDir), to
+ 'Purge Immediate'.
+
+ +o Finally, read the MRTG documentation for much more detailed
+ configuration/usage information.
+
+ Welcome to MRTG!!
+
+MMAAKKEE MMRRTTGG RRUUNN AALLLL TTHHEE TTIIMMEE
+ MRTG can be made to run periodically by at least two means:
+
+ +o Using CRON Scheduling
+
+ +o Running MRTG in Daemon Mode
+
+ CCRROONN SScchheedduulliinngg
+ To use CRON scheduling, create a CRON Scheduler entry to execute the
+ RunMrtg.ncf file on a frequency appropriate for the server environment
+ and information desired. The following entry in the sys:\etc\crontab
+ file will execute MRTG every five minutes:
+
+ 0,5,10,15,20,25,30,35,40,45,50,55 * * * * sys:\mrtg\bin\runmrtg.ncf
+
+ The CRON Scheduler (cron.nlm) can be started automatically by adding it
+ in AUTOEXEC.ncf or, manually loading it at the server console.
+
+ MMRRTTGG iinn DDaaeemmoonn MMooddee
+ Refer to the MRTG-Reference document for information about the
+ 'RunAsDaemon' option. Its use is outside the scope of this document.
+
+TTRROOUUBBLLEESSHHOOOOTTIINNGG
+ Read the MRTG documents, Perl documents or, finally, submit questions
+ to the MRTG User forums.
+
+ For NetWare specific issues, submit questions to the Perl forum at
+ news://developer-forums.novell.com/novell.devsup.perl (Novell Developer
+ Forums).
+
+CCOOMMPPIILLIINNGG RRAATTEEUUPP..NNLLMM
+ In addition to the rateup.c and Makefile.Netware supplied with the MRTG
+ release, you will also need:
+
+ +o Metrowerks CodeWarrior with NetWare Support OR GCC Compiler (v3.0.3
+ or later) with NlmConv Utility
+
+ +o Novell LibC NDK (February 2004 or later)
+
+ +o GD Graphics Library (v2.0.33 or later)
+
+ +o LibPNG Graphics Library (v1.2.8 or later)
+
+ +o ZLib Library (v1.2.3 or later)
+
+ +o The get_ver.awk script
+
+ +o A copy of the GNU build tools. (See
+ http://sourceforge.net/projects/gnuwin32/)
+
+ The auxiliary libraries can be obtained from:
+
+ GD Graphics Library. (See http://www.boutell.com/gd/ )
+
+ PNG Graphics Library. (See http://libpng.sourceforge.net/ )
+
+ zLib Compression Library. (See http://www.gzip.org/zlib/ )
+
+ Edit the Makefile.Netware file as required to match your installation
+ paths; search the file for the key word 'Edit'.
+
+NNEETTWWAARREE SSUUPPPPOORRTT
+ For copies of the NCF and get_ver.awk scripts, see Appendix.
+
+ For NetWare specific issues, submit questions to the Perl forum at
+ news://developer-forums.novell.com/novell.devsup.perl (Novell Developer
+ Forums).
+
+ To move the MRTG application to a volume other than SYS: you will need
+ to edit the NCF scripts provided plus the MRTG[.pl] script itself in
+ two places.
+
+NNEEWW RRAATTEEUUPP SSWWIITTCCHH
+ The MRTG[.pl] script, when used on a NetWare platform, uses
+ Rateup[.nlm] with the new commandline switch:
+
+ RATEUP -f filename
+
+ where the filename parameter can include a leading path element.
+
+ The file format is exactly the same as that used on the commandline by
+ other operating systems, including the leading path and name of the
+ Rateup NLM.
+
+AAPPPPEENNDDIIXX
+ The Appendix includes 'copies' of the following files:
+
+ +o The NCF files used during MRTG configuration,
+
+ To create copies of these files, simply 'cut and paste' into your
+ favourite 'tteexxtt eeddiittoorr' and save under their respective names. You
+ should remove the leading space from each line.
+
+ _M_a_k_e_M_r_t_g_C_f_g_._N_C_F
+
+ # MakeMrtgCfg.NCF
+ # Purpose : Create the MRTG Configuration File
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # Edit this file and:
+
+ # Replace ccccc with your device GET SNMP Community Name - If unsure try 'public'.
+ # Replace ddddd with your device IP (n.n.n.n) or domain name.
+
+ perl --noscreen sys:\mrtg\bin\cfgmaker.pl ccccc@ddddd > sys:\mrtg\bin\Mrtg.cfg
+
+ #
+ # End of MakeMrtgCfg.NCF
+
+ _R_u_n_M_r_t_g_._N_C_F
+
+ # RunMrtg.NCF
+ # Purpose : Run the MRTG Application
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # The paths are as per the examples recommended in "Getting Started".
+
+ perl --noscreen sys:\mrtg\bin\mrtg.pl sys:\mrtg\bin\mrtg.cfg
+
+ #
+ # End of RunMrtg.NCF
+
+ _M_a_k_e_M_r_t_g_I_n_d_e_x_._N_C_F
+
+ # MakeMrtgIndex.NCF
+ # Purpose : Create the HTML Index File for MRTG HTML data pages
+ # Changed : 5/05/2005 New
+ # Located : SYS:MRTG\BIN
+ # Set For :
+ # Params :
+
+ # Note: Edit this file and change the redirected output to the location
+ # specified for HtmlDir or WorkDir. The sys:\apache2\htdocs\mrtg\index.html
+ # is based on the examples in "Getting Started".
+
+ perl --noscreen sys:\mrtg\bin\indexmaker.pl sys:\mrtg\bin\Mrtg.cfg > sys:\mrtg\html\index.html
+
+ #
+ # End of MakeMrtgIndex.NCF
+
+LLIICCEENNSSEE
+ GNU General Public License
+
+CCRREEDDIITTSS
+ The MRTG for NetWare exists largely through the efforts of Guenter
+ Knauf and feedback from beta testers.
+
+AAUUTTHHOORR
+ Norm W..
+
+
+
+2.17.7 2018-07-13 MRTG-NW-GUIDE(1)
diff --git a/doc/mrtg-r.gif b/doc/mrtg-r.gif
new file mode 100644
index 0000000..cc19bd6
--- /dev/null
+++ b/doc/mrtg-r.gif
Binary files differ
diff --git a/doc/mrtg-r.png b/doc/mrtg-r.png
new file mode 100644
index 0000000..a753c6a
--- /dev/null
+++ b/doc/mrtg-r.png
Binary files differ
diff --git a/doc/mrtg-reference.1 b/doc/mrtg-reference.1
new file mode 100644
index 0000000..ea403cc
--- /dev/null
+++ b/doc/mrtg-reference.1
@@ -0,0 +1,2437 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-REFERENCE 1"
+.TH MRTG-REFERENCE 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-reference \- MRTG 2.17.7 configuration reference
+.SH "OVERVIEW"
+.IX Header "OVERVIEW"
+The runtime behaviour of \s-1MRTG\s0 is governed by a configuration file.
+Run-of-the-mill configuration files can be generated with \fBcfgmaker\fR.
+(Check cfgmaker). But for more elaborate configurations some hand-tuning
+is required.
+.PP
+This document describes all the configuration options understood by
+the mrtg software.
+.SH "SYNTAX"
+.IX Header "SYNTAX"
+\&\s-1MRTG\s0 configuration file syntax follows some simple rules:
+.IP "\(bu" 4
+Keywords must start at the beginning of a line.
+.IP "\(bu" 4
+Lines which follow a keyword line which start
+with a blank are appended to the keyword line
+.IP "\(bu" 4
+Empty Lines are ignored
+.IP "\(bu" 4
+Lines starting with a # sign are comments.
+.IP "\(bu" 4
+You can add other files into the configuration file using
+.Sp
+\&\fBInclude:\fR \fIfile\fR
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Include: base\-options.inc
+.Ve
+.Sp
+If included files are specified with relative paths, both the current
+working directory and the directory containing the main config file will
+be searched for the files. The current working directory will be searched
+first.
+.Sp
+If the included filename contains an asterisk, then this is taken as a
+wildcard for zero or more characters, and all matching files are included.
+Thus, you can use this statement to include all files in a specified
+subdirectory.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Include: servers/*.cfg
+.Ve
+.Sp
+In this case, you should be very careful that your wildcard pattern does not
+find a match relative to the current working directory if you mean it to be
+relative to the main config file directory, since the working directory is
+checked for a match first (as with a normal Include directive). Therefore,
+use of something like '*/*' is discouraged.
+.SH "GLOBAL KEYWORDS"
+.IX Header "GLOBAL KEYWORDS"
+.SS "WorkDir"
+.IX Subsection "WorkDir"
+WorkDir specifies where the logfiles and the webpages should
+be created.
+.PP
+Example:
+.PP
+.Vb 1
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+.Ve
+.SH "OPTIONAL GLOBAL KEYWORDS"
+.IX Header "OPTIONAL GLOBAL KEYWORDS"
+.SS "HtmlDir"
+.IX Subsection "HtmlDir"
+HtmlDir specifies the directory where the html (or shtml,
+but we'll get on to those later) lives.
+.PP
+\&\s-1NOTE:\s0 Workdir overrides the settings for htmldir, imagedir
+and logdir.
+.PP
+Example:
+.PP
+.Vb 1
+\& Htmldir: /www/mrtg/
+.Ve
+.SS "ImageDir"
+.IX Subsection "ImageDir"
+ImageDir specifies the directory where the images live. They
+should be under the html directory.
+.PP
+Example:
+.PP
+.Vb 1
+\& Imagedir: /www/mrtg/images
+.Ve
+.SS "LogDir"
+.IX Subsection "LogDir"
+LogDir specifies the directory where the logs are stored.
+This need not be under htmldir directive.
+.PP
+Example:
+.PP
+.Vb 1
+\& Logdir: /www/mrtg/logs
+.Ve
+.SS "Forks (\s-1UNIX\s0 only)"
+.IX Subsection "Forks (UNIX only)"
+With system that supports fork (\s-1UNIX\s0 for example), mrtg can fork itself into multiple
+instances while it is acquiring data via snmp.
+.PP
+For situations with high latency or a great number of devices
+this will speed things up considerably. It will not make things faster,
+though, if you query a single switch sitting next door.
+.PP
+As far as I know \s-1NT\s0 can not fork so this option is not available on \s-1NT.\s0
+.PP
+Example:
+.PP
+.Vb 1
+\& Forks: 4
+.Ve
+.SS "EnableIPv6"
+.IX Subsection "EnableIPv6"
+When set to yes, IPv6 support is enabled if the required libraries are
+present (see the mrtg\-ipv6 manpage). When IPv6 is enabled, mrtg can talk
+to routers using \s-1SNMP\s0 over IPv6 and targets may be specified by their
+numeric IPv6 addresses as well as by hostname or IPv4 address.
+.PP
+If IPv6 is enabled and the target is a hostname, mrtg will try to resolve
+the hostname to an IPv6 address and, if this fails, to an IPv4 address.
+Note that mrtg will only use IPv4 if you specify an IPv4 address or a
+hostname with no corresponding IPv6 address; it will not fall back to IPv4
+if it simply fails to communicate with the target using IPv6. This is by
+design.
+.PP
+Note that many routers do not currently support \s-1SNMP\s0 over IPv6. Use the
+\&\fIIPv4Only\fR per target option for these routers.
+.PP
+IPv6 is disabled by default.
+.PP
+Example:
+.PP
+.Vb 1
+\& EnableIPv6: Yes
+.Ve
+.SS "EnableSnmpV3"
+.IX Subsection "EnableSnmpV3"
+When set to yes, uses the Net::SNMP module instead of the \s-1SNMP_SESSION\s0 module for
+generating snmp queries. This allows the use of SNMPv3 if other snmpv3 parameters
+are set.
+.PP
+SNMPv3 is disabled by default.
+.PP
+Example:
+.PP
+.Vb 1
+\& EnableSnmpV3: yes
+.Ve
+.SS "Refresh"
+.IX Subsection "Refresh"
+How many seconds apart should the browser (Netscape) be
+instructed to reload the page? If this is not defined, the
+default is 300 seconds (5 minutes).
+.PP
+Example:
+.PP
+.Vb 1
+\& Refresh: 600
+.Ve
+.SS "Interval"
+.IX Subsection "Interval"
+How often do you call mrtg? The default is 5 minutes. If
+you call it less often, you should specify it here.
+This does two things:
+.IP "\(bu" 4
+The generated \s-1HTML\s0 page contains the right
+information about the calling interval ...
+.IP "\(bu" 4
+A \s-1META\s0 header in the generated \s-1HTML\s0 page will instruct
+caches about the time-to-live of this page .....
+.PP
+In this example, we tell mrtg that we will be calling it
+every 10 minutes. If you are calling mrtg every 5
+minutes, you can leave this line commented out.
+.PP
+Example:
+.PP
+.Vb 1
+\& Interval: 10
+.Ve
+.PP
+Note that unless you are using rrdtool you can not set Interval to less
+than 5 minutes. If you are using rrdtool you can set interval in the format
+.PP
+.Vb 1
+\& Interval: MM[:SS]
+.Ve
+.PP
+Down to 1 second. Note though, setting the Interval for an rrdtool/mrtg
+setup will influence the initial creation of the database. If you change the
+interval later, all existing databases will remain at the resolution they
+were initially created with. Also note that you must make sure that your
+mrtg-rrd Web-frontend can deal with this kind of Interval setting.
+.SS "MaxAge"
+.IX Subsection "MaxAge"
+\&\s-1MRTG\s0 relies heavily on the real time clock of your computer. If the time is
+set to a wrong value, especially if it is advanced far into the future,
+this will cause mrtg to expire lots of supposedly old data from the log files.
+.PP
+To prevent this, you can add a 'reasonability' check by specifying a maximum
+age for log files. If a file seems to be older, mrtg will not touch it but
+complain instead, giving you a chance to investigate the cause.
+.PP
+Example:
+.PP
+.Vb 1
+\& MaxAge: 7200
+.Ve
+.PP
+The example above will make mrtg refuse to update log files older than 2
+hours (7200 seconds).
+.SS "WriteExpires"
+.IX Subsection "WriteExpires"
+With this switch mrtg will generate .meta files for \s-1CERN\s0
+and Apache servers which contain Expiration tags for the
+html and gif files. The *.meta files will be created in
+the same directory as the other files, so you will have
+to set \*(L"MetaDir .\*(R" and \*(L"MetaFiles on\*(R"
+in your apache.conf or .htaccess file for this to work
+.PP
+\&\s-1NOTE:\s0 If you are running Apache\-1.2 or later, you can use the mod_expire
+to achieve the same effect ... see the file htaccess.txt
+.PP
+Example:
+.PP
+.Vb 1
+\& WriteExpires: Yes
+.Ve
+.SS "NoMib2"
+.IX Subsection "NoMib2"
+Normally we ask the \s-1SNMP\s0 device for 'sysUptime' and 'sysName' properties.
+Some do not have these. If you want to avoid getting complaints from
+mrtg about these missing properties, specify the nomib2 option.
+.PP
+An example of agents which do not implement base mib2 attributes are
+Computer Associates \- Unicenter \s-1TNG\s0 Agents. \s-1CA\s0 relies on using the base
+\&\s-1OS SNMP\s0 agent in addition to its own agents to supplement the management
+of a system.
+.PP
+Example:
+.PP
+.Vb 1
+\& NoMib2: Yes
+.Ve
+.SS "SingleRequest"
+.IX Subsection "SingleRequest"
+Some \s-1SNMP\s0 implementations can not deal with requests asking for
+multiple snmp variables in one go. Set this in your cfg file to force
+mrtg to only ask for one variable per request.
+.PP
+Examples
+.PP
+.Vb 1
+\& SingleRequest: Yes
+.Ve
+.SS "SnmpOptions"
+.IX Subsection "SnmpOptions"
+Apart from the per target timeout options, you can also configure the
+behaviour of the snmpget process on a more profound level. SnmpOptions
+accepts a hash of options. The following options are currently supported:
+.PP
+.Vb 7
+\& timeout => $default_timeout,
+\& retries => $default_retries,
+\& backoff => $default_backoff,
+\& default_max_repetitions => $max_repetitions,
+\& use_16bit_request_ids => 1,
+\& lenient_source_port_matching => 0,
+\& lenient_source_address_matching => 1
+.Ve
+.PP
+The values behind the options indicate the current default value.
+Note that these settings \s-1OVERRIDE\s0 the per target timeout settings.
+.PP
+A per-target SnmpOptions[] keyword will override the global settings.
+That keyword is primarily for SNMPv3.
+.PP
+The 16bit request ids are the only way to query the broken \s-1SNMP\s0
+implementation of \s-1SMC\s0 Barricade routers.
+.PP
+Example:
+.PP
+.Vb 1
+\& SnmpOptions: retries => 2, only_ip_address_matching => 0
+.Ve
+.PP
+Note that \s-1AS/400\s0 snmp seems to be broken in a way which prevents mrtg from
+working with it unless
+.PP
+.Vb 1
+\& SnmpOptions: lenient_source_port_matching => 1
+.Ve
+.PP
+is set.
+.SS "IconDir"
+.IX Subsection "IconDir"
+If you want to keep the mrtg icons in someplace other than the
+working (or imagedir) directory, use the \fIIconDir\fR variable for
+defining the url of the icons directory.
+.PP
+Example:
+.PP
+.Vb 1
+\& IconDir: /mrtgicons/
+.Ve
+.SS "LoadMIBs"
+.IX Subsection "LoadMIBs"
+Load the \s-1MIB\s0 file(s) specified and make its OIDs available as
+symbolic names. For better efficiancy, a cache of MIBs is maintained
+in the WorkDir.
+.PP
+Example:
+.PP
+.Vb 1
+\& LoadMIBs: /dept/net/mibs/netapp.mib,/usr/local/lib/ft100m.mib
+.Ve
+.SS "Language"
+.IX Subsection "Language"
+Switch output format to the selected Language (Check the \fItranslate\fR directory
+to see which languages are supported at the moment. In this directory you
+can also find instructions on how to create new translations).
+.PP
+Currently the following laguages are supported:
+.PP
+big5
+brazilian
+bulgarian
+catalan
+chinese
+croatian
+czech
+danish
+dutch
+eucjp
+french
+galician
+gb
+gb2312
+german
+greek
+hungarian
+icelandic
+indonesia
+iso2022jp
+italian
+korean
+lithuanian
+malay
+norwegian
+polish
+portuguese
+romanian
+russian
+russian1251
+serbian
+slovak
+slovenian
+spanish
+swedish
+turkish
+ukrainian
+.PP
+Example:
+.PP
+.Vb 1
+\& Language: danish
+.Ve
+.SS "LogFormat"
+.IX Subsection "LogFormat"
+Setting LogFormat to 'rrdtool' in your mrtg.cfg file enables rrdtool mode.
+In rrdtool mode, mrtg relies on \fBrrdtool\fR to do its logging. See mrtg-rrd.
+.PP
+Example:
+.PP
+.Vb 1
+\& LogFormat: rrdtool
+.Ve
+.SS "LibAdd"
+.IX Subsection "LibAdd"
+If you are using rrdtool mode and your \fBrrdtool\fR Perl module (RRDs.pm)
+is not installed in a location where perl can find it on its own, you can
+use LibAdd to supply an appropriate path.
+.PP
+Example:
+.PP
+.Vb 1
+\& LibAdd: /usr/local/rrdtool/lib/perl/
+.Ve
+.SS "PathAdd"
+.IX Subsection "PathAdd"
+If the \fBrrdtool\fR executable can not be found in the normal \f(CW\*(C`PATH\*(C'\fR, you can
+use this keyword to add a suitable directory to your path.
+.PP
+Example:
+.PP
+.Vb 1
+\& PathAdd: /usr/local/rrdtool/bin/
+.Ve
+.SS "RRDCached"
+.IX Subsection "RRDCached"
+If you are running RRDTool 1.4 or later with \fBrrdcached\fR, then you can
+configure \s-1MRTG\s0 to take advantage of this for updates, either by using the
+\&\s-1RRDCACHED_ADDRESS\s0 environment variable, or by setting the RRDCached keyword
+in the configuration file. Note that, if both are set, the configuration file
+keyword will take precedence.
+.PP
+Only \s-1UNIX\s0 domain sockets are fully supported prior to RRDTool v1.5, and
+you should note that using RRDCached mode will disable all Threshold checking
+normally done by \s-1MRTG. \s0 Appropriate warning messages will be printed if
+necessary.
+.PP
+Examples:
+.PP
+.Vb 1
+\& RRDCached: unix:/var/tmp/rrdcached.sock
+\&
+\& RRDCached: localhost:42217
+.Ve
+.SS "RunAsDaemon"
+.IX Subsection "RunAsDaemon"
+The RunAsDaemon keyword enables daemon mode operation. The purpose of daemon
+mode is that \s-1MRTG\s0 is launched once and not repeatedly (as it is with cron).
+This behavior saves computing resourses as loading and parsing
+of configuration files happens only once on startup, and if the configuration
+file is modified.
+.PP
+Using daemon mode \s-1MRTG\s0 itself is responible for timing the measurement
+intervals. Therfore its important to set the Interval keyword to an
+apropiate value.
+.PP
+Note that when using daemon mode \s-1MRTG\s0 should no longer be started from cron
+as each new process runs forever. Instead \s-1MRTG\s0 should be
+started from the command prompt or by a system startup script.
+.PP
+If you want mrtg to run under a particular user and group (it is not
+recomended to run \s-1MRTG\s0 as root) then you can use the \fB\-\-user=\fR\fIuser_name\fR
+and \fB\-\-group=\fR\fIgroup_name\fR options on the mrtg commandline.
+.PP
+.Vb 1
+\& mrtg \-\-user=mrtg_user \-\-group=mrtg_group mrtg.cfg
+.Ve
+.PP
+Also note that in daemon mode restarting the process is required in order to
+activate changes in the config file.
+.PP
+Under \s-1UNIX,\s0 the Daemon switch causes mrtg to fork into background after
+checking its config file. On Windows \s-1NT\s0 the \s-1MRTG\s0 process will detach from
+the console, but because the \s-1NT/2000\s0 shell waits for its children you have to
+use this special start sequence when you launch the program:
+.PP
+.Vb 1
+\& start /b perl mrtg mrtg.cfg
+.Ve
+.PP
+You may have to add path information equal to what you add when you run mrtg
+from the commandline.
+.PP
+Example
+.PP
+.Vb 2
+\& RunAsDaemon: Yes
+\& Interval: 5
+.Ve
+.PP
+This makes \s-1MRTG\s0 run as a daemon beginning data collection every 5 minutes
+.PP
+If you are daemontools and still want to run mrtg as a daemon you can
+additionally specify
+.PP
+.Vb 1
+\& NoDetach: Yes
+.Ve
+.PP
+this will make mrtg run but without detaching it from the terminal.
+.PP
+If the modification date on the configuration file changes during operation,
+then \s-1MRTG\s0 will re-read the configuration on the next polling cycle. Note that
+sub-files which are included from the main configuration do not have their
+modification times monitored, only the top-level file is so checked.
+.SS "ConversionCode"
+.IX Subsection "ConversionCode"
+Some devices may produce non-numeric values that would nevertheless
+be useful to graph with \s-1MRTG\s0 if those values could be converted to numbers.
+The ConversionCode keyword specifies the path to a file containing Perl code
+to perform such conversions. The code in this file must consist of one or more
+Perl subroutines. Each subroutine must accept a single string argument and
+return a single numeric value. When RRDtool is in use, a decimal value may
+be returned. When the name of one of these subroutines is specified in a
+target definition (see below), \s-1MRTG\s0 calls it twice for that target, once to
+convert the the input value being monitored and a second time to convert the
+output value. The subroutine must return an undefined value if the conversion
+fails. In case of failure, a warning may be posted to the \s-1MRTG\s0 log file using
+Perl's warn function. \s-1MRTG\s0 imports the subroutines into a separate name space
+(package MRTGConversion), so the user need not worry about pollution of \s-1MRTG\s0's
+global name space. \s-1MRTG\s0 automatically prepends this package declaration to
+the user-supplied code.
+.PP
+Example: Suppose a particular \s-1OID\s0 returns a character string whose length is
+proportional to the value to be monitored. To convert this string to a
+number that can be graphed by \s-1MRTG,\s0 create a file arbitrarily named
+\&\*(L"MyConversions.pl\*(R" containing the following code:
+.PP
+.Vb 5
+\& # Return the length of the string argument
+\& sub Length2Int {
+\& my $value = shift;
+\& return length( $value );
+\& }
+.Ve
+.PP
+Then include the following global keyword in the \s-1MRTG\s0 configuration file
+(assuming that the conversion code file is saved in the mrtg/bin directory
+along with mrtg itself):
+.PP
+.Vb 1
+\& ConversionCode: MyConversions.pl
+.Ve
+.PP
+This will cause \s-1MRTG\s0 to include the definition of the subroutine Length2Int
+in its execution environment. Length2Int can then be invoked on any target
+by appending \*(L"|Length2Int\*(R" to the target definition as follows:
+.PP
+.Vb 1
+\& Target[myrouter]: 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.1:public@mydevice|Length2Int
+.Ve
+.PP
+See \*(L"Extended Host Name Syntax\*(R" below for complete target definition syntax
+information.
+.SS "SendToGraphite"
+.IX Subsection "SendToGraphite"
+If you want to send a copy of the collected data into a Graphite database in addition
+to storing it in the RRDfile, you can provide your Graphite database name/ip and port
+number here.
+.PP
+This requires the Net::Graphite perl module which is available from \s-1CPAN.\s0
+.PP
+Examples:
+.PP
+.Vb 2
+\& # If your Graphite receiver is running on the same host as the MRTG daemon and using the default port
+\& SendToGraphite: 127.0.0.1,2003
+\&
+\& # If your Graphite receiver is running on 192.168.100.50 port 5000
+\& SendToGraphite: 192.168.100.50,5000
+\&
+\& # If your Graphite receiver is running on graphite.mydomain.com port 2003
+\& SendToGraphite: graphite.mydomain.com,2003
+.Ve
+.PP
+Graphite's namespace has a number of restrictions on what characters are
+allowed. The SendToGraphite functionality makes an attempt to convert the \s-1MRTG \s0
+target name and, if specified, the Legendi and Legendo values to Graphite namespace
+friendly values. Specifically, the following conversion rules apply:
+.IP "\(bu" 4
+Underscores in the target_name are converted to periods which are Graphite namespace delimiters.
+.IP "\(bu" 4
+Comma characters are not allowed so they are removed.
+.IP "\(bu" 4
+The string \*(L"m2g\*(R" for \s-1MRTG\s0 to Graphite is prepended onto the Graphite namespace variable.
+.PP
+Example \s-1MRTG\s0 target to Graphite namespace conversion:
+.PP
+.Vb 2
+\& # Our MRTG target name from mrtg.cfg is as follows
+\& Target[switch_GigabitEthernet0_5]: \eGigabitEthernet0/5:public1@switch:::::2
+.Ve
+.PP
+After the conversion you will end up with these Graphite namespace values
+.PP
+.Vb 2
+\& m2g.switch.gigabitethernet0.5.in
+\& m2g.switch.gigabitethernet0.5.out
+.Ve
+.PP
+Next is a more complicated example because Legendi and Legendo are in use to denote min and max
+voltage values that pertain to some \s-1APC UPS SNMP\s0 OIDs
+.PP
+.Vb 4
+\& # Target, Legendi, and Legendo are specified in mrtg.cfg as follows
+\& Target[apc_minmaxline]: 1.3.6.1.4.1.318.1.1.1.3.2.3.0&1.3.6.1.4.1.318.1.1.1.3.2.2.0:public@apc:
+\& LegendI[apc_minmaxline]: upsAdvInputMinLineVoltage
+\& LegendO[apc_minmaxline]: upsAdvInputMaxLineVoltage
+.Ve
+.PP
+After the conversion you will end up with these Graphite namespace values
+.PP
+.Vb 2
+\& m2g.apc.minmaxline.upsAdvInputMinLineVoltage
+\& m2g.apc.minmaxline.upsAdvInputMaxLineVoltage
+.Ve
+.PP
+If you don't see the data showing up in Graphite, chances are there are invalid characters in
+the namespace. To debug this, use the DEBUG=qw(log) directive at the top of the \s-1MRTG\s0 script
+to find out what is happening with the \s-1MRTG\s0 to Graphite namespace conversion.
+.PP
+DEBUG=qw(log) will generate some output similar to what appears below
+.PP
+.Vb 2
+\& 2016\-10\-13 06:08:39 \-\- \-\-log: RRDs::update(/var/www/mrtg/switch/switch_gigabitethernet0_5.rrd, \*(Aq1476356919:2738746035:2927936327\*(Aq)
+\& 2016\-10\-13 06:08:39 \-\- \-\-log: graphite\->send(m2g.switch.gigabitethernet0.5.in,2738746035,1476356919)
+\&
+\& 2016\-10\-13 06:08:39 \-\- \-\-log: graphite\->send(m2g.switch.gigabitethernet0.5.out,2927936327,1476356919)
+\&
+\& 2016\-10\-13 06:09:25 \-\- \-\-log: RRDs::update(/var/www/mrtg/apc/apc_minmaxline.rrd, \*(Aq1476356965:122:123\*(Aq)
+\& 2016\-10\-13 06:09:25 \-\- \-\-log: graphite\->send(m2g.apc.minmaxline.upsAdvInputMinLineVoltage,122,1476356965)
+\&
+\& 2016\-10\-13 06:09:25 \-\- \-\-log: graphite\->send(m2g.apc.minmaxline.upsAdvInputMaxLineVoltage,123,1476356965)
+.Ve
+.PP
+If the \s-1MRTG\s0 log output looks reasonable, then take a look at Graphite's carbon-cache logs.
+.SH "PER TARGET CONFIGURATION"
+.IX Header "PER TARGET CONFIGURATION"
+Each monitoring target must be identified by a unique name. This
+name must be appended to each parameter belonging to the same
+target. The name will also be used for naming the
+generated webpages, logfiles and images for this target.
+.SS "Target"
+.IX Subsection "Target"
+With the \fITarget\fR keyword you tell mrtg what it should
+monitor. The \fITarget\fR keyword takes arguments in a wide
+range of formats:
+.IP "Basic" 4
+.IX Item "Basic"
+The most basic format is \*(L"port:community@router\*(R"
+This will generate a traffic graph for the interface 'port'
+of the host 'router' (dns name or \s-1IP\s0 address)
+and it will use the community 'community' (snmp password)
+for the snmp query.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: 2:public@wellfleet\-fddi.domain
+.Ve
+.Sp
+If your community contains a \*(L"@\*(R" or a \*(L" \*(R" these characters
+must be escaped with a \*(L"\e\*(R".
+.Sp
+.Vb 1
+\& Target[bla]: 2:stu\e pi\e@d@router
+.Ve
+.IP "SNMPv2c" 4
+.IX Item "SNMPv2c"
+If you have a fast router you might want to try to poll the ifHC* counters.
+This feature gets activated by switching to SNMPv2c. Unfortunately not all
+devices support SNMPv2c yet. If it works, this will prevent your counters
+from wraping within the 5 minute polling interval, since we now use 64 bit
+instead of the normal 32 bit.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: 2:public@router1:::::2
+.Ve
+.IP "SNMPv3" 4
+.IX Item "SNMPv3"
+As an alternative to SNMPv2c, SNMPv3 provides access to the ifHC* counters,
+along with encryption. Not all devices support SNMPv3, and you will also
+need the perl Net::SNMP library in order to use it. It is recommended that
+cfgmaker be used to generate configurations involving SNMPv3, as it will
+check if the Net::SNMP library is loadable, and will switch to SNMPv2c if
+v3 is unavailable.
+.Sp
+\&\s-1SNMP\s0 v3 requires additional authentication parameters, passed using the
+SnmpOptions[] per-target keyword.
+.Sp
+Example:
+ Target[myrouter]: 2:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+.IP "noHC" 4
+.IX Item "noHC"
+Not all routers that support SNMPv2 or SNMPv3 provide the ifHC* counters
+on every interface. The noHC[] per-target keyword signals that the
+low-speed counters ifInOctets and ifOutOctets should be queried instead.
+cfgmaker will automatically insert this tag if SNMPv2 or SNMPv3 is specified
+but the ifHC* counters are unavailable.
+.Sp
+Example:
+ Target[myrouter]: #Bri0:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+ noHC[myrouter]: yes
+.IP "Reversing" 4
+.IX Item "Reversing"
+Sometimes you are sitting on the wrong side of the
+link, and you would like to have mrtg report Incoming
+traffic as Outgoing and vice versa. This can be achieved
+by adding the '\-' sign in front of the \*(L"Target\*(R"
+description. It flips the incoming and outgoing traffic rates.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[ezci]: \-1:public@ezci\-ether.domain
+.Ve
+.IP "Explicit OIDs" 4
+.IX Item "Explicit OIDs"
+You can also explicitly define which \s-1OID\s0 to query by using the
+following syntax 'OID_1&OID_2:community@router'
+The following example will retrieve error counts for input and output
+on interface 1. \s-1MRTG\s0 needs to graph two variables,
+so you need to specify two \s-1OID\s0's such as temperature and humidity
+or error input and error output.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public@myrouter
+.Ve
+.IP "\s-1MIB\s0 Variables" 4
+.IX Item "MIB Variables"
+\&\s-1MRTG\s0 knows a number of symbolic \s-1SNMP\s0 variable names.
+See the file mibhelp.txt for a list of known names.
+One example are the ifInErrors and ifOutErrors.
+This means you can specify the above as:
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: ifInErrors.1&ifOutErrors.1:public@myrouter
+.Ve
+.IP "SnmpWalk" 4
+.IX Item "SnmpWalk"
+It may be that you want to monitor an snmp object that is only reachable by
+\&'walking'. You can get mrtg to walk by prepending the \s-1OID\s0 with the string
+\&\fBWaLK\fR or if you want a particular entry from the table returned by the walk
+you can use \fBWaLK\fR\fIx\fR where \fIx\fR is a number starting from 0 (!).
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: WaLKstrangeOid.1&WaLKstrangeOid.2:public@myrouter
+\&
+\& Target[myrouter]: WaLK3strangeOid.1&WaLK4strangeOid.2:public@myrouter
+.Ve
+.IP "SnmpGetNext" 4
+.IX Item "SnmpGetNext"
+A special case of an snmp object that is only reachable by 'walking' occurs
+when a single snmpgetnext will return the correct value, but snmpwalk fails.
+This may occur with snmp V2 or V3, as the snmpgetbulk method is used in these
+versions. You can get mrtg to use getnext instead of getbulk by prepending the
+\&\s-1OID\s0 with the string \fBGeTNEXT\fR.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: GeTNEXTstrangeOid&GeTNEXTstrangeOid:public@myrouter
+.Ve
+.IP "Counted \s-1SNMP\s0 Walk" 4
+.IX Item "Counted SNMP Walk"
+In other situations, an snmpwalk is needed to count rows, but the actual data
+is uninteresting. For example, counting the number of mac-addresses in a \s-1CAM \s0
+table, or the number of simultaneous dialup sessions. You can get \s-1MRTG\s0 to count
+the number of instances by prepending the \s-1OID\s0 with the string \fBCnTWaLK\fR. The
+following will retrieve the number of simultaneous \s-1VOIP\s0 calls on some routers:
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3&CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3:public@myrouter
+.Ve
+.IP "Interface by \s-1IP\s0" 4
+.IX Item "Interface by IP"
+Sometimes \s-1SNMP\s0 interface index can change, like when new interfaces are
+added or removed. This can cause all Target entries in your config file
+to become offset, causing \s-1MRTG\s0 to graphs wrong instances etc.
+\&\s-1MRTG\s0 supports \s-1IP\s0 address instead of ifindex in target definition. Then
+\&\s-1MRTG\s0 will query snmp device and try to map \s-1IP\s0 address to the current ifindex.
+You can use \s-1IP\s0 addresses in every type of target definition by adding
+\&\s-1IP\s0 address of the numbered interface after \s-1OID\s0 and separation char '/'.
+.Sp
+Make sure that the given \s-1IP\s0 address is used on
+your same target router, especially when graphing two different OIDs
+and/or interface split by '&' delimiter.
+.Sp
+You can tell cfgmaker to generate such references with the option
+\&\fB\-\-ifref=ip\fR.
+.Sp
+Example:
+.Sp
+.Vb 3
+\& Target[myrouter]: /1.2.3.4:public@wellfleet\-fddi.domain
+\& Target[ezci]: \-/1.2.3.4:public@ezci\-ether.domain
+\& Target[myrouter]: ifInErrors/1.2.3.4&ifOutErrors/1.2.3.4:public@myrouter
+.Ve
+.IP "Interface by Description" 4
+.IX Item "Interface by Description"
+If you can not use \s-1IP\s0 addresses you might want to use
+the interface names. This works similar to the \s-1IP\s0 address aproach
+except that the prefix to use is a \e instead of a /
+.Sp
+You can tell cfgmaker to generate such references with the option
+\&\fB\-\-ifref=descr\fR.
+.Sp
+Example:
+.Sp
+.Vb 3
+\& Target[myrouter]: \eMy\-Interface2:public@wellfleet\-fddi.domain
+\& Target[ezci]: \-\eMy\-Interface2:public@ezci\-ether.domain
+\& Target[myrouter]: ifInErrors\eMy\-If2&ifOutErrors\eMy\-If3:public@myrouter
+.Ve
+.Sp
+If your description contains a \*(L"&\*(R", a \*(L":\*(R", a \*(L"@\*(R" or a \*(L" \*(R" you can include
+them but you must escape with a backlash:
+.Sp
+.Vb 1
+\& Target[myrouter]: \efun\e:\e ney\e&ddd:public@hello.router
+.Ve
+.IP "Interface by Name" 4
+.IX Item "Interface by Name"
+This is the only sensible way to reference the interfaces of your switches.
+.Sp
+You can tell cfgmaker to generate such references with the option
+\&\fB\-\-ifref=name\fR.
+.Sp
+Example:
+.Sp
+.Vb 3
+\& Target[myrouter]: #2/11:public@wellfleet\-fddi.domain
+\& Target[ezci]: \-#2/11:public@ezci\-ether.domain
+\& Target[myrouter]: ifInErrors#3/7&ifOutErrors#3/7:public@myrouter
+.Ve
+.Sp
+If your description contains a \*(L"&\*(R", a \*(L":\*(R", a \*(L"@\*(R" or a \*(L" \*(R" you can include
+them but you must escape with a backlash:
+.Sp
+.Vb 1
+\& Target[myrouter]: #\e:\e fun:public@hello.router
+.Ve
+.Sp
+Note that the # sign will be interpreted as a comment character if
+it is the first non white-space character on the line.
+.IP "Interface by Ethernet Address" 4
+.IX Item "Interface by Ethernet Address"
+When the \s-1SNMP\s0 interface index changes, you can key that interface by its
+\&'Physical Address', sometimes called a 'hard address', which is the \s-1SNMP\s0
+variable 'ifPhysAddress'. Internally, \s-1MRTG\s0 matches the Physical Address from
+the *.cfg file to its current index, and then uses that index for the rest of
+the session.
+.Sp
+You can use the Physical Address in every type of target definition by adding
+the Physical Address after the \s-1OID\s0 and the separation char '!' (analogous to the \s-1IP\s0
+address option). The Physical address is specified as '\-' delimited
+octets, such as \*(L"0a\-0\-f1\-5\-23\-18\*(R" (omit the double quotes). Note that some
+routers use the same Hardware Ethernet Address for all of their Interfaces which
+prevents unique interface identification. Mrtg will notice such problems and alert you.
+.Sp
+You can tell cfgmaker to generate configuration files with hardware ethernet address references
+by using the option \fB\-\-ifref=eth\fR.
+.Sp
+Example:
+.Sp
+.Vb 6
+\& Target[myrouter]: !0a\-0b\-0c\-0d:public@wellfleet\-fddi.domain
+\& Target[ezci]: \-!0\-f\-bb\-05\-71\-22:public@ezci\-ether.domain
+\& Target[myrouter]: 1.3.6.1.2.1.2.2.1.14!0a\-00\-10\-23\-44\-51& *BREAK*
+\& 1.3.6.1.2.1.2.2.1.14!0a\-00\-10\-23\-44\-51:public@myrouter
+\& Target[myrouter]: ifInErrors!0a\-00\-10\-23\-44\-51& *BREAK*
+\& ifOutErrors!0a\-00\-10\-23\-44\-51:public@myrouter
+.Ve
+.Sp
+Join the lines at *BREAK* ...
+.IP "Interface by Type" 4
+.IX Item "Interface by Type"
+It seems that there are devices that try to defy all monitoring efforts: the interesting interfaces have
+neither ifName nor a constant ifDescr not to mention a persistent ifIndex. The only way to get a constant
+mapping is by looking at the interface type, because the interface you are interested in is unique in the
+device you are looking at ...
+.Sp
+You can tell cfgmaker to generate such references with the option
+\&\fB\-\-ifref=type\fR.
+.Sp
+Example:
+.Sp
+.Vb 3
+\& Target[myrouter]: %13:public@wellfleet\-fddi.domain
+\& Target[ezci]: \-%13:public@ezci\-ether.domain
+\& Target[myrouter]: ifInErrors%13&ifOutErrors%14:public@myrouter
+.Ve
+.IP "Extended positioning of ifIndex" 4
+.IX Item "Extended positioning of ifIndex"
+There are OIDs that contain the interface index at some inner position within
+the \s-1OID.\s0 To use the above mentioned Interface by IP/Description/Name/Type methods
+in the target definition the keyword 'IndexPOS' can be used to indicate the
+position of ifIndex. If 'IndexPOS' is not used the ifIndex will be appended at the
+end of the \s-1OID.\s0
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: OID.IndexPOS.1/1.2.3.4&OID.IndexPOS.1/1.2.3.4:public@myrouter
+.Ve
+.Sp
+Replace \s-1OID\s0 by your numeric \s-1OID.\s0
+.IP "Extended Host Name Syntax" 4
+.IX Item "Extended Host Name Syntax"
+In all places where ``community@router'' is accepted, you can add
+additional parameters for the \s-1SNMP\s0 communication using
+colon-separated suffixes. You can also append a pipe symbol ( | ) and
+the name of a numeric conversion subroutine as described under the global
+keyword \*(L"ConversionCode\*(R" above. The full syntax is as follows:
+.Sp
+.Vb 1
+\& community@router[:[port][:[timeout][:[retries][:[backoff][:[version]]]]][|name]
+.Ve
+.Sp
+where the meaning of each parameter is as follows:
+.RS 4
+.IP "port" 4
+.IX Item "port"
+the \s-1UDP\s0 port under which to contact the \s-1SNMP\s0 agent (default: 161)
+.Sp
+The complete syntax of the port parameter is
+.Sp
+.Vb 1
+\& remote_port[!local_address[!local_port]]
+.Ve
+.Sp
+Some machines have additional security features that only allow \s-1SNMP\s0 queries
+to come from certain \s-1IP\s0 addresses. If the host doing the query has multiple
+interface, it may be necessary to specify the interface the query should
+come from.
+.Sp
+The port parameter allows the specification of the port of the machine being
+queried. In addition, the \s-1IP\s0 address (or hostname) and port of the machine
+doing the query may be specified.
+.Sp
+Examples:
+.Sp
+.Vb 5
+\& somehost
+\& somehost:161
+\& somehost:161!192.168.2.4!4000 use 192.168.2.4 and port 4000 as source
+\& somehost:!192.168.2.4 use 192.168.2.4 as source
+\& somehost:!!4000 use port 4000 as source
+.Ve
+.IP "timeout" 4
+.IX Item "timeout"
+initial timeout for \s-1SNMP\s0 queries, in seconds (default: 2.0)
+.IP "retries" 4
+.IX Item "retries"
+number of times a timed-out request will be retried (default: 5)
+.IP "backoff" 4
+.IX Item "backoff"
+factor by which the timeout is multiplied on every retry (default: 1.0).
+.IP "version" 4
+.IX Item "version"
+for \s-1SNMP\s0 version. If you have a fast router you might want to put
+a '2' here. For authenticated or encrypted \s-1SNMP,\s0 you can try to put a
+\&'3' here. This will make mrtg try to poll the 64 bit counters and thus
+prevent excessive counter wrapping. Not all routers support this though.
+\&\s-1SNMP\s0 v3 requires additional setup, see SnmpOptions[] for full details.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& 3:public@router1:::::2
+.Ve
+.IP "name" 4
+.IX Item "name"
+the name of the subroutine that \s-1MRTG\s0 will call to convert the input and output
+values to integers. See the complete example under the global keyword
+\&\*(L"ConversionCode\*(R" above.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.2:public@mydevice:161::::2|Length2Int
+.Ve
+.Sp
+This would retrieve values from the \s-1OID 1.3.6.1.4.1.999.1\s0 for input and .2
+for output on mydevice using \s-1UDP\s0 port 161 and \s-1SNMP\s0 version 2, and would
+execute the user-defined numeric conversion subroutine Length2Int to convert
+those values to integers.
+.RE
+.RS 4
+.Sp
+A value that equals the default value can be omitted. Trailing colons
+can be omitted, too. The pipe symbol followed by the name parameter, if
+present, must come at the end. There must be no spaces around the colons or
+pipe symbol.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[ezci]: 1:public@ezci\-ether.domain:9161::4
+.Ve
+.Sp
+This would refer to the input/output octet counters for the interface
+with \fIifIndex 1\fR on \fIezci\-ether.domain\fR, as known
+by the \s-1SNMP\s0 agent listening on \s-1UDP\s0 port 9161. The standard initial
+timeout (2.0 seconds) is used, but the number of retries is set to
+four. The backoff value is the default.
+.RE
+.IP "Numeric IPv6 addresses" 4
+.IX Item "Numeric IPv6 addresses"
+If IPv6 is enabled you may also specify a target using its IPv6 address. To
+avoid ambiguity with the port number, numeric IPv6 addresses must be placed
+in square brackets.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[IPv6test]: 2:public@[2001:760:4::]:6161::4
+.Ve
+.IP "External Monitoring Scripts" 4
+.IX Item "External Monitoring Scripts"
+If you want to monitor something which does not provide
+data via snmp you can use some external program to do
+the data gathering.
+.Sp
+The external command must return 4 lines of output:
+.RS 4
+.IP "Line 1" 4
+.IX Item "Line 1"
+current state of the first variable, normally 'incoming bytes count'
+.IP "Line 2" 4
+.IX Item "Line 2"
+current state of the second variable, normally 'outgoing bytes count'
+.IP "Line 3" 4
+.IX Item "Line 3"
+string (in any human readable format), telling the uptime of the target.
+.IP "Line 4" 4
+.IX Item "Line 4"
+string, telling the name of the target.
+.RE
+.RS 4
+.Sp
+Depending on the type of data your script returns you
+might want to use the 'gauge' or 'absolute' arguments
+for the \fIOptions\fR keyword.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& Target[myrouter]: \`/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0\`
+.Ve
+.Sp
+Note the use of the backticks (`), not apostrophes (')
+around the command.
+.Sp
+If you want to use a backtick in the command name this can be done
+but you must escape it with a backslash ...
+.Sp
+If your script does not have any data to return but does not want mrtg to
+complain about invalid data, it can return '\s-1UNKNOWN\s0' instead of a number.
+Note though that only rrdtool is realy equipped to handle unknown data well.
+.RE
+.IP "Multi Target Syntax" 4
+.IX Item "Multi Target Syntax"
+You can also combine several target definitions in a mathematical expression.
+Any syntactically correct expression that the Perl interpreter can evaluate
+to will work. An expression could be used, for example, to aggregate both B
+channels in an \s-1ISDN\s0 connection or to calculate the percentage hard disk
+utilization of a server from the absolute used space and total capacity.
+.Sp
+Examples:
+.Sp
+.Vb 1
+\& Target[myrouter]: 2:public@wellfleetA + 1:public@wellfleetA
+\&
+\& Target[myrouter]: .1.3.6.1.4.1.999.1&.1.3.6.1.4.1.999.2:public@mydevice /
+\& .1.3.6.1.4.1.999.3&.1.3.6.1.4.1.999.4:public@mydevice * 100
+.Ve
+.Sp
+Note that whitespace must surround each target definition in the expression.
+Target definitions themselves must not contain whitespace, except in
+interface descriptions and interface names, where each whitespace character
+is escaped by a backslash.
+.Sp
+\&\s-1MRTG\s0 automatically rounds the result of the expression to an integer unless
+RRDTool logging is in use and the gauge option is in effect for the target.
+Internally \s-1MRTG\s0 uses Perl's Math::BigFloat package to calculate the result
+of the expression with 40 digits of precision. Even in extreme cases, where,
+for example, you take the difference of two 64\-bit integers, the result of
+the expression should be accurate.
+.IP "\s-1SNMP\s0 Request Optimization" 4
+.IX Item "SNMP Request Optimization"
+\&\s-1MRTG\s0 is designed to economize on its \s-1SNMP\s0 requests. Where a target
+definition appears more than once in the configuration file, \s-1MRTG\s0 requests
+the data from the device only once per round of data collection and uses
+the collected data for each instance of a particular target. Recognition of
+two target definitions as being identical is based on a simple string match
+rather than any kind of deeper semantic analysis.
+.Sp
+Example:
+.Sp
+.Vb 4
+\& Target[Targ1]: 1:public@CiscoA
+\& Target[Targ2]: 2:public@CiscoA
+\& Target[Targ3]: 1:public@CiscoA + 2:public@CiscoA
+\& Target[Targ4]: 1:public@CISCOA
+.Ve
+.Sp
+This results in a total of three \s-1SNMP\s0 requests. Data for 1:public@CiscoA
+and 2:public@CiscoA are requested only once each, and used for Targ1, Targ2,
+and Targ3. Targ4 causes another \s-1SNMP\s0 request for 1:public@CISCOA, which is not
+recognized as being identical to 1:public@CiscoA.
+.SS "MaxBytes"
+.IX Subsection "MaxBytes"
+The maximum value either of the two variables monitored
+are allowed to reach. For monitoring router traffic
+this is normally the bytes per second this
+interface port can carry.
+.PP
+If a number higher than \fIMaxBytes\fR is returned, it is ignored.
+Also read the section on \fIAbsMax\fR for further info.
+The \fIMaxBytes\fR value is also used in calculating the Y range
+for unscaled graphs (see the section on \fIUnscaled\fR).
+.PP
+Since most links are rated in bits per second, you need to divide their
+maximum bandwidth (in bits) by eight (8) in order to get bytes per second.
+This is very important to make your unscaled graphs display realistic
+information. T1 = 193000, 56K = 7000, 10 \s-1MB\s0 Ethernet = 1250000, 100 \s-1MB\s0
+Ethernet = 12500000. The \fIMaxBytes\fR value will be used by mrtg to decide
+whether it got a valid response from the router.
+.PP
+If you need two different MaxBytes values for the two monitored
+variables, you can use MaxBytes1 and MaxBytes2 instead of MaxBytes.
+.PP
+Example:
+.PP
+.Vb 1
+\& MaxBytes[myrouter]: 1250000
+.Ve
+.SS "Title"
+.IX Subsection "Title"
+Title for the \s-1HTML\s0 page which gets generated for the graph.
+.PP
+Example:
+.PP
+.Vb 1
+\& Title[myrouter]: Traffic Analysis for Our Nice Company
+.Ve
+.SH "OPTIONAL PER TARGET KEYWORDS"
+.IX Header "OPTIONAL PER TARGET KEYWORDS"
+.SS "PageTop"
+.IX Subsection "PageTop"
+Things to add to the top of the generated \s-1HTML\s0 page. Note
+that you can have several lines of text as long as the
+first column is empty.
+.PP
+Note that the continuation lines will all end up on the same
+line in the html page. If you want linebreaks in the generated
+html use the '\en' sequence.
+.PP
+Example:
+.PP
+.Vb 4
+\& PageTop[myrouter]: <H1>Traffic Analysis for ETZ C95.1</H1>
+\& Our Campus Backbone runs over an FDDI line\en
+\& with a maximum transfer rate of 12.5 megabytes per
+\& Second.
+.Ve
+.SS "RouterUptime"
+.IX Subsection "RouterUptime"
+In cases where you calculate the used bandwidth from
+several interfaces you normally don't get the router uptime
+and router name displayed on the web page.
+.PP
+If these interfaces are on the same router and the uptime and
+name should be displayed you have to specify
+its community and address again with the \fIRouterUptime\fR keyword.
+.PP
+If you want to use a special \s-1OID\s0 for querying the router uptime,
+use prepend the oid.
+.PP
+Example:
+.PP
+.Vb 2
+\& Target[kacisco.comp.edu]: 1:public@194.64.66.250 + 2:public@194.64.66.250
+\& RouterUptime[kacisco.comp.edu]: public@194.64.66.250
+\&
+\& RouterUptime[kacisco.comp.edu]: hrSystemUptime.0:public@194.64.66.250
+.Ve
+.SS "RouterName"
+.IX Subsection "RouterName"
+If the default name of the router is incorrect/uninformative,
+you can use RouterName to specify a different \s-1OID\s0 on either the
+same or a different host.
+.PP
+A practical example: sysName on BayTech \s-1DS72\s0 units always display
+\&\*(L"ds72\*(R", no matter what you set the Unit \s-1ID\s0 to be. Instead, the
+Unit \s-1ID\s0 is stored at 1.3.6.1.4.1.4779.1.1.3.0, so we can have
+\&\s-1MRTG\s0 display this instead of sysName.
+.PP
+Example:
+.PP
+.Vb 1
+\& RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0
+.Ve
+.PP
+A different \s-1OID\s0 on a different host can also be specified:
+.PP
+.Vb 1
+\& RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0:public@194.64.66.251
+.Ve
+.SS "MaxBytes1"
+.IX Subsection "MaxBytes1"
+Same as MaxBytes, for variable 1.
+.SS "MaxBytes2"
+.IX Subsection "MaxBytes2"
+Same as MaxBytes, for variable 2.
+.SS "IPv4Only"
+.IX Subsection "IPv4Only"
+Many IPv6 routers do not currently support \s-1SNMP\s0 over IPv6 and must
+be monitored using IPv4. The IPv4Only option forces mrtg to use IPv4
+when communicating with the target, even if IPv6 is enabled. This is
+useful if the target is a hostname with both IPv4 and IPv6 addresses;
+without the IPv4Only keyword, monitoring such a router will not work
+if IPv6 is enabled.
+.PP
+If set to no (the default), mrtg will use IPv6 unless the target has
+no IPv6 addresses, in which case it will use IPv4. If set to yes, mrtg
+will only use IPv4.
+.PP
+Note that if this option is set to yes and the target does not have an
+IPv4 address, communication with the target will fail.
+.PP
+This option has no effect if IPv6 is not enabled.
+.PP
+Example:
+.PP
+.Vb 2
+\& Target[v4onlyrouter_1]: 1:public@v4onlyrouter
+\& IPv4Only[v4onlyrouter_1]: Yes
+.Ve
+.SS "SnmpOptions (V3)"
+.IX Subsection "SnmpOptions (V3)"
+SNMPv3 requires a fairly rich set of options. This per-target keyword
+allows access to the User Security Model of SNMPv3. Options are listed
+in the same syntax as a perl hash.
+.PP
+\fISecurity Modes\fR
+.IX Subsection "Security Modes"
+.PP
+SNMPv3 has three security modes, defined on the device being polled.
+For example, on Cisco routers the security mode is defined by the
+snmp-server group global configuration command.
+.IP "NoAuthNoPriv" 4
+.IX Item "NoAuthNoPriv"
+Neither Authentication nor Privacy is defined. Only the Username
+option is specified for this mode.
+.Sp
+Example:
+.Sp
+.Vb 1
+\& SnmpOptions[myrouter]: username=>\*(Aquser1\*(Aq
+.Ve
+.IP "AuthNoPriv" 4
+.IX Item "AuthNoPriv"
+Uses a Username and a password. The password can be hashed using the
+snmpkey application, or passed in plain text along with the ContextEngineID
+.Sp
+Example:
+.Sp
+.Vb 2
+\& SnmpOptions[myrouter]: username=>\*(Aquser1\*(Aq,authpassword=>\*(Aqexample\*(Aq,
+\& contextengineid=>\*(Aq80000001110000004000000\*(Aq
+.Ve
+.IP "Priv" 4
+.IX Item "Priv"
+Both Authentication and Privacy is defined. The default privacy protocol
+is des.
+.Sp
+Example:
+ SnmpOptions[myrouter]: authkey=>'0x1e93ab5a396e2af234c8920e61cfe2028072c0e2',
+ authprotocol=>'sha',privprotocol=>'des',username=>'user1',
+ privkey=>'0x498d74940c5872ed387201d74b9b25e2'
+.PP
+\fIsnmp options\fR
+.IX Subsection "snmp options"
+.PP
+The following option keywords are recognized:
+.IP "username" 4
+.IX Item "username"
+The user associated with the User Security Model
+.IP "contextname" 4
+.IX Item "contextname"
+An \s-1SNMP\s0 agent can define multiple contexts. This keyword allows them to
+be polled.
+.IP "contextengineid" 4
+.IX Item "contextengineid"
+A unique 24\-byte string identifying the snmp-agent.
+.IP "authpassword" 4
+.IX Item "authpassword"
+The plaintext password for a user in either AuthNoPriv or Priv mode.
+.IP "authkey" 4
+.IX Item "authkey"
+A md5 or sha hash of the plain-text password, along with the engineid.
+Use the snmpkey commandline program to generate this hash, or use
+Net::SNMP::Security::USM in a script.
+.IP "authprotocol {sha|md5}" 4
+.IX Item "authprotocol {sha|md5}"
+The hashing algorithm defined on the \s-1SNMP\s0 client. Defaults to md5.
+.IP "privpassword" 4
+.IX Item "privpassword"
+A plaintext pre-shared key for encrypting snmp packets in Priv mode.
+.IP "privkey" 4
+.IX Item "privkey"
+A hash of the plain-text pre-shared key, along with the engineid.
+Use the snmpkey commandline program to generate this hash, or use
+Net::SNMP::Security::USM in a script.
+.IP "privprotocol {des|3desede|aescfb128|aescfb192|aescfb256}" 4
+.IX Item "privprotocol {des|3desede|aescfb128|aescfb192|aescfb256}"
+Specifies the encryption method defined on the snmp agent. The default
+is des.
+.SS "PageFoot"
+.IX Subsection "PageFoot"
+Things to add to the bottom of the generated \s-1HTML\s0 page. Note
+that you can have several lines of text as long as the
+first column is empty.
+.PP
+Note that the continuation lines will all end up on the same
+line in the html page. If you want linebreaks in the generated
+html use the '\en' sequence.
+.PP
+The material will be added just before the </BODY> tag:
+.PP
+Example:
+.PP
+.Vb 2
+\& PageFoot[myrouter]: Contact <A HREF="mailto:peter@x.yz">Peter</A>
+\& if you have questions regarding this page
+.Ve
+.SS "AddHead"
+.IX Subsection "AddHead"
+Use this tag like the \fIPageTop\fR header, but its contents
+will be added between </TITLE> and </HEAD>.
+.PP
+Example:
+.PP
+.Vb 1
+\& AddHead[myrouter]: <link rev="made" href="mailto:mrtg@blabla.edu">
+.Ve
+.SS "BodyTag"
+.IX Subsection "BodyTag"
+BodyTag lets you supply your very own <body ...> tag for the
+generated webpages.
+.PP
+Example:
+.PP
+.Vb 2
+\& BodyTag[myrouter]: <BODY LEFTMARGIN="1" TOPMARGIN="1"
+\& BACKGROUND="/stats/images/bg.neo2.gif">
+.Ve
+.SS "AbsMax"
+.IX Subsection "AbsMax"
+If you are monitoring a link which can handle more traffic than the
+\&\fIMaxBytes\fR value. Eg, a line which uses compression or some frame relay
+link, you can use the \fIAbsMax\fR keyword to give the absolute maximum value
+ever to be reached. We need to know this in order to sort out unrealistic
+values returned by the routers. If you do not set \fIAbsMax\fR, rateup will
+ignore values higher than \fIMaxBytes\fR.
+.PP
+Example:
+.PP
+.Vb 1
+\& AbsMax[myrouter]: 2500000
+.Ve
+.SS "Unscaled"
+.IX Subsection "Unscaled"
+By default each graph is scaled vertically to make the actual data visible
+even when it is much lower than \fIMaxBytes\fR. With the \fIUnscaled\fR variable
+you can suppress this. It's argument is a string, containing one letter for
+each graph you don't want to be scaled: d=day w=week m=month y=year. There
+is also a special case to unset the variable completely: n=none. This could
+be useful in the event you need to override a global configuration. In the
+example scaling for the yearly and the monthly graph are suppressed.
+.PP
+Example:
+.PP
+.Vb 1
+\& Unscaled[myrouter]: ym
+.Ve
+.SS "WithPeak"
+.IX Subsection "WithPeak"
+By default the graphs only contain the average
+values of the monitored variables \- normally the
+transfer rates for incoming and outgoing traffic.
+The following option instructs mrtg to display the peak
+5 minute values in the [w]eekly, [m]onthly and
+[y]early graph. In the example we define the monthly
+and the yearly graph to contain peak as well as average
+values.
+.PP
+Examples:
+.PP
+.Vb 1
+\& WithPeak[myrouter]: ym
+.Ve
+.SS "Suppress"
+.IX Subsection "Suppress"
+By default mrtg produces 4 graphs. With this option
+you can suppress the generation of selected graphs.
+The option value syntax is analogous to the above two options.
+In this example we suppress the yearly graph
+as it is quite empty in the beginning.
+.PP
+Example:
+.PP
+.Vb 1
+\& Suppress[myrouter]: y
+.Ve
+.SS "Extension"
+.IX Subsection "Extension"
+By default, mrtg creates .html files. Use this option to tell mrtg to
+use a different extension. For example you could set the extension to
+php3, then you will be able to enclose \s-1PHP\s0 tags into the output (useful
+for getting a router name out of a database).
+.PP
+Example:
+.PP
+.Vb 1
+\& Extension[myrouter]: phtml
+.Ve
+.SS "Directory"
+.IX Subsection "Directory"
+By default, mrtg puts all the files that it generates for each
+target (the GIFs, the \s-1HTML\s0 page, the log file, etc.) in \fIWorkDir\fR.
+.PP
+If the \fIDirectory\fR option is specified, the files are instead put
+into a directory under \fIWorkDir\fR or Log\-, Image\- and HtmlDir).
+(For example the \fIDirectory\fR
+option below would cause all the files for a target myrouter
+to be put into directory /usr/tardis/pub/www/stats/mrtg/myrouter/ .)
+.PP
+The directory must already exist; mrtg will not create it.
+.PP
+Example:
+.PP
+.Vb 2
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+\& Directory[myrouter]: myrouter
+.Ve
+.PP
+\&\s-1NOTE:\s0 the Directory option must always be 'relative' or bad things will happen.
+.SS "Clonedirectory"
+.IX Subsection "Clonedirectory"
+If the \fIDirectory\fR option is specified, the \fIClonedirectory\fR option will copy
+all the contents of \fIDirectory\fR to the \fIClonedirectory\fR.
+.PP
+Example:
+.PP
+.Vb 3
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+\& Directory[myrouter]: myrouter
+\& Clonedirectory[myrouter]: myclonedirectory
+.Ve
+.PP
+Optionally the target name can be changed in the cloning process.
+.PP
+Example:
+.PP
+.Vb 3
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+\& Directory[myrouter]: myrouter
+\& Clonedirectory[myrouter]: myclonedirectory mynewtarget
+.Ve
+.PP
+\&\s-1NOTE1:\s0 The clone directory must already exist; mrtg will not create it.
+.PP
+\&\s-1NOTE2:\s0 The Clonedirectory option must also always be 'relative' or bad things will happen.
+.PP
+\&\s-1NOTE3:\s0 This requires the File::Copy module
+.SS "XSize and YSize"
+.IX Subsection "XSize and YSize"
+By default mrtgs graphs are 100 by 400 pixels wide (plus
+some more for the labels. In the example we get almost
+square graphs ...
+.PP
+Note: XSize must be between 20 and 600; YSize must be larger than 20
+.PP
+Example:
+.PP
+.Vb 2
+\& XSize[myrouter]: 300
+\& YSize[myrouter]: 300
+.Ve
+.SS "XZoom and YZoom"
+.IX Subsection "XZoom and YZoom"
+If you want your graphs to have larger pixels, you can
+\&\*(L"Zoom\*(R" them.
+.PP
+Example:
+.PP
+.Vb 2
+\& XZoom[myrouter]: 2.0
+\& YZoom[myrouter]: 2.0
+.Ve
+.SS "XScale and YScale"
+.IX Subsection "XScale and YScale"
+If you want your graphs to be actually scaled use \fIXScale\fR
+and \fIYScale\fR. (Beware: while this works, the results look ugly
+(to be frank) so if someone wants to fix this: patches are welcome.
+.PP
+Example:
+.PP
+.Vb 2
+\& XScale[myrouter]: 1.5
+\& YScale[myrouter]: 1.5
+.Ve
+.SS "YTics and YTicsFactor"
+.IX Subsection "YTics and YTicsFactor"
+If you want to show more than 4 lines per graph, use YTics.
+If you want to scale the value used for the YLegend of these
+tics, use YTicsFactor.
+The default value for YTics is 4 and the default value for
+YTicsFactor is 1.0 .
+.PP
+Example:
+.PP
+Suppose you get values ranging from 0 to 700.
+You want to plot 7 lines and want to show
+0, 1, 2, 3, 4, 5, 6, 7 instead of 0, 100, 200,
+300, 400, 500, 600, 700. You should write then:
+.PP
+.Vb 2
+\& YTics[myrouter]: 7
+\& YTicsFactor[myrouter]: 0.01
+.Ve
+.SS "Factor"
+.IX Subsection "Factor"
+If you want to multiply all numbers shown below the graph with a constant factor, use
+this directive to define it ..
+.PP
+Example:
+.PP
+.Vb 1
+\& Factor[as400]: 4096
+.Ve
+.SS "Step"
+.IX Subsection "Step"
+Change the default step from 5 * 60 seconds to
+something else (I have not tested this much ...)
+.PP
+Example:
+.PP
+.Vb 1
+\& Step[myrouter]: 60
+.Ve
+.SS "PNGTitle"
+.IX Subsection "PNGTitle"
+When using rateup for graph generation, this will print the given title in the
+graph it generates.
+.PP
+Example:
+.PP
+.Vb 1
+\& PNGTitle[myrouter]: WAN Link UK\-US
+.Ve
+.SS "Options"
+.IX Subsection "Options"
+The \fIOptions\fR Keyword allows you to set some boolean
+switches:
+.IP "growright" 4
+.IX Item "growright"
+The graph grows to the left by default.
+This option flips the direction of growth
+causing the current time to be at the right edge
+of the graph and the history values to the left of it.
+.IP "bits" 4
+.IX Item "bits"
+All the monitored variable values are multiplied by 8
+(i.e. shown in bits instead of bytes) ... looks much more impressive :\-)
+It also affects the 'factory default' labeling and units
+for the given target.
+.IP "perminute" 4
+.IX Item "perminute"
+All the monitored variable values are multiplied by 60
+(i.e. shown in units per minute instead of units per second) in case
+of small values more accurate graphs are displayed.
+It also affects the 'factory default' labeling and units
+for the given target.
+.IP "perhour" 4
+.IX Item "perhour"
+All the monitored variable values are multiplied by 3600
+(i.e. shown in units per hour instead of units per second) in case
+of small values more accurate graphs are displayed.
+It also affects the 'factory default' labeling and units
+for the given target.
+.IP "noinfo" 4
+.IX Item "noinfo"
+Suppress the information about uptime and
+device name in the generated webpage.
+.IP "nopercent" 4
+.IX Item "nopercent"
+Don't print usage percentages.
+.IP "transparent" 4
+.IX Item "transparent"
+Make the background of the generated gifs transparent.
+.IP "integer" 4
+.IX Item "integer"
+Print summary lines below graph as integers without commas.
+.IP "dorelpercent" 4
+.IX Item "dorelpercent"
+The relative percentage of IN-traffic to OUT-traffic is calculated
+and displayed in the graph as an additional line.
+Note: Only a fixed scale is available (from 0 to 100%). Therefore
+if IN-traffic is greater than OUT-traffic then 100% is displayed.
+If you suspect that your IN-traffic is not always less than or equal
+to your OUT-traffic you are urged to not use this options.
+Note: If you use this option in combination with the \fIColours\fR
+options, a fifth colour-name colour-value pair is required there.
+.IP "avgpeak" 4
+.IX Item "avgpeak"
+There are some ISPs who use the average Peak values to bill their customers.
+Using this option \s-1MRTG\s0 displays these values for each graph. The value is
+built by averaging the max 5 minute traffic average for each 'step' shown in
+the graph. For the Weekly graph this means that it builds the average of all
+2 hour intervals 5 minute peak values. (Confused? Thought so!)
+.IP "gauge" 4
+.IX Item "gauge"
+Treat the values gathered from target as 'current status' measurements
+and not as ever incrementing counters.
+This would be useful to monitor things like disk space,
+processor load, temperature, and the like ...
+.Sp
+In the absence of 'gauge' or 'absolute' options,
+\&\s-1MRTG\s0 treats variables as a counters and calculates
+the difference between the current and the previous value
+and divides that by the elapsed time between
+the last two readings to get the value to be plotted.
+.IP "absolute" 4
+.IX Item "absolute"
+This is for counter type data sources which reset their value when they are
+read. This means that rateup does not have to build the difference between
+the current and the last value read from the data source. The value obtained is
+still divided by the elapsed time between the current and the last reading, which makes
+it different from the 'gauge' option. Useful for external data gatherers.
+.IP "derive" 4
+.IX Item "derive"
+If you are using rrdtool as logger/grapher you can use a third type of data
+source. Derive is like counter, except that it is not required to go \s-1UP\s0 all
+the time. It is useful for situations where the change of some value should be
+graphed.
+.IP "unknaszero" 4
+.IX Item "unknaszero"
+Log unknown data as zero instead of the default behaviour of repeating the
+last value seen. Be careful with this, often a flat line in the graph is
+much more obvious than a line at 0.
+.IP "withzeroes" 4
+.IX Item "withzeroes"
+Normally we ignore all values which are zero when calculating the average
+transfer rate on a line. If this is not desirable use this option.
+.IP "noborder" 4
+.IX Item "noborder"
+If you are using rateup to log data, \s-1MRTG\s0 will create the graph images.
+Normally these images have a shaded border around them. If you do not want the
+border to be drawn, enable this option. This option has no effect if you are
+not using rateup.
+.IP "noarrow" 4
+.IX Item "noarrow"
+As with the option above, this effects rateup graph generation only. Normally
+rateup will generate graphs with a small arrow showing the direction of the
+data. If you do not want this arrow to be drawn, enable this option. This
+option has no effect if you are not using rateup.
+.IP "noi" 4
+.IX Item "noi"
+When using rateup for graph generation, you can use this option to stop rateup
+drawing a graph for the 'I' or first variable. This also removes entries for
+this variable in the \s-1HTML\s0 page \s-1MRTG\s0 generates, and will remove the peaks for
+this variable if they are enabled. This allows you to hide this data, or can
+be very useful if you are only graphing one line of data rather than two.
+This option is not destructive \- any data received for the the variable
+continued to be logged, it just isn't shown.
+.IP "noo" 4
+.IX Item "noo"
+Same as above, except relating to the 'O' or second variable.
+.IP "nobanner" 4
+.IX Item "nobanner"
+When using rateup for graph generation, this option disables \s-1MRTG\s0 adding the
+\&\s-1MRTG\s0 banner to the \s-1HTML\s0 pages it generates.
+.IP "nolegend" 4
+.IX Item "nolegend"
+When using rateup for graph generation, this option will stop \s-1MRTG\s0 from creating
+a legend at the bottom of the \s-1HTML\s0 pages it generates.
+.IP "printrouter" 4
+.IX Item "printrouter"
+When using rateup for graph generation, this option will print the router
+name in the graph it generates. This option is overridden by the value of
+PNGTitle if one is given
+.IP "pngdate" 4
+.IX Item "pngdate"
+When using rateup for graph generation, this option will print a
+timestamp in the graph it generates, including a timezone if one is specified
+by the 'Timezone' parameter. This is aequivalent to setting TimeStrPost[x]: \s-1RU\s0
+.IP "logscale" 4
+.IX Item "logscale"
+The \fBlogscale\fR option causes rateup to display the data with the Y axis
+scaled logarithmically. Doing so allows the normal traffic to occupy
+the majority of the vertical range, while still showing any spikes at
+their full height.
+.Sp
+\&\fBlogscale\fR displays all the available data and will always produce
+well-behaved graphs. People often consider a logarithmically scaled graph
+counterintuitive, however, and thus hard to interpret.
+.IP "expscale" 4
+.IX Item "expscale"
+The \fBexpscale\fR option causes rateup to display the data with the Y axis
+scaled exponentially. Doing so emphasizes small changes at the top of
+the scale; this can be useful when graphing values that fluctuate by
+a small amount near the top of the scale, such as line voltage.
+.Sp
+\&\fBexpscale\fR is essentially the inverse of \fBlogscale\fR.
+.IP "secondmean" 4
+.IX Item "secondmean"
+The \fBsecondmean\fR option sets the maximum value on the graph to the mean
+of the data greater than the mean of all data. This produces a graph
+that focuses more on the typical data, while clipping large peaks.
+.Sp
+Using \fBsecondmean\fR will give a more intutive linearly
+scaled graph, but can result in a uselessly high or low scale in some
+rare situations (specifically, when the data includes a large portion
+of values far from the actual mean)
+.Sp
+If a target includes both \fBlogscale\fR and \fBsecondmean\fR in the options, the
+\&\fBsecondmean\fR takes precedence.
+.PP
+Example:
+.PP
+.Vb 1
+\& Options[myrouter]: growright, bits
+.Ve
+.SS "kilo"
+.IX Subsection "kilo"
+Use this option to change the multiplier value for building
+prefixes. Defaultvalue is 1000. This tag is for the special
+case that 1kB = 1024B, 1MB = 1024kB and so far.
+.PP
+Example:
+.PP
+.Vb 1
+\& kilo[myrouter]: 1024
+.Ve
+.SS "kMG"
+.IX Subsection "kMG"
+Change the default multiplier prefixes (,k,M,G,T,P). In the tag
+\&\fIShortLegend\fR define only the basic units.
+Format: Comma separated list of prefixed. Two consecutive commas
+or a comma at start or end of the line gives no prefix on this item.
+If you do not want prefixes, just put two consecutive commas.
+If you want to skip a magnitude select '\-' as value.
+.PP
+Example: velocity in nm/s (nanometers per second) displayed in nm/h.
+.PP
+.Vb 3
+\& ShortLegend[myrouter]: m/h
+\& kMG[myrouter]: n,u,m,,k,M,G,T,P
+\& options[myrouter]: perhour
+.Ve
+.SS "Colours"
+.IX Subsection "Colours"
+The \fIColours\fR tag allows you to override the default colour
+scheme. Note: All 4 of the required colours must be
+specified here. The colour name ('Colourx' below) is the
+legend name displayed, while the \s-1RGB\s0 value is the real
+colour used for the display, both on the graph and in the
+html doc.
+.PP
+Format is: Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB
+.PP
+Important:
+If you use the \fIdorelpercent\fR options tag a fifth colour name
+colour value pair is required:
+Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB,Col5#RRGGBB
+.IP "Colour1" 4
+.IX Item "Colour1"
+First variable (normally Input) on default graph.
+.IP "Colour2" 4
+.IX Item "Colour2"
+Second variable (normally Output) on default graph.
+.IP "Colour3" 4
+.IX Item "Colour3"
+Max first variable (input).
+.IP "Colour4" 4
+.IX Item "Colour4"
+Max second variable (output).
+.IP "\s-1RRGGBB\s0" 4
+.IX Item "RRGGBB"
+2 digit hex values for Red, Green and Blue.
+.PP
+Example:
+.PP
+.Vb 1
+\& Colours[myrouter]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
+.Ve
+.SS "Background"
+.IX Subsection "Background"
+With the \fIBackground\fR tag you can configure the background
+colour of the generated \s-1HTML\s0 page.
+.PP
+Example:
+.PP
+.Vb 1
+\& Background[myrouter]: #a0a0a0a
+.Ve
+.SS "YLegend, ShortLegend, Legend[1234]"
+.IX Subsection "YLegend, ShortLegend, Legend[1234]"
+The following keywords allow you to override the text
+displayed for the various legends of the graph and in the
+\&\s-1HTML\s0 document:
+.IP "YLegend" 4
+.IX Item "YLegend"
+The Y\-axis label of the graph. Note that a text which is too long
+to fit in the graph will be silently ignored.
+.IP "ShortLegend" 4
+.IX Item "ShortLegend"
+The units string (default 'b/s') used for Max, Average and Current
+.IP "Legend[1234IO]" 4
+.IX Item "Legend[1234IO]"
+The strings for the colour legend.
+.PP
+Example:
+.PP
+.Vb 8
+\& YLegend[myrouter]: Bits per Second
+\& ShortLegend[myrouter]: b/s
+\& Legend1[myrouter]: Incoming Traffic in Bits per Second
+\& Legend2[myrouter]: Outgoing Traffic in Bits per Second
+\& Legend3[myrouter]: Maximal 5 Minute Incoming Traffic
+\& Legend4[myrouter]: Maximal 5 Minute Outgoing Traffic
+\& LegendI[myrouter]: &nbsp;In:
+\& LegendO[myrouter]: &nbsp;Out:
+.Ve
+.PP
+Note, if \fILegendI\fR or \fILegendO\fR are set to an empty string with
+.PP
+.Vb 1
+\& LegendO[myrouter]:
+.Ve
+.PP
+The corresponding line below the graph will not be printed at all.
+.SS "Timezone"
+.IX Subsection "Timezone"
+If you live in an international world, you might want to
+generate the graphs in different timezones. This is set in the
+\&\s-1TZ\s0 variable. Under certain operating systems like Solaris,
+this will provoke the localtime call to give the time in
+the selected timezone.
+.PP
+Example:
+.PP
+.Vb 1
+\& Timezone[myrouter]: Japan
+.Ve
+.PP
+The Timezone is the standard timezone of your system, ie Japan, Hongkong,
+\&\s-1GMT, GMT+1\s0 etc etc.
+.SS "Weekformat"
+.IX Subsection "Weekformat"
+By default, mrtg (actually rateup) uses the \fIstrftime\fR\|(3) '%V' option to
+format week numbers in the monthly graphs. The exact semantics of this
+format option vary between systems. If you find that the week numbers are
+wrong, and your system's \fIstrftime\fR\|(3) routine supports it, you can try
+another format option. The \s-1POSIX \s0'%V' option correspond to the widely used
+\&\s-1ISO 8601\s0 week numbering standard. The week format character should be
+specified as a single letter; either W, V, or U.
+.PP
+The \s-1UNIX\s0 version of rateup uses the libc implementation of strftime.
+On Windows, the native strftime implementation does not know about
+\&\f(CW%V\fR. So there we use a different implementation of strftime that does
+support \f(CW%V\fR.
+.PP
+Example:
+.PP
+.Vb 1
+\& Weekformat[myrouter]: W
+.Ve
+.SS "RRDRowCount"
+.IX Subsection "RRDRowCount"
+This affects the creation of new rrd files. By default rrds are created to
+hold about 1 day's worth of high resolution data. (plus 1 week of 30 minute
+data, 2 months of 2 hour data and 2 years of 1 day data). With this Keyword
+you can change the number of base interval entries configured for new rrds
+as they get created. Note that you must take the interval time into account.
+.PP
+Example:
+.PP
+.Vb 1
+\& RRDRowCount[myrouter]: 1600
+.Ve
+.SS "RRDRowCount30m"
+.IX Subsection "RRDRowCount30m"
+As per RRDRowCount, but for the \s-1RRA\s0's \-typically\- used for 30 minute data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+.PP
+Example:
+.PP
+.Vb 1
+\& RRDRowCount30m[myrouter]: 800
+.Ve
+.SS "RRDRowCount2h"
+.IX Subsection "RRDRowCount2h"
+As per RRDRowCount, but for the \s-1RRA\s0's \-typically\- used for 2 hour data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+.PP
+Example:
+.PP
+.Vb 1
+\& RRDRowCount2h[myrouter]: 400
+.Ve
+.SS "RRDRowCount1d"
+.IX Subsection "RRDRowCount1d"
+As per RRDRowCount, but for the \s-1RRA\s0's \-typically\- used for 1 day data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+.PP
+Example:
+.PP
+.Vb 1
+\& RRDRowCount1d[myrouter]: 200
+.Ve
+.SS "RRDHWRRAs"
+.IX Subsection "RRDHWRRAs"
+Normally the RRDs created by \s-1MRTG\s0 will just contain the information gathered
+directly from the respective target. With this option you can tap into
+rrdtools advanced aberrant behaviour detection module based on Holt-Winters
+forecasting. The RRDHWRRAs property specifies the Holt-Winters RRAs as
+described in the rrdcreate manual page.
+.PP
+Note, this setting will only affect newly created RRDs (targets).
+.PP
+Example:
+.PP
+.Vb 1
+\& RRDHWRRAs[myrouter]: RRA:HWPREDICT:1440:0.1:0.0035:288
+.Ve
+.SS "TimeStrPos"
+.IX Subsection "TimeStrPos"
+This defines placement of the timestamp string on the image. Possible
+values are \s-1RU, LU, RL, LL \s0(which stand, respectively, for RightUpper,
+LeftUpper, RightLower and LeftLower corner) and \s-1NO \s0(for no timestamp).
+By default, no timestamp is placed on the image.
+.PP
+Example:
+.PP
+.Vb 1
+\& TimeStrPos[myrouter]: RU
+.Ve
+.SS "TimeStrFmt"
+.IX Subsection "TimeStrFmt"
+Using this keyword you may specify format of the timestamp to be placed
+on the image (if enabled by the TimeStrPos keyword). Specified string
+will be used by the \fIstrftime()\fR function \- see \fIstrftime\fR\|(3) documentation
+for conversion specifiers available on your system.
+Default format: \f(CW%Y\fR\-%m\-%d \f(CW%H:\fR%M
+.PP
+Example:
+.PP
+.Vb 1
+\& TimeStrFmt[myrouter]: %H:%M:%S
+.Ve
+.SH "THRESHOLD CHECKING"
+.IX Header "THRESHOLD CHECKING"
+Through its threshold checking functionality mrtg is able to detect
+threshold problems for the various targets and can call external
+scripts to handle those problems (e.g. send email or a page to an administrator).
+.PP
+Threshold checking is configured through the following parameters:
+.SS "ThreshDir (\s-1GLOBAL\s0)"
+.IX Subsection "ThreshDir (GLOBAL)"
+By defining ThreshDir to point to a writable directory, \s-1MRTG\s0 will only alert
+you when a threshold boundary has been crossed.
+.PP
+Example:
+.PP
+.Vb 1
+\& ThreshDir: /var/mrtg/thresh
+.Ve
+.SS "ThreshHyst (\s-1GLOBAL\s0)"
+.IX Subsection "ThreshHyst (GLOBAL)"
+If a threshold is broken, and you have a threshdir defined, then mrtg will
+send mail once the threshold becomes 'unborken' to avoid situations where
+broken and unbroken messages get sent in close succession, we only send an
+unbroken message once the curent value is 0.1 (10%) away from the threshold.
+using the ThreshHyst config variable you can customize this value.
+.PP
+Example for 5%:
+.PP
+.Vb 1
+\& ThreshHyst: 0.05
+.Ve
+.SS "ThreshMailServer (\s-1GLOBAL\s0)"
+.IX Subsection "ThreshMailServer (GLOBAL)"
+Adderss of an \s-1SMTP\s0 server which is going to accept mail about Thresholds being broken and unbroken.
+.SS "ThreshMailSender (\s-1GLOBAL\s0)"
+.IX Subsection "ThreshMailSender (GLOBAL)"
+What is the sender address of the threshold mail.
+.PP
+Example:
+.PP
+.Vb 1
+\& ThreshMailSender: mrtg@example.com
+.Ve
+.SS "ThreshMailAddress (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshMailAddress (PER TARGET)"
+Email address for Threshold related Mails. This will only work if a mailserver has been configured.
+.PP
+Example:
+.PP
+.Vb 2
+\& ThreshMailAddress[_]: admin@example.com
+\& ThreshMailAddress[router]:
+.Ve
+.PP
+This would bring threshold releaed mail to all but the target called 'router'.
+.SS "ThreshMinI (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshMinI (PER TARGET)"
+This is the minimum acceptable value for the Input (first) parameter. If
+the parameter falls below this value, the program specified in ThreshProgI
+will be run and a mail will be sent to the ThreshMailAddress if specified.
+If the value ends in '%' then the threshold is defined relative to MaxBytes.
+.SS "ThreshMaxI (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshMaxI (PER TARGET)"
+Works the same as TheshMinI but it acts when the value is higher than ThreshMaxI.
+.SS "ThreshDesc (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshDesc (PER TARGET)"
+Its value will be assigned to the environment variable \s-1THRESH_DESC\s0 before
+any of the programs mentioned below are called. The programs can use the value
+of this variable to produce more user-friendly output.
+.SS "ThreshProgI (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshProgI (PER TARGET)"
+This defines a program to be run if ThreshMinI or ThreshMaxI is broken.
+\&\s-1MRTG\s0 passes 3 arguments: the \f(CW$router\fR variable, the threshold value
+broken, and the current parameter value.
+.SS "ThreshProgOKI (\s-1PER TARGET\s0)"
+.IX Subsection "ThreshProgOKI (PER TARGET)"
+This defines a program to be run if the parameter is currently \s-1OK \s0(based on
+ThreshMinI and ThreshMaxI), but wasn't \s-1OK\s0 on the previous running \*(-- based
+on the files found in ThreshDir. \s-1MRTG\s0 passes 3 arguments: the \f(CW$router\fR
+variable the unbroken threshold value, and the current parameter value.
+.SS "ThreshMinO, ThreshMaxO, ThreshProgO, and ThreshProgOKO"
+.IX Subsection "ThreshMinO, ThreshMaxO, ThreshProgO, and ThreshProgOKO"
+These work the same as their *I counterparts, except on the Output (second)
+parameter.
+.SS "SetEnv"
+.IX Subsection "SetEnv"
+When calling threshold scripts from within your cfg file you might want to
+pass some data on to the script. This can be done with the SetEnv
+configuration option which takes a series of environment variable
+assignments. Note that the quotes are mandatory. This does not
+work for external scripts. It is not
+possible to set environment variables per target.
+.PP
+Example:
+.PP
+.Vb 2
+\& SetEnv[myrouter]: EMAIL="contact_email@someplace.net"
+\& HOST="www.some_server.net"
+.Ve
+.SS "\s-1HW\s0 Failure Bassed Threshold Checking"
+.IX Subsection "HW Failure Bassed Threshold Checking"
+When using rrd based logging with \s-1HW\s0 RRAs defined. You can use the
+confidence bounds violations stored in the \s-1FAILURES RRA\s0 for threshold based
+alerts.
+.PP
+There the all target specific threshold variables have a Hold-Winters counterpart:
+.PP
+.Vb 3
+\& ThreshMailAddress \-> HWThreshMailAddress
+\& ThreshMinI \-> HWThreshMinI
+\& ...
+.Ve
+.PP
+The global variables for threshold checking are shared except for the
+.PP
+.Vb 1
+\& ThreshHyst \-> HWThreshHyst
+.Ve
+.PP
+And HWThreshDesc sets the \s-1HWTHRESH_DESC\s0 variable.
+.SH "PER TARGET DEFAULT VALUES"
+.IX Header "PER TARGET DEFAULT VALUES"
+.SS "Pre\- and Postfix"
+.IX Subsection "Pre- and Postfix"
+To save yourself some typing you can define a target
+called '^'. The text of every Keyword you define for this
+target will be \s-1PREPENDED\s0 to the corresponding Keyword of
+all the targets defined below this line. The same goes for
+a Target called '$' but its text will be \s-1APPENDED.\s0
+.PP
+Note that a space is inserted between the prepended text
+and the Keyword value, as well as between the Keyword value
+and the appended text. This works well for text-valued Keywords,
+but is not very useful for other Keywords. See the \*(L"default\*(R"
+target description below.
+.PP
+The example will make mrtg use a common header and a
+common contact person in all the pages generated from
+targets defined later in this file.
+.PP
+Example:
+.PP
+.Vb 2
+\& PageTop[^]: <H1>NoWhere Unis Traffic Stats</H1><HR>
+\& PageTop[$]: Contact Peter Norton if you have any questions<HR>
+.Ve
+.PP
+To remove the prepend/append value, specify an empty value, e.g.:
+.PP
+.Vb 2
+\& PageTop[^]:
+\& PageTop[$]:
+.Ve
+.SS "NoSpaceChar"
+.IX Subsection "NoSpaceChar"
+With \s-1PREPEND\s0 and \s-1APPEND \s0(see below) there is normally a space inserted
+between the local value and the \s-1PRE\-\s0 or \s-1APPEND\s0 value. Sometimes this is not
+desirable. You can use the global option \fINoSpaceChar\fR to
+define a character which can be mentioned at the end of a $ or ^ definition
+in order to supress the space.
+.PP
+Example:
+.PP
+.Vb 6
+\& NoSpaceChar: ~
+\& Target[^]: 1.3.6.1.4.1.482.50.2.4.20.0&1.3.6.1.4.1.482.50.2.4.21.0:get@~
+\& Target[a]: a.tolna.net
+\& Target[b]: b.tolna.net
+\& Target[c]: c.tolna.net
+\& Target[d]: d.tolna.net
+.Ve
+.SS "Default Values"
+.IX Subsection "Default Values"
+The target name '_' specifies a default value for that
+Keyword. In the absence of explicit Keyword value, the prepended
+and the appended keyword value, the default value will be used.
+.PP
+Example:
+.PP
+.Vb 5
+\& YSize[_]: 150
+\& Options[_]: growright,bits,nopercent
+\& WithPeak[_]: ymw
+\& Suppress[_]: y
+\& MaxBytes[_]: 1250000
+.Ve
+.PP
+To remove the default value and return to the 'factory default',
+specify an empty value, e.g.:
+.PP
+.Vb 1
+\& YLegend[_]:
+.Ve
+.PP
+There can be several instances of setting the default/prepend/append
+values in the configuration file. The later setting replaces the
+previous one for the rest of the configuration file.
+The default/prepend/append values used for a given
+keyword/target pair are the ones that were in effect
+at the point in the configuration file where the target
+was mentioned for the first time.
+.PP
+Example:
+.PP
+.Vb 4
+\& MaxBytes[_]: 1250000
+\& Target[myrouter.somplace.edu.2]: 2:public@myrouter.somplace.edu
+\& MaxBytes[_]: 8000
+\& Title[myrouter.somplace.edu.2]: Traffic Analysis for myrouter.somplace.edu IF 2
+.Ve
+.PP
+The default \fIMaxBytes\fR for the target myrouter.someplace.edu.2
+in the above example will be 1250000, which was in effect
+where the target name myrouter.someplace.edu.2 first appeared
+in the config file.
+.SH "COMMAND LINE OPTIONS"
+.IX Header "COMMAND LINE OPTIONS"
+.IP "\fB\-\-user\fR \fIusername\fR and \fB\-\-group\fR \fIgroupname\fR" 4
+.IX Item "--user username and --group groupname"
+Run as the given user and/or group. (Unix Only)
+.IP "\fB\-\-lock\-file\fR \fIfilename\fR" 4
+.IX Item "--lock-file filename"
+Use an alternate lock-file (the default is to use the configuration-file
+appended with \f(CW\*(C`_l\*(C'\fR).
+.IP "\fB\-\-confcache\-file\fR \fIfilename\fR" 4
+.IX Item "--confcache-file filename"
+Use an alternate confcache-file (the default is to use the
+configuration-file appended with \f(CW\*(C`.ok\*(C'\fR)
+.IP "\fB\-\-logging\fR \fIfilename\fR|\fBeventlog\fR" 4
+.IX Item "--logging filename|eventlog"
+If this is set to writable filename, all output from mrtg (warnings, debug
+messages, errors) will go to \fIfilename\fR. If you are running on Win32 you
+can specify \fBeventlog\fR instead of a filename which will send all error to
+the windows event log.
+.Sp
+\&\fB\s-1NOTE:\s0\fR Note, there is no Message \s-1DLL\s0 for mrtg included with mrtg. This has
+the side effect that the windows event logger will display a nice message
+with every entry in the event log, complaing about the fact that mrtg has no
+message dll. If you go to the mrtg contrib download area (on the website)
+you will find the mrtg\-message\-dll.zip which does contain such a thing.
+.IP "\fB\-\-daemon\fR" 4
+.IX Item "--daemon"
+Put \s-1MRTG\s0 into the background, running as a daemon. This works the same way as
+the config file option, but the switch is required for proper \s-1FHS\s0 operation
+(because /var/run is writable only by root)
+.IP "\fB\-\-fhs\fR" 4
+.IX Item "--fhs"
+Configure all mrtg paths to conform to the \s-1FHS\s0 specification;
+http://www.pathname.com/fhs/
+.IP "\fB\-\-check\fR" 4
+.IX Item "--check"
+Only check the cfg file for errors. Do not do anything.
+.IP "\fB\-\-pid\-file=s\fR" 4
+.IX Item "--pid-file=s"
+Define the name and path of the pid file for mrtg running as a daemon
+.IP "\fB\-\-debug=s\fR" 4
+.IX Item "--debug=s"
+Enable debug options. The argument of the debug option is a comma separated
+list of debug values:
+.Sp
+.Vb 11
+\& cfg \- watch the config file reading
+\& dir \- directory mangeling
+\& base \- basic program flow
+\& tarp \- target parser
+\& snpo \- snmp polling
+\& coca \- confcache operations
+\& fork \- forking view
+\& time \- some timing info
+\& log \- logging of data via rateup or rrdtool
+\& eval \- print eval strings before evaluting them
+\& prof \- add hires timing info the rrd calls
+.Ve
+.Sp
+Example:
+.Sp
+.Vb 1
+\& \-\-debug="cfg,snpo"
+.Ve
+.SH "EXIT CODES"
+.IX Header "EXIT CODES"
+An exit code of 0 indicates that all targets were successful. Generally
+speaking, most codes greater than 0 indicate that there was an unrecoverable
+problem. One exception to this is code 91, which indicates that at least
+one of the targets was successful. A partial listing of the codes follows:
+.PP
+.Vb 1
+\& 0: All targets sucessful
+\&
+\& 2: Config error (can\*(Aqt read, fatal error in config, etc)
+\& 17: Another MRTG process is processing config
+\&
+\& 91: At least one target sucessful
+\& 92: No targets were sucessful
+.Ve
+.SH "EXAMPLES"
+.IX Header "EXAMPLES"
+.SS "Minimal mrtg.cfg"
+.IX Subsection "Minimal mrtg.cfg"
+.Vb 5
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+\& Target[r1]: 2:public@myrouter.somplace.edu
+\& MaxBytes[r1]: 8000
+\& Title[r1]: Traffic Analysis ISDN
+\& PageTop[r1]: <H1>Stats for our ISDN Line</H1>
+.Ve
+.SS "Cfg for several Routers."
+.IX Subsection "Cfg for several Routers."
+.Vb 6
+\& WorkDir: /usr/tardis/pub/www/stats/mrtg
+\& Title[^]: Traffic Analysis for
+\& PageTop[^]: <H1>Stats for
+\& PageTop[$]: Contact The Chief if you notice anybody<HR>
+\& MaxBytes[_]: 8000
+\& Options[_]: growright
+\&
+\& Title[isdn]: our ISDN Line
+\& PageTop[isdn]: our ISDN Line</H1>
+\& Target[isdn]: 2:public@router.somplace.edu
+\&
+\& Title[backb]: our Campus Backbone
+\& PageTop[backb]: our Campus Backbone</H1>
+\& Target[backb]: 1:public@router.somplace.edu
+\& MaxBytes[backb]: 1250000
+\&
+\& # the following line removes the default prepend value
+\& # defined above
+\&
+\& Title[^]:
+\&
+\& Title[isdn2]: Traffic for the Backup ISDN Line
+\& PageTop[isdn2]: our ISDN Line</H1>
+\& Target[isdn2]: 3:public@router.somplace.edu
+.Ve
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch> and many contributors
diff --git a/doc/mrtg-reference.pod b/doc/mrtg-reference.pod
new file mode 100644
index 0000000..f1a444d
--- /dev/null
+++ b/doc/mrtg-reference.pod
@@ -0,0 +1,2301 @@
+=head1 NAME
+
+mrtg-reference - MRTG 2.17.7 configuration reference
+
+=head1 OVERVIEW
+
+The runtime behaviour of MRTG is governed by a configuration file.
+Run-of-the-mill configuration files can be generated with B<cfgmaker>.
+(Check L<cfgmaker>). But for more elaborate configurations some hand-tuning
+is required.
+
+This document describes all the configuration options understood by
+the mrtg software.
+
+=head1 SYNTAX
+
+MRTG configuration file syntax follows some simple rules:
+
+=over
+
+=item *
+
+Keywords must start at the beginning of a line.
+
+=item *
+
+Lines which follow a keyword line which start
+with a blank are appended to the keyword line
+
+=item *
+
+Empty Lines are ignored
+
+=item *
+
+Lines starting with a # sign are comments.
+
+=item *
+
+You can add other files into the configuration file using
+
+B<Include:> I<file>
+
+Example:
+
+ Include: base-options.inc
+
+If included files are specified with relative paths, both the current
+working directory and the directory containing the main config file will
+be searched for the files. The current working directory will be searched
+first.
+
+If the included filename contains an asterisk, then this is taken as a
+wildcard for zero or more characters, and all matching files are included.
+Thus, you can use this statement to include all files in a specified
+subdirectory.
+
+Example:
+
+ Include: servers/*.cfg
+
+In this case, you should be very careful that your wildcard pattern does not
+find a match relative to the current working directory if you mean it to be
+relative to the main config file directory, since the working directory is
+checked for a match first (as with a normal Include directive). Therefore,
+use of something like '*/*' is discouraged.
+
+=back
+
+=head1 GLOBAL KEYWORDS
+
+=head2 WorkDir
+
+WorkDir specifies where the logfiles and the webpages should
+be created.
+
+Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+
+=head1 OPTIONAL GLOBAL KEYWORDS
+
+=head2 HtmlDir
+
+HtmlDir specifies the directory where the html (or shtml,
+but we'll get on to those later) lives.
+
+NOTE: Workdir overrides the settings for htmldir, imagedir
+and logdir.
+
+Example:
+
+ Htmldir: /www/mrtg/
+
+=head2 ImageDir
+
+ImageDir specifies the directory where the images live. They
+should be under the html directory.
+
+Example:
+
+ Imagedir: /www/mrtg/images
+
+=head2 LogDir
+
+LogDir specifies the directory where the logs are stored.
+This need not be under htmldir directive.
+
+Example:
+
+ Logdir: /www/mrtg/logs
+
+=head2 Forks (UNIX only)
+
+With system that supports fork (UNIX for example), mrtg can fork itself into multiple
+instances while it is acquiring data via snmp.
+
+For situations with high latency or a great number of devices
+this will speed things up considerably. It will not make things faster,
+though, if you query a single switch sitting next door.
+
+As far as I know NT can not fork so this option is not available on NT.
+
+Example:
+
+ Forks: 4
+
+=head2 EnableIPv6
+
+When set to yes, IPv6 support is enabled if the required libraries are
+present (see the L<mrtg-ipv6> manpage). When IPv6 is enabled, mrtg can talk
+to routers using SNMP over IPv6 and targets may be specified by their
+numeric IPv6 addresses as well as by hostname or IPv4 address.
+
+If IPv6 is enabled and the target is a hostname, mrtg will try to resolve
+the hostname to an IPv6 address and, if this fails, to an IPv4 address.
+Note that mrtg will only use IPv4 if you specify an IPv4 address or a
+hostname with no corresponding IPv6 address; it will not fall back to IPv4
+if it simply fails to communicate with the target using IPv6. This is by
+design.
+
+Note that many routers do not currently support SNMP over IPv6. Use the
+I<IPv4Only> per target option for these routers.
+
+IPv6 is disabled by default.
+
+Example:
+
+ EnableIPv6: Yes
+
+=head2 EnableSnmpV3
+
+When set to yes, uses the Net::SNMP module instead of the SNMP_SESSION module for
+generating snmp queries. This allows the use of SNMPv3 if other snmpv3 parameters
+are set.
+
+SNMPv3 is disabled by default.
+
+Example:
+
+ EnableSnmpV3: yes
+
+=head2 Refresh
+
+How many seconds apart should the browser (Netscape) be
+instructed to reload the page? If this is not defined, the
+default is 300 seconds (5 minutes).
+
+Example:
+
+ Refresh: 600
+
+=head2 Interval
+
+How often do you call mrtg? The default is 5 minutes. If
+you call it less often, you should specify it here.
+This does two things:
+
+=over
+
+=item *
+
+The generated HTML page contains the right
+information about the calling interval ...
+
+=item *
+
+A META header in the generated HTML page will instruct
+caches about the time-to-live of this page .....
+
+=back
+
+In this example, we tell mrtg that we will be calling it
+every 10 minutes. If you are calling mrtg every 5
+minutes, you can leave this line commented out.
+
+Example:
+
+ Interval: 10
+
+Note that unless you are using rrdtool you can not set Interval to less
+than 5 minutes. If you are using rrdtool you can set interval in the format
+
+ Interval: MM[:SS]
+
+Down to 1 second. Note though, setting the Interval for an rrdtool/mrtg
+setup will influence the initial creation of the database. If you change the
+interval later, all existing databases will remain at the resolution they
+were initially created with. Also note that you must make sure that your
+mrtg-rrd Web-frontend can deal with this kind of Interval setting.
+
+=head2 MaxAge
+
+MRTG relies heavily on the real time clock of your computer. If the time is
+set to a wrong value, especially if it is advanced far into the future,
+this will cause mrtg to expire lots of supposedly old data from the log files.
+
+To prevent this, you can add a 'reasonability' check by specifying a maximum
+age for log files. If a file seems to be older, mrtg will not touch it but
+complain instead, giving you a chance to investigate the cause.
+
+Example:
+
+ MaxAge: 7200
+
+The example above will make mrtg refuse to update log files older than 2
+hours (7200 seconds).
+
+
+=head2 WriteExpires
+
+With this switch mrtg will generate .meta files for CERN
+and Apache servers which contain Expiration tags for the
+html and gif files. The *.meta files will be created in
+the same directory as the other files, so you will have
+to set "MetaDir ." and "MetaFiles on"
+in your apache.conf or .htaccess file for this to work
+
+NOTE: If you are running Apache-1.2 or later, you can use the mod_expire
+to achieve the same effect ... see the file htaccess.txt
+
+Example:
+
+ WriteExpires: Yes
+
+
+
+=head2 NoMib2
+
+Normally we ask the SNMP device for 'sysUptime' and 'sysName' properties.
+Some do not have these. If you want to avoid getting complaints from
+mrtg about these missing properties, specify the nomib2 option.
+
+An example of agents which do not implement base mib2 attributes are
+Computer Associates - Unicenter TNG Agents. CA relies on using the base
+OS SNMP agent in addition to its own agents to supplement the management
+of a system.
+
+Example:
+
+ NoMib2: Yes
+
+=head2 SingleRequest
+
+Some SNMP implementations can not deal with requests asking for
+multiple snmp variables in one go. Set this in your cfg file to force
+mrtg to only ask for one variable per request.
+
+Examples
+
+ SingleRequest: Yes
+
+=head2 SnmpOptions
+
+Apart from the per target timeout options, you can also configure the
+behaviour of the snmpget process on a more profound level. SnmpOptions
+accepts a hash of options. The following options are currently supported:
+
+ timeout => $default_timeout,
+ retries => $default_retries,
+ backoff => $default_backoff,
+ default_max_repetitions => $max_repetitions,
+ use_16bit_request_ids => 1,
+ lenient_source_port_matching => 0,
+ lenient_source_address_matching => 1
+
+The values behind the options indicate the current default value.
+Note that these settings OVERRIDE the per target timeout settings.
+
+A per-target SnmpOptions[] keyword will override the global settings.
+That keyword is primarily for SNMPv3.
+
+The 16bit request ids are the only way to query the broken SNMP
+implementation of SMC Barricade routers.
+
+Example:
+
+ SnmpOptions: retries => 2, only_ip_address_matching => 0
+
+Note that AS/400 snmp seems to be broken in a way which prevents mrtg from
+working with it unless
+
+ SnmpOptions: lenient_source_port_matching => 1
+
+is set.
+
+=head2 IconDir
+
+If you want to keep the mrtg icons in someplace other than the
+working (or imagedir) directory, use the I<IconDir> variable for
+defining the url of the icons directory.
+
+Example:
+
+ IconDir: /mrtgicons/
+
+=head2 LoadMIBs
+
+Load the MIB file(s) specified and make its OIDs available as
+symbolic names. For better efficiancy, a cache of MIBs is maintained
+in the WorkDir.
+
+Example:
+
+ LoadMIBs: /dept/net/mibs/netapp.mib,/usr/local/lib/ft100m.mib
+
+=head2 Language
+
+Switch output format to the selected Language (Check the F<translate> directory
+to see which languages are supported at the moment. In this directory you
+can also find instructions on how to create new translations).
+
+Currently the following laguages are supported:
+
+big5
+brazilian
+bulgarian
+catalan
+chinese
+croatian
+czech
+danish
+dutch
+eucjp
+french
+galician
+gb
+gb2312
+german
+greek
+hungarian
+icelandic
+indonesia
+iso2022jp
+italian
+korean
+lithuanian
+malay
+norwegian
+polish
+portuguese
+romanian
+russian
+russian1251
+serbian
+slovak
+slovenian
+spanish
+swedish
+turkish
+ukrainian
+
+Example:
+
+ Language: danish
+
+=head2 LogFormat
+
+Setting LogFormat to 'rrdtool' in your mrtg.cfg file enables rrdtool mode.
+In rrdtool mode, mrtg relies on B<rrdtool> to do its logging. See L<mrtg-rrd>.
+
+Example:
+
+ LogFormat: rrdtool
+
+=head2 LibAdd
+
+If you are using rrdtool mode and your B<rrdtool> Perl module (RRDs.pm)
+is not installed in a location where perl can find it on its own, you can
+use LibAdd to supply an appropriate path.
+
+Example:
+
+ LibAdd: /usr/local/rrdtool/lib/perl/
+
+=head2 PathAdd
+
+If the B<rrdtool> executable can not be found in the normal C<PATH>, you can
+use this keyword to add a suitable directory to your path.
+
+Example:
+
+ PathAdd: /usr/local/rrdtool/bin/
+
+=head2 RRDCached
+
+If you are running RRDTool 1.4 or later with B<rrdcached>, then you can
+configure MRTG to take advantage of this for updates, either by using the
+RRDCACHED_ADDRESS environment variable, or by setting the RRDCached keyword
+in the configuration file. Note that, if both are set, the configuration file
+keyword will take precedence.
+
+Only UNIX domain sockets are fully supported prior to RRDTool v1.5, and
+you should note that using RRDCached mode will disable all Threshold checking
+normally done by MRTG. Appropriate warning messages will be printed if
+necessary.
+
+Examples:
+
+ RRDCached: unix:/var/tmp/rrdcached.sock
+
+ RRDCached: localhost:42217
+
+=head2 RunAsDaemon
+
+The RunAsDaemon keyword enables daemon mode operation. The purpose of daemon
+mode is that MRTG is launched once and not repeatedly (as it is with cron).
+This behavior saves computing resourses as loading and parsing
+of configuration files happens only once on startup, and if the configuration
+file is modified.
+
+Using daemon mode MRTG itself is responible for timing the measurement
+intervals. Therfore its important to set the Interval keyword to an
+apropiate value.
+
+Note that when using daemon mode MRTG should no longer be started from cron
+as each new process runs forever. Instead MRTG should be
+started from the command prompt or by a system startup script.
+
+If you want mrtg to run under a particular user and group (it is not
+recomended to run MRTG as root) then you can use the B<--user=>I<user_name>
+and B<--group=>I<group_name> options on the mrtg commandline.
+
+ mrtg --user=mrtg_user --group=mrtg_group mrtg.cfg
+
+Also note that in daemon mode restarting the process is required in order to
+activate changes in the config file.
+
+Under UNIX, the Daemon switch causes mrtg to fork into background after
+checking its config file. On Windows NT the MRTG process will detach from
+the console, but because the NT/2000 shell waits for its children you have to
+use this special start sequence when you launch the program:
+
+ start /b perl mrtg mrtg.cfg
+
+You may have to add path information equal to what you add when you run mrtg
+from the commandline.
+
+Example
+
+ RunAsDaemon: Yes
+ Interval: 5
+
+This makes MRTG run as a daemon beginning data collection every 5 minutes
+
+If you are daemontools and still want to run mrtg as a daemon you can
+additionally specify
+
+ NoDetach: Yes
+
+this will make mrtg run but without detaching it from the terminal.
+
+If the modification date on the configuration file changes during operation,
+then MRTG will re-read the configuration on the next polling cycle. Note that
+sub-files which are included from the main configuration do not have their
+modification times monitored, only the top-level file is so checked.
+
+=head2 ConversionCode
+
+Some devices may produce non-numeric values that would nevertheless
+be useful to graph with MRTG if those values could be converted to numbers.
+The ConversionCode keyword specifies the path to a file containing Perl code
+to perform such conversions. The code in this file must consist of one or more
+Perl subroutines. Each subroutine must accept a single string argument and
+return a single numeric value. When RRDtool is in use, a decimal value may
+be returned. When the name of one of these subroutines is specified in a
+target definition (see below), MRTG calls it twice for that target, once to
+convert the the input value being monitored and a second time to convert the
+output value. The subroutine must return an undefined value if the conversion
+fails. In case of failure, a warning may be posted to the MRTG log file using
+Perl's warn function. MRTG imports the subroutines into a separate name space
+(package MRTGConversion), so the user need not worry about pollution of MRTG's
+global name space. MRTG automatically prepends this package declaration to
+the user-supplied code.
+
+Example: Suppose a particular OID returns a character string whose length is
+proportional to the value to be monitored. To convert this string to a
+number that can be graphed by MRTG, create a file arbitrarily named
+"MyConversions.pl" containing the following code:
+
+ # Return the length of the string argument
+ sub Length2Int {
+ my $value = shift;
+ return length( $value );
+ }
+
+Then include the following global keyword in the MRTG configuration file
+(assuming that the conversion code file is saved in the mrtg/bin directory
+along with mrtg itself):
+
+ ConversionCode: MyConversions.pl
+
+This will cause MRTG to include the definition of the subroutine Length2Int
+in its execution environment. Length2Int can then be invoked on any target
+by appending "|Length2Int" to the target definition as follows:
+
+ Target[myrouter]: 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.1:public@mydevice|Length2Int
+
+See "Extended Host Name Syntax" below for complete target definition syntax
+information.
+
+
+=head2 SendToGraphite
+
+If you want to send a copy of the collected data into a Graphite database in addition
+to storing it in the RRDfile, you can provide your Graphite database name/ip and port
+number here.
+
+This requires the Net::Graphite perl module which is available from CPAN.
+
+Examples:
+
+ # If your Graphite receiver is running on the same host as the MRTG daemon and using the default port
+ SendToGraphite: 127.0.0.1,2003
+
+ # If your Graphite receiver is running on 192.168.100.50 port 5000
+ SendToGraphite: 192.168.100.50,5000
+
+ # If your Graphite receiver is running on graphite.mydomain.com port 2003
+ SendToGraphite: graphite.mydomain.com,2003
+
+Graphite's namespace has a number of restrictions on what characters are
+allowed. The SendToGraphite functionality makes an attempt to convert the MRTG
+target name and, if specified, the Legendi and Legendo values to Graphite namespace
+friendly values. Specifically, the following conversion rules apply:
+
+=over
+
+=item *
+
+Underscores in the target_name are converted to periods which are Graphite namespace delimiters.
+
+=item *
+
+Comma characters are not allowed so they are removed.
+
+=item *
+
+The string "m2g" for MRTG to Graphite is prepended onto the Graphite namespace variable.
+
+
+=back
+
+Example MRTG target to Graphite namespace conversion:
+
+ # Our MRTG target name from mrtg.cfg is as follows
+ Target[switch_GigabitEthernet0_5]: \GigabitEthernet0/5:public1@switch:::::2
+
+After the conversion you will end up with these Graphite namespace values
+
+ m2g.switch.gigabitethernet0.5.in
+ m2g.switch.gigabitethernet0.5.out
+
+Next is a more complicated example because Legendi and Legendo are in use to denote min and max
+voltage values that pertain to some APC UPS SNMP OIDs
+
+ # Target, Legendi, and Legendo are specified in mrtg.cfg as follows
+ Target[apc_minmaxline]: 1.3.6.1.4.1.318.1.1.1.3.2.3.0&1.3.6.1.4.1.318.1.1.1.3.2.2.0:public@apc:
+ LegendI[apc_minmaxline]: upsAdvInputMinLineVoltage
+ LegendO[apc_minmaxline]: upsAdvInputMaxLineVoltage
+
+After the conversion you will end up with these Graphite namespace values
+
+ m2g.apc.minmaxline.upsAdvInputMinLineVoltage
+ m2g.apc.minmaxline.upsAdvInputMaxLineVoltage
+
+
+If you don't see the data showing up in Graphite, chances are there are invalid characters in
+the namespace. To debug this, use the DEBUG=qw(log) directive at the top of the MRTG script
+to find out what is happening with the MRTG to Graphite namespace conversion.
+
+DEBUG=qw(log) will generate some output similar to what appears below
+
+ 2016-10-13 06:08:39 -- --log: RRDs::update(/var/www/mrtg/switch/switch_gigabitethernet0_5.rrd, '1476356919:2738746035:2927936327')
+ 2016-10-13 06:08:39 -- --log: graphite->send(m2g.switch.gigabitethernet0.5.in,2738746035,1476356919)
+
+ 2016-10-13 06:08:39 -- --log: graphite->send(m2g.switch.gigabitethernet0.5.out,2927936327,1476356919)
+
+ 2016-10-13 06:09:25 -- --log: RRDs::update(/var/www/mrtg/apc/apc_minmaxline.rrd, '1476356965:122:123')
+ 2016-10-13 06:09:25 -- --log: graphite->send(m2g.apc.minmaxline.upsAdvInputMinLineVoltage,122,1476356965)
+
+ 2016-10-13 06:09:25 -- --log: graphite->send(m2g.apc.minmaxline.upsAdvInputMaxLineVoltage,123,1476356965)
+
+If the MRTG log output looks reasonable, then take a look at Graphite's carbon-cache logs.
+
+
+=head1 PER TARGET CONFIGURATION
+
+Each monitoring target must be identified by a unique name. This
+name must be appended to each parameter belonging to the same
+target. The name will also be used for naming the
+generated webpages, logfiles and images for this target.
+
+=head2 Target
+
+With the I<Target> keyword you tell mrtg what it should
+monitor. The I<Target> keyword takes arguments in a wide
+range of formats:
+
+=over
+
+=item Basic
+
+The most basic format is "port:community@router"
+This will generate a traffic graph for the interface 'port'
+of the host 'router' (dns name or IP address)
+and it will use the community 'community' (snmp password)
+for the snmp query.
+
+Example:
+
+ Target[myrouter]: 2:public@wellfleet-fddi.domain
+
+If your community contains a "@" or a " " these characters
+must be escaped with a "\".
+
+ Target[bla]: 2:stu\ pi\@d@router
+
+=item SNMPv2c
+
+If you have a fast router you might want to try to poll the ifHC* counters.
+This feature gets activated by switching to SNMPv2c. Unfortunately not all
+devices support SNMPv2c yet. If it works, this will prevent your counters
+from wraping within the 5 minute polling interval, since we now use 64 bit
+instead of the normal 32 bit.
+
+Example:
+
+ Target[myrouter]: 2:public@router1:::::2
+
+=item SNMPv3
+
+As an alternative to SNMPv2c, SNMPv3 provides access to the ifHC* counters,
+along with encryption. Not all devices support SNMPv3, and you will also
+need the perl Net::SNMP library in order to use it. It is recommended that
+cfgmaker be used to generate configurations involving SNMPv3, as it will
+check if the Net::SNMP library is loadable, and will switch to SNMPv2c if
+v3 is unavailable.
+
+SNMP v3 requires additional authentication parameters, passed using the
+SnmpOptions[] per-target keyword.
+
+Example:
+ Target[myrouter]: 2:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+
+=item noHC
+
+Not all routers that support SNMPv2 or SNMPv3 provide the ifHC* counters
+on every interface. The noHC[] per-target keyword signals that the
+low-speed counters ifInOctets and ifOutOctets should be queried instead.
+cfgmaker will automatically insert this tag if SNMPv2 or SNMPv3 is specified
+but the ifHC* counters are unavailable.
+
+Example:
+ Target[myrouter]: #Bri0:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+ noHC[myrouter]: yes
+
+=item Reversing
+
+Sometimes you are sitting on the wrong side of the
+link, and you would like to have mrtg report Incoming
+traffic as Outgoing and vice versa. This can be achieved
+by adding the '-' sign in front of the "Target"
+description. It flips the incoming and outgoing traffic rates.
+
+Example:
+
+ Target[ezci]: -1:public@ezci-ether.domain
+
+=item Explicit OIDs
+
+You can also explicitly define which OID to query by using the
+following syntax 'OID_1&OID_2:community@router'
+The following example will retrieve error counts for input and output
+on interface 1. MRTG needs to graph two variables,
+so you need to specify two OID's such as temperature and humidity
+or error input and error output.
+
+Example:
+
+ Target[myrouter]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public@myrouter
+
+=item MIB Variables
+
+MRTG knows a number of symbolic SNMP variable names.
+See the file mibhelp.txt for a list of known names.
+One example are the ifInErrors and ifOutErrors.
+This means you can specify the above as:
+
+Example:
+
+ Target[myrouter]: ifInErrors.1&ifOutErrors.1:public@myrouter
+
+=item SnmpWalk
+
+It may be that you want to monitor an snmp object that is only reachable by
+'walking'. You can get mrtg to walk by prepending the OID with the string
+B<WaLK> or if you want a particular entry from the table returned by the walk
+you can use B<WaLK>I<x> where I<x> is a number starting from 0 (!).
+
+Example:
+
+ Target[myrouter]: WaLKstrangeOid.1&WaLKstrangeOid.2:public@myrouter
+
+ Target[myrouter]: WaLK3strangeOid.1&WaLK4strangeOid.2:public@myrouter
+
+
+=item SnmpGetNext
+
+A special case of an snmp object that is only reachable by 'walking' occurs
+when a single snmpgetnext will return the correct value, but snmpwalk fails.
+This may occur with snmp V2 or V3, as the snmpgetbulk method is used in these
+versions. You can get mrtg to use getnext instead of getbulk by prepending the
+OID with the string B<GeTNEXT>.
+
+Example:
+
+ Target[myrouter]: GeTNEXTstrangeOid&GeTNEXTstrangeOid:public@myrouter
+
+=item Counted SNMP Walk
+
+In other situations, an snmpwalk is needed to count rows, but the actual data
+is uninteresting. For example, counting the number of mac-addresses in a CAM
+table, or the number of simultaneous dialup sessions. You can get MRTG to count
+the number of instances by prepending the OID with the string B<CnTWaLK>. The
+following will retrieve the number of simultaneous VOIP calls on some routers:
+
+Example:
+
+ Target[myrouter]: CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3&CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3:public@myrouter
+
+=item Interface by IP
+
+Sometimes SNMP interface index can change, like when new interfaces are
+added or removed. This can cause all Target entries in your config file
+to become offset, causing MRTG to graphs wrong instances etc.
+MRTG supports IP address instead of ifindex in target definition. Then
+MRTG will query snmp device and try to map IP address to the current ifindex.
+You can use IP addresses in every type of target definition by adding
+IP address of the numbered interface after OID and separation char '/'.
+
+Make sure that the given IP address is used on
+your same target router, especially when graphing two different OIDs
+and/or interface split by '&' delimiter.
+
+You can tell cfgmaker to generate such references with the option
+B<--ifref=ip>.
+
+Example:
+
+ Target[myrouter]: /1.2.3.4:public@wellfleet-fddi.domain
+ Target[ezci]: -/1.2.3.4:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors/1.2.3.4&ifOutErrors/1.2.3.4:public@myrouter
+
+=item Interface by Description
+
+If you can not use IP addresses you might want to use
+the interface names. This works similar to the IP address aproach
+except that the prefix to use is a \ instead of a /
+
+You can tell cfgmaker to generate such references with the option
+B<--ifref=descr>.
+
+Example:
+
+ Target[myrouter]: \My-Interface2:public@wellfleet-fddi.domain
+ Target[ezci]: -\My-Interface2:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors\My-If2&ifOutErrors\My-If3:public@myrouter
+
+If your description contains a "&", a ":", a "@" or a " " you can include
+them but you must escape with a backlash:
+
+ Target[myrouter]: \fun\:\ ney\&ddd:public@hello.router
+
+=item Interface by Name
+
+This is the only sensible way to reference the interfaces of your switches.
+
+You can tell cfgmaker to generate such references with the option
+B<--ifref=name>.
+
+Example:
+
+ Target[myrouter]: #2/11:public@wellfleet-fddi.domain
+ Target[ezci]: -#2/11:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors#3/7&ifOutErrors#3/7:public@myrouter
+
+If your description contains a "&", a ":", a "@" or a " " you can include
+them but you must escape with a backlash:
+
+ Target[myrouter]: #\:\ fun:public@hello.router
+
+Note that the # sign will be interpreted as a comment character if
+it is the first non white-space character on the line.
+
+=item Interface by Ethernet Address
+
+When the SNMP interface index changes, you can key that interface by its
+'Physical Address', sometimes called a 'hard address', which is the SNMP
+variable 'ifPhysAddress'. Internally, MRTG matches the Physical Address from
+the *.cfg file to its current index, and then uses that index for the rest of
+the session.
+
+You can use the Physical Address in every type of target definition by adding
+the Physical Address after the OID and the separation char '!' (analogous to the IP
+address option). The Physical address is specified as '-' delimited
+octets, such as "0a-0-f1-5-23-18" (omit the double quotes). Note that some
+routers use the same Hardware Ethernet Address for all of their Interfaces which
+prevents unique interface identification. Mrtg will notice such problems and alert you.
+
+You can tell cfgmaker to generate configuration files with hardware ethernet address references
+by using the option B<--ifref=eth>.
+
+Example:
+
+ Target[myrouter]: !0a-0b-0c-0d:public@wellfleet-fddi.domain
+ Target[ezci]: -!0-f-bb-05-71-22:public@ezci-ether.domain
+ Target[myrouter]: 1.3.6.1.2.1.2.2.1.14!0a-00-10-23-44-51& *BREAK*
+ 1.3.6.1.2.1.2.2.1.14!0a-00-10-23-44-51:public@myrouter
+ Target[myrouter]: ifInErrors!0a-00-10-23-44-51& *BREAK*
+ ifOutErrors!0a-00-10-23-44-51:public@myrouter
+
+
+Join the lines at *BREAK* ...
+
+=item Interface by Type
+
+It seems that there are devices that try to defy all monitoring efforts: the interesting interfaces have
+neither ifName nor a constant ifDescr not to mention a persistent ifIndex. The only way to get a constant
+mapping is by looking at the interface type, because the interface you are interested in is unique in the
+device you are looking at ...
+
+You can tell cfgmaker to generate such references with the option
+B<--ifref=type>.
+
+Example:
+
+ Target[myrouter]: %13:public@wellfleet-fddi.domain
+ Target[ezci]: -%13:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors%13&ifOutErrors%14:public@myrouter
+
+=item Extended positioning of ifIndex
+
+
+There are OIDs that contain the interface index at some inner position within
+the OID. To use the above mentioned Interface by IP/Description/Name/Type methods
+in the target definition the keyword 'IndexPOS' can be used to indicate the
+position of ifIndex. If 'IndexPOS' is not used the ifIndex will be appended at the
+end of the OID.
+
+Example:
+
+ Target[myrouter]: OID.IndexPOS.1/1.2.3.4&OID.IndexPOS.1/1.2.3.4:public@myrouter
+
+Replace OID by your numeric OID.
+
+=item Extended Host Name Syntax
+
+In all places where ``community@router'' is accepted, you can add
+additional parameters for the SNMP communication using
+colon-separated suffixes. You can also append a pipe symbol ( | ) and
+the name of a numeric conversion subroutine as described under the global
+keyword "ConversionCode" above. The full syntax is as follows:
+
+ community@router[:[port][:[timeout][:[retries][:[backoff][:[version]]]]][|name]
+
+where the meaning of each parameter is as follows:
+
+=over
+
+=item port
+
+the UDP port under which to contact the SNMP agent (default: 161)
+
+The complete syntax of the port parameter is
+
+ remote_port[!local_address[!local_port]]
+
+Some machines have additional security features that only allow SNMP queries
+to come from certain IP addresses. If the host doing the query has multiple
+interface, it may be necessary to specify the interface the query should
+come from.
+
+The port parameter allows the specification of the port of the machine being
+queried. In addition, the IP address (or hostname) and port of the machine
+doing the query may be specified.
+
+Examples:
+
+ somehost
+ somehost:161
+ somehost:161!192.168.2.4!4000 use 192.168.2.4 and port 4000 as source
+ somehost:!192.168.2.4 use 192.168.2.4 as source
+ somehost:!!4000 use port 4000 as source
+
+=item timeout
+
+initial timeout for SNMP queries, in seconds (default: 2.0)
+
+=item retries
+
+number of times a timed-out request will be retried (default: 5)
+
+=item backoff
+
+factor by which the timeout is multiplied on every retry (default: 1.0).
+
+=item version
+
+for SNMP version. If you have a fast router you might want to put
+a '2' here. For authenticated or encrypted SNMP, you can try to put a
+'3' here. This will make mrtg try to poll the 64 bit counters and thus
+prevent excessive counter wrapping. Not all routers support this though.
+SNMP v3 requires additional setup, see SnmpOptions[] for full details.
+
+Example:
+
+ 3:public@router1:::::2
+
+=item name
+
+the name of the subroutine that MRTG will call to convert the input and output
+values to integers. See the complete example under the global keyword
+"ConversionCode" above.
+
+Example:
+
+ 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.2:public@mydevice:161::::2|Length2Int
+
+This would retrieve values from the OID 1.3.6.1.4.1.999.1 for input and .2
+for output on mydevice using UDP port 161 and SNMP version 2, and would
+execute the user-defined numeric conversion subroutine Length2Int to convert
+those values to integers.
+
+=back
+
+A value that equals the default value can be omitted. Trailing colons
+can be omitted, too. The pipe symbol followed by the name parameter, if
+present, must come at the end. There must be no spaces around the colons or
+pipe symbol.
+
+Example:
+
+ Target[ezci]: 1:public@ezci-ether.domain:9161::4
+
+This would refer to the input/output octet counters for the interface
+with I<ifIndex 1> on I<ezci-ether.domain>, as known
+by the SNMP agent listening on UDP port 9161. The standard initial
+timeout (2.0 seconds) is used, but the number of retries is set to
+four. The backoff value is the default.
+
+=item Numeric IPv6 addresses
+
+If IPv6 is enabled you may also specify a target using its IPv6 address. To
+avoid ambiguity with the port number, numeric IPv6 addresses must be placed
+in square brackets.
+
+Example:
+
+ Target[IPv6test]: 2:public@[2001:760:4::]:6161::4
+
+=item External Monitoring Scripts
+
+If you want to monitor something which does not provide
+data via snmp you can use some external program to do
+the data gathering.
+
+The external command must return 4 lines of output:
+
+=over
+
+=item Line 1
+
+current state of the first variable, normally 'incoming bytes count'
+
+=item Line 2
+
+current state of the second variable, normally 'outgoing bytes count'
+
+
+=item Line 3
+
+string (in any human readable format), telling the uptime of the target.
+
+=item Line 4
+
+string, telling the name of the target.
+
+=back
+
+Depending on the type of data your script returns you
+might want to use the 'gauge' or 'absolute' arguments
+for the I<Options> keyword.
+
+Example:
+
+ Target[myrouter]: `/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0`
+
+Note the use of the backticks (`), not apostrophes (')
+around the command.
+
+If you want to use a backtick in the command name this can be done
+but you must escape it with a backslash ...
+
+If your script does not have any data to return but does not want mrtg to
+complain about invalid data, it can return 'UNKNOWN' instead of a number.
+Note though that only rrdtool is realy equipped to handle unknown data well.
+
+=item Multi Target Syntax
+
+You can also combine several target definitions in a mathematical expression.
+Any syntactically correct expression that the Perl interpreter can evaluate
+to will work. An expression could be used, for example, to aggregate both B
+channels in an ISDN connection or to calculate the percentage hard disk
+utilization of a server from the absolute used space and total capacity.
+
+Examples:
+
+ Target[myrouter]: 2:public@wellfleetA + 1:public@wellfleetA
+
+ Target[myrouter]: .1.3.6.1.4.1.999.1&.1.3.6.1.4.1.999.2:public@mydevice /
+ .1.3.6.1.4.1.999.3&.1.3.6.1.4.1.999.4:public@mydevice * 100
+
+Note that whitespace must surround each target definition in the expression.
+Target definitions themselves must not contain whitespace, except in
+interface descriptions and interface names, where each whitespace character
+is escaped by a backslash.
+
+MRTG automatically rounds the result of the expression to an integer unless
+RRDTool logging is in use and the gauge option is in effect for the target.
+Internally MRTG uses Perl's Math::BigFloat package to calculate the result
+of the expression with 40 digits of precision. Even in extreme cases, where,
+for example, you take the difference of two 64-bit integers, the result of
+the expression should be accurate.
+
+=item SNMP Request Optimization
+
+MRTG is designed to economize on its SNMP requests. Where a target
+definition appears more than once in the configuration file, MRTG requests
+the data from the device only once per round of data collection and uses
+the collected data for each instance of a particular target. Recognition of
+two target definitions as being identical is based on a simple string match
+rather than any kind of deeper semantic analysis.
+
+Example:
+
+ Target[Targ1]: 1:public@CiscoA
+ Target[Targ2]: 2:public@CiscoA
+ Target[Targ3]: 1:public@CiscoA + 2:public@CiscoA
+ Target[Targ4]: 1:public@CISCOA
+
+This results in a total of three SNMP requests. Data for 1:public@CiscoA
+and 2:public@CiscoA are requested only once each, and used for Targ1, Targ2,
+and Targ3. Targ4 causes another SNMP request for 1:public@CISCOA, which is not
+recognized as being identical to 1:public@CiscoA.
+
+=back
+
+=head2 MaxBytes
+
+The maximum value either of the two variables monitored
+are allowed to reach. For monitoring router traffic
+this is normally the bytes per second this
+interface port can carry.
+
+If a number higher than I<MaxBytes> is returned, it is ignored.
+Also read the section on I<AbsMax> for further info.
+The I<MaxBytes> value is also used in calculating the Y range
+for unscaled graphs (see the section on I<Unscaled>).
+
+Since most links are rated in bits per second, you need to divide their
+maximum bandwidth (in bits) by eight (8) in order to get bytes per second.
+This is very important to make your unscaled graphs display realistic
+information. T1 = 193000, 56K = 7000, 10 MB Ethernet = 1250000, 100 MB
+Ethernet = 12500000. The I<MaxBytes> value will be used by mrtg to decide
+whether it got a valid response from the router.
+
+If you need two different MaxBytes values for the two monitored
+variables, you can use MaxBytes1 and MaxBytes2 instead of MaxBytes.
+
+Example:
+
+ MaxBytes[myrouter]: 1250000
+
+=head2 Title
+
+Title for the HTML page which gets generated for the graph.
+
+Example:
+
+ Title[myrouter]: Traffic Analysis for Our Nice Company
+
+=head1 OPTIONAL PER TARGET KEYWORDS
+
+=head2 PageTop
+
+Things to add to the top of the generated HTML page. Note
+that you can have several lines of text as long as the
+first column is empty.
+
+Note that the continuation lines will all end up on the same
+line in the html page. If you want linebreaks in the generated
+html use the '\n' sequence.
+
+Example:
+
+ PageTop[myrouter]: <H1>Traffic Analysis for ETZ C95.1</H1>
+ Our Campus Backbone runs over an FDDI line\n
+ with a maximum transfer rate of 12.5 megabytes per
+ Second.
+
+=head2 RouterUptime
+
+In cases where you calculate the used bandwidth from
+several interfaces you normally don't get the router uptime
+and router name displayed on the web page.
+
+If these interfaces are on the same router and the uptime and
+name should be displayed you have to specify
+its community and address again with the I<RouterUptime> keyword.
+
+If you want to use a special OID for querying the router uptime,
+use prepend the oid.
+
+Example:
+
+ Target[kacisco.comp.edu]: 1:public@194.64.66.250 + 2:public@194.64.66.250
+ RouterUptime[kacisco.comp.edu]: public@194.64.66.250
+
+ RouterUptime[kacisco.comp.edu]: hrSystemUptime.0:public@194.64.66.250
+
+
+
+
+=head2 RouterName
+
+If the default name of the router is incorrect/uninformative,
+you can use RouterName to specify a different OID on either the
+same or a different host.
+
+A practical example: sysName on BayTech DS72 units always display
+"ds72", no matter what you set the Unit ID to be. Instead, the
+Unit ID is stored at 1.3.6.1.4.1.4779.1.1.3.0, so we can have
+MRTG display this instead of sysName.
+
+
+Example:
+
+ RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0
+
+A different OID on a different host can also be specified:
+
+ RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0:public@194.64.66.251
+
+
+=head2 MaxBytes1
+
+Same as MaxBytes, for variable 1.
+
+=head2 MaxBytes2
+
+Same as MaxBytes, for variable 2.
+
+=head2 IPv4Only
+
+Many IPv6 routers do not currently support SNMP over IPv6 and must
+be monitored using IPv4. The IPv4Only option forces mrtg to use IPv4
+when communicating with the target, even if IPv6 is enabled. This is
+useful if the target is a hostname with both IPv4 and IPv6 addresses;
+without the IPv4Only keyword, monitoring such a router will not work
+if IPv6 is enabled.
+
+If set to no (the default), mrtg will use IPv6 unless the target has
+no IPv6 addresses, in which case it will use IPv4. If set to yes, mrtg
+will only use IPv4.
+
+Note that if this option is set to yes and the target does not have an
+IPv4 address, communication with the target will fail.
+
+This option has no effect if IPv6 is not enabled.
+
+Example:
+
+ Target[v4onlyrouter_1]: 1:public@v4onlyrouter
+ IPv4Only[v4onlyrouter_1]: Yes
+
+=head2 SnmpOptions (V3)
+
+SNMPv3 requires a fairly rich set of options. This per-target keyword
+allows access to the User Security Model of SNMPv3. Options are listed
+in the same syntax as a perl hash.
+
+=head3 Security Modes
+
+SNMPv3 has three security modes, defined on the device being polled.
+For example, on Cisco routers the security mode is defined by the
+snmp-server group global configuration command.
+
+=over
+
+=item NoAuthNoPriv
+
+Neither Authentication nor Privacy is defined. Only the Username
+option is specified for this mode.
+
+Example:
+
+ SnmpOptions[myrouter]: username=>'user1'
+
+=item AuthNoPriv
+
+Uses a Username and a password. The password can be hashed using the
+snmpkey application, or passed in plain text along with the ContextEngineID
+
+Example:
+
+ SnmpOptions[myrouter]: username=>'user1',authpassword=>'example',
+ contextengineid=>'80000001110000004000000'
+
+=item Priv
+
+Both Authentication and Privacy is defined. The default privacy protocol
+is des.
+
+Example:
+ SnmpOptions[myrouter]: authkey=>'0x1e93ab5a396e2af234c8920e61cfe2028072c0e2',
+ authprotocol=>'sha',privprotocol=>'des',username=>'user1',
+ privkey=>'0x498d74940c5872ed387201d74b9b25e2'
+
+=back
+
+=head3 snmp options
+
+The following option keywords are recognized:
+
+=over
+
+=item username
+
+The user associated with the User Security Model
+
+=item contextname
+
+An SNMP agent can define multiple contexts. This keyword allows them to
+be polled.
+
+=item contextengineid
+
+A unique 24-byte string identifying the snmp-agent.
+
+=item authpassword
+
+The plaintext password for a user in either AuthNoPriv or Priv mode.
+
+=item authkey
+
+A md5 or sha hash of the plain-text password, along with the engineid.
+Use the snmpkey commandline program to generate this hash, or use
+Net::SNMP::Security::USM in a script.
+
+=item authprotocol {sha|md5}
+
+The hashing algorithm defined on the SNMP client. Defaults to md5.
+
+=item privpassword
+
+A plaintext pre-shared key for encrypting snmp packets in Priv mode.
+
+=item privkey
+
+A hash of the plain-text pre-shared key, along with the engineid.
+Use the snmpkey commandline program to generate this hash, or use
+Net::SNMP::Security::USM in a script.
+
+=item privprotocol {des|3desede|aescfb128|aescfb192|aescfb256}
+
+Specifies the encryption method defined on the snmp agent. The default
+is des.
+
+=back
+
+=head2 PageFoot
+
+Things to add to the bottom of the generated HTML page. Note
+that you can have several lines of text as long as the
+first column is empty.
+
+Note that the continuation lines will all end up on the same
+line in the html page. If you want linebreaks in the generated
+html use the '\n' sequence.
+
+The material will be added just before the E<lt>/BODYE<gt> tag:
+
+Example:
+
+ PageFoot[myrouter]: Contact <A HREF="mailto:peter@x.yz">Peter</A>
+ if you have questions regarding this page
+
+=head2 AddHead
+
+Use this tag like the I<PageTop> header, but its contents
+will be added between E<lt>/TITLEE<gt> and E<lt>/HEADE<gt>.
+
+Example:
+
+ AddHead[myrouter]: <link rev="made" href="mailto:mrtg@blabla.edu">
+
+=head2 BodyTag
+
+BodyTag lets you supply your very own E<lt>body ...E<gt> tag for the
+generated webpages.
+
+Example:
+
+ BodyTag[myrouter]: <BODY LEFTMARGIN="1" TOPMARGIN="1"
+ BACKGROUND="/stats/images/bg.neo2.gif">
+
+=head2 AbsMax
+
+If you are monitoring a link which can handle more traffic than the
+I<MaxBytes> value. Eg, a line which uses compression or some frame relay
+link, you can use the I<AbsMax> keyword to give the absolute maximum value
+ever to be reached. We need to know this in order to sort out unrealistic
+values returned by the routers. If you do not set I<AbsMax>, rateup will
+ignore values higher than I<MaxBytes>.
+
+Example:
+
+ AbsMax[myrouter]: 2500000
+
+=head2 Unscaled
+
+By default each graph is scaled vertically to make the actual data visible
+even when it is much lower than I<MaxBytes>. With the I<Unscaled> variable
+you can suppress this. It's argument is a string, containing one letter for
+each graph you don't want to be scaled: d=day w=week m=month y=year. There
+is also a special case to unset the variable completely: n=none. This could
+be useful in the event you need to override a global configuration. In the
+example scaling for the yearly and the monthly graph are suppressed.
+
+Example:
+
+ Unscaled[myrouter]: ym
+
+=head2 WithPeak
+
+By default the graphs only contain the average
+values of the monitored variables - normally the
+transfer rates for incoming and outgoing traffic.
+The following option instructs mrtg to display the peak
+5 minute values in the [w]eekly, [m]onthly and
+[y]early graph. In the example we define the monthly
+and the yearly graph to contain peak as well as average
+values.
+
+Examples:
+
+ WithPeak[myrouter]: ym
+
+=head2 Suppress
+
+By default mrtg produces 4 graphs. With this option
+you can suppress the generation of selected graphs.
+The option value syntax is analogous to the above two options.
+In this example we suppress the yearly graph
+as it is quite empty in the beginning.
+
+Example:
+
+ Suppress[myrouter]: y
+
+=head2 Extension
+
+By default, mrtg creates .html files. Use this option to tell mrtg to
+use a different extension. For example you could set the extension to
+php3, then you will be able to enclose PHP tags into the output (useful
+for getting a router name out of a database).
+
+Example:
+
+ Extension[myrouter]: phtml
+
+=head2 Directory
+
+By default, mrtg puts all the files that it generates for each
+target (the GIFs, the HTML page, the log file, etc.) in I<WorkDir>.
+
+If the I<Directory> option is specified, the files are instead put
+into a directory under I<WorkDir> or Log-, Image- and HtmlDir).
+(For example the I<Directory>
+option below would cause all the files for a target myrouter
+to be put into directory /usr/tardis/pub/www/stats/mrtg/myrouter/ .)
+
+The directory must already exist; mrtg will not create it.
+
+Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+
+NOTE: the Directory option must always be 'relative' or bad things will happen.
+
+=head2 Clonedirectory
+
+If the I<Directory> option is specified, the I<Clonedirectory> option will copy
+all the contents of I<Directory> to the I<Clonedirectory>.
+
+Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+ Clonedirectory[myrouter]: myclonedirectory
+
+Optionally the target name can be changed in the cloning process.
+
+Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+ Clonedirectory[myrouter]: myclonedirectory mynewtarget
+
+NOTE1: The clone directory must already exist; mrtg will not create it.
+
+NOTE2: The Clonedirectory option must also always be 'relative' or bad things will happen.
+
+NOTE3: This requires the File::Copy module
+
+=head2 XSize and YSize
+
+By default mrtgs graphs are 100 by 400 pixels wide (plus
+some more for the labels. In the example we get almost
+square graphs ...
+
+Note: XSize must be between 20 and 600; YSize must be larger than 20
+
+Example:
+
+ XSize[myrouter]: 300
+ YSize[myrouter]: 300
+
+=head2 XZoom and YZoom
+
+If you want your graphs to have larger pixels, you can
+"Zoom" them.
+
+Example:
+
+ XZoom[myrouter]: 2.0
+ YZoom[myrouter]: 2.0
+
+=head2 XScale and YScale
+
+If you want your graphs to be actually scaled use I<XScale>
+and I<YScale>. (Beware: while this works, the results look ugly
+(to be frank) so if someone wants to fix this: patches are welcome.
+
+Example:
+
+ XScale[myrouter]: 1.5
+ YScale[myrouter]: 1.5
+
+
+=head2 YTics and YTicsFactor
+
+If you want to show more than 4 lines per graph, use YTics.
+If you want to scale the value used for the YLegend of these
+tics, use YTicsFactor.
+The default value for YTics is 4 and the default value for
+YTicsFactor is 1.0 .
+
+
+Example:
+
+Suppose you get values ranging from 0 to 700.
+You want to plot 7 lines and want to show
+0, 1, 2, 3, 4, 5, 6, 7 instead of 0, 100, 200,
+300, 400, 500, 600, 700. You should write then:
+
+ YTics[myrouter]: 7
+ YTicsFactor[myrouter]: 0.01
+
+=head2 Factor
+
+If you want to multiply all numbers shown below the graph with a constant factor, use
+this directive to define it ..
+
+Example:
+
+ Factor[as400]: 4096
+
+=head2 Step
+
+Change the default step from 5 * 60 seconds to
+something else (I have not tested this much ...)
+
+Example:
+
+ Step[myrouter]: 60
+
+=head2 PNGTitle
+
+When using rateup for graph generation, this will print the given title in the
+graph it generates.
+
+Example:
+
+ PNGTitle[myrouter]: WAN Link UK-US
+
+=head2 Options
+
+The I<Options> Keyword allows you to set some boolean
+switches:
+
+=over
+
+=item growright
+
+The graph grows to the left by default.
+This option flips the direction of growth
+causing the current time to be at the right edge
+of the graph and the history values to the left of it.
+
+=item bits
+
+All the monitored variable values are multiplied by 8
+(i.e. shown in bits instead of bytes) ... looks much more impressive :-)
+It also affects the 'factory default' labeling and units
+for the given target.
+
+=item perminute
+
+All the monitored variable values are multiplied by 60
+(i.e. shown in units per minute instead of units per second) in case
+of small values more accurate graphs are displayed.
+It also affects the 'factory default' labeling and units
+for the given target.
+
+=item perhour
+
+All the monitored variable values are multiplied by 3600
+(i.e. shown in units per hour instead of units per second) in case
+of small values more accurate graphs are displayed.
+It also affects the 'factory default' labeling and units
+for the given target.
+
+=item noinfo
+
+Suppress the information about uptime and
+device name in the generated webpage.
+
+=item nopercent
+
+Don't print usage percentages.
+
+=item transparent
+
+Make the background of the generated gifs transparent.
+
+=item integer
+
+Print summary lines below graph as integers without commas.
+
+=item dorelpercent
+
+The relative percentage of IN-traffic to OUT-traffic is calculated
+and displayed in the graph as an additional line.
+Note: Only a fixed scale is available (from 0 to 100%). Therefore
+if IN-traffic is greater than OUT-traffic then 100% is displayed.
+If you suspect that your IN-traffic is not always less than or equal
+to your OUT-traffic you are urged to not use this options.
+Note: If you use this option in combination with the I<Colours>
+options, a fifth colour-name colour-value pair is required there.
+
+=item avgpeak
+
+There are some ISPs who use the average Peak values to bill their customers.
+Using this option MRTG displays these values for each graph. The value is
+built by averaging the max 5 minute traffic average for each 'step' shown in
+the graph. For the Weekly graph this means that it builds the average of all
+2 hour intervals 5 minute peak values. (Confused? Thought so!)
+
+=item gauge
+
+Treat the values gathered from target as 'current status' measurements
+and not as ever incrementing counters.
+This would be useful to monitor things like disk space,
+processor load, temperature, and the like ...
+
+In the absence of 'gauge' or 'absolute' options,
+MRTG treats variables as a counters and calculates
+the difference between the current and the previous value
+and divides that by the elapsed time between
+the last two readings to get the value to be plotted.
+
+=item absolute
+
+This is for counter type data sources which reset their value when they are
+read. This means that rateup does not have to build the difference between
+the current and the last value read from the data source. The value obtained is
+still divided by the elapsed time between the current and the last reading, which makes
+it different from the 'gauge' option. Useful for external data gatherers.
+
+=item derive
+
+If you are using rrdtool as logger/grapher you can use a third type of data
+source. Derive is like counter, except that it is not required to go UP all
+the time. It is useful for situations where the change of some value should be
+graphed.
+
+=item unknaszero
+
+Log unknown data as zero instead of the default behaviour of repeating the
+last value seen. Be careful with this, often a flat line in the graph is
+much more obvious than a line at 0.
+
+=item withzeroes
+
+Normally we ignore all values which are zero when calculating the average
+transfer rate on a line. If this is not desirable use this option.
+
+=item noborder
+
+If you are using rateup to log data, MRTG will create the graph images.
+Normally these images have a shaded border around them. If you do not want the
+border to be drawn, enable this option. This option has no effect if you are
+not using rateup.
+
+=item noarrow
+
+As with the option above, this effects rateup graph generation only. Normally
+rateup will generate graphs with a small arrow showing the direction of the
+data. If you do not want this arrow to be drawn, enable this option. This
+option has no effect if you are not using rateup.
+
+=item noi
+
+When using rateup for graph generation, you can use this option to stop rateup
+drawing a graph for the 'I' or first variable. This also removes entries for
+this variable in the HTML page MRTG generates, and will remove the peaks for
+this variable if they are enabled. This allows you to hide this data, or can
+be very useful if you are only graphing one line of data rather than two.
+This option is not destructive - any data received for the the variable
+continued to be logged, it just isn't shown.
+
+=item noo
+
+Same as above, except relating to the 'O' or second variable.
+
+=item nobanner
+
+When using rateup for graph generation, this option disables MRTG adding the
+MRTG banner to the HTML pages it generates.
+
+=item nolegend
+
+When using rateup for graph generation, this option will stop MRTG from creating
+a legend at the bottom of the HTML pages it generates.
+
+=item printrouter
+
+When using rateup for graph generation, this option will print the router
+name in the graph it generates. This option is overridden by the value of
+PNGTitle if one is given
+
+=item pngdate
+
+When using rateup for graph generation, this option will print a
+timestamp in the graph it generates, including a timezone if one is specified
+by the 'Timezone' parameter. This is aequivalent to setting TimeStrPost[x]: RU
+
+=item logscale
+
+The B<logscale> option causes rateup to display the data with the Y axis
+scaled logarithmically. Doing so allows the normal traffic to occupy
+the majority of the vertical range, while still showing any spikes at
+their full height.
+
+B<logscale> displays all the available data and will always produce
+well-behaved graphs. People often consider a logarithmically scaled graph
+counterintuitive, however, and thus hard to interpret.
+
+=item expscale
+
+The B<expscale> option causes rateup to display the data with the Y axis
+scaled exponentially. Doing so emphasizes small changes at the top of
+the scale; this can be useful when graphing values that fluctuate by
+a small amount near the top of the scale, such as line voltage.
+
+B<expscale> is essentially the inverse of B<logscale>.
+
+=item secondmean
+
+The B<secondmean> option sets the maximum value on the graph to the mean
+of the data greater than the mean of all data. This produces a graph
+that focuses more on the typical data, while clipping large peaks.
+
+Using B<secondmean> will give a more intutive linearly
+scaled graph, but can result in a uselessly high or low scale in some
+rare situations (specifically, when the data includes a large portion
+of values far from the actual mean)
+
+If a target includes both B<logscale> and B<secondmean> in the options, the
+B<secondmean> takes precedence.
+
+=back
+
+Example:
+
+ Options[myrouter]: growright, bits
+
+
+=head2 kilo
+
+Use this option to change the multiplier value for building
+prefixes. Defaultvalue is 1000. This tag is for the special
+case that 1kB = 1024B, 1MB = 1024kB and so far.
+
+Example:
+
+ kilo[myrouter]: 1024
+
+
+=head2 kMG
+
+Change the default multiplier prefixes (,k,M,G,T,P). In the tag
+I<ShortLegend> define only the basic units.
+Format: Comma separated list of prefixed. Two consecutive commas
+or a comma at start or end of the line gives no prefix on this item.
+If you do not want prefixes, just put two consecutive commas.
+If you want to skip a magnitude select '-' as value.
+
+Example: velocity in nm/s (nanometers per second) displayed in nm/h.
+
+ ShortLegend[myrouter]: m/h
+ kMG[myrouter]: n,u,m,,k,M,G,T,P
+ options[myrouter]: perhour
+
+
+=head2 Colours
+
+The I<Colours> tag allows you to override the default colour
+scheme. Note: All 4 of the required colours must be
+specified here. The colour name ('Colourx' below) is the
+legend name displayed, while the RGB value is the real
+colour used for the display, both on the graph and in the
+html doc.
+
+Format is: Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB
+
+Important:
+If you use the I<dorelpercent> options tag a fifth colour name
+colour value pair is required:
+Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB,Col5#RRGGBB
+
+=over 4
+
+=item Colour1
+
+First variable (normally Input) on default graph.
+
+=item Colour2
+
+Second variable (normally Output) on default graph.
+
+=item Colour3
+
+Max first variable (input).
+
+=item Colour4
+
+Max second variable (output).
+
+=item RRGGBB
+
+2 digit hex values for Red, Green and Blue.
+
+=back
+
+Example:
+
+ Colours[myrouter]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
+
+=head2 Background
+
+With the I<Background> tag you can configure the background
+colour of the generated HTML page.
+
+Example:
+
+ Background[myrouter]: #a0a0a0a
+
+=head2 YLegend, ShortLegend, Legend[1234]
+
+The following keywords allow you to override the text
+displayed for the various legends of the graph and in the
+HTML document:
+
+=over
+
+=item YLegend
+
+The Y-axis label of the graph. Note that a text which is too long
+to fit in the graph will be silently ignored.
+
+=item ShortLegend
+
+The units string (default 'b/s') used for Max, Average and Current
+
+=item Legend[1234IO]
+
+The strings for the colour legend.
+
+=back
+
+Example:
+
+ YLegend[myrouter]: Bits per Second
+ ShortLegend[myrouter]: b/s
+ Legend1[myrouter]: Incoming Traffic in Bits per Second
+ Legend2[myrouter]: Outgoing Traffic in Bits per Second
+ Legend3[myrouter]: Maximal 5 Minute Incoming Traffic
+ Legend4[myrouter]: Maximal 5 Minute Outgoing Traffic
+ LegendI[myrouter]: &nbsp;In:
+ LegendO[myrouter]: &nbsp;Out:
+
+Note, if I<LegendI> or I<LegendO> are set to an empty string with
+
+ LegendO[myrouter]:
+
+The corresponding line below the graph will not be printed at all.
+
+=head2 Timezone
+
+If you live in an international world, you might want to
+generate the graphs in different timezones. This is set in the
+TZ variable. Under certain operating systems like Solaris,
+this will provoke the localtime call to give the time in
+the selected timezone.
+
+Example:
+
+ Timezone[myrouter]: Japan
+
+The Timezone is the standard timezone of your system, ie Japan, Hongkong,
+GMT, GMT+1 etc etc.
+
+=head2 Weekformat
+
+By default, mrtg (actually rateup) uses the strftime(3) '%V' option to
+format week numbers in the monthly graphs. The exact semantics of this
+format option vary between systems. If you find that the week numbers are
+wrong, and your system's strftime(3) routine supports it, you can try
+another format option. The POSIX '%V' option correspond to the widely used
+ISO 8601 week numbering standard. The week format character should be
+specified as a single letter; either W, V, or U.
+
+The UNIX version of rateup uses the libc implementation of strftime.
+On Windows, the native strftime implementation does not know about
+%V. So there we use a different implementation of strftime that does
+support %V.
+
+Example:
+
+ Weekformat[myrouter]: W
+
+=head2 RRDRowCount
+
+This affects the creation of new rrd files. By default rrds are created to
+hold about 1 day's worth of high resolution data. (plus 1 week of 30 minute
+data, 2 months of 2 hour data and 2 years of 1 day data). With this Keyword
+you can change the number of base interval entries configured for new rrds
+as they get created. Note that you must take the interval time into account.
+
+Example:
+
+ RRDRowCount[myrouter]: 1600
+
+=head2 RRDRowCount30m
+
+As per RRDRowCount, but for the RRA's -typically- used for 30 minute data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+
+Example:
+
+ RRDRowCount30m[myrouter]: 800
+
+=head2 RRDRowCount2h
+
+As per RRDRowCount, but for the RRA's -typically- used for 2 hour data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+
+Example:
+
+ RRDRowCount2h[myrouter]: 400
+
+=head2 RRDRowCount1d
+
+As per RRDRowCount, but for the RRA's -typically- used for 1 day data.
+Even so, you must still take the base interval into account. Leaving out
+this keyword will force the old default of 800 rows.
+
+Example:
+
+ RRDRowCount1d[myrouter]: 200
+
+=head2 RRDHWRRAs
+
+Normally the RRDs created by MRTG will just contain the information gathered
+directly from the respective target. With this option you can tap into
+rrdtools advanced aberrant behaviour detection module based on Holt-Winters
+forecasting. The RRDHWRRAs property specifies the Holt-Winters RRAs as
+described in the rrdcreate manual page.
+
+Note, this setting will only affect newly created RRDs (targets).
+
+Example:
+
+ RRDHWRRAs[myrouter]: RRA:HWPREDICT:1440:0.1:0.0035:288
+
+=head2 TimeStrPos
+
+This defines placement of the timestamp string on the image. Possible
+values are RU, LU, RL, LL (which stand, respectively, for RightUpper,
+LeftUpper, RightLower and LeftLower corner) and NO (for no timestamp).
+By default, no timestamp is placed on the image.
+
+Example:
+
+ TimeStrPos[myrouter]: RU
+
+=head2 TimeStrFmt
+
+Using this keyword you may specify format of the timestamp to be placed
+on the image (if enabled by the TimeStrPos keyword). Specified string
+will be used by the strftime() function - see strftime(3) documentation
+for conversion specifiers available on your system.
+Default format: %Y-%m-%d %H:%M
+
+Example:
+
+ TimeStrFmt[myrouter]: %H:%M:%S
+
+=head1 THRESHOLD CHECKING
+
+Through its threshold checking functionality mrtg is able to detect
+threshold problems for the various targets and can call external
+scripts to handle those problems (e.g. send email or a page to an administrator).
+
+Threshold checking is configured through the following parameters:
+
+=head2 ThreshDir (GLOBAL)
+
+By defining ThreshDir to point to a writable directory, MRTG will only alert
+you when a threshold boundary has been crossed.
+
+Example:
+
+ ThreshDir: /var/mrtg/thresh
+
+=head2 ThreshHyst (GLOBAL)
+
+If a threshold is broken, and you have a threshdir defined, then mrtg will
+send mail once the threshold becomes 'unborken' to avoid situations where
+broken and unbroken messages get sent in close succession, we only send an
+unbroken message once the curent value is 0.1 (10%) away from the threshold.
+using the ThreshHyst config variable you can customize this value.
+
+Example for 5%:
+
+ ThreshHyst: 0.05
+
+=head2 ThreshMailServer (GLOBAL)
+
+Adderss of an SMTP server which is going to accept mail about Thresholds being broken and unbroken.
+
+=head2 ThreshMailSender (GLOBAL)
+
+What is the sender address of the threshold mail.
+
+Example:
+
+ ThreshMailSender: mrtg@example.com
+
+=head2 ThreshMailAddress (PER TARGET)
+
+Email address for Threshold related Mails. This will only work if a mailserver has been configured.
+
+Example:
+
+ ThreshMailAddress[_]: admin@example.com
+ ThreshMailAddress[router]:
+
+This would bring threshold releaed mail to all but the target called 'router'.
+
+=head2 ThreshMinI (PER TARGET)
+
+This is the minimum acceptable value for the Input (first) parameter. If
+the parameter falls below this value, the program specified in ThreshProgI
+will be run and a mail will be sent to the ThreshMailAddress if specified.
+If the value ends in '%' then the threshold is defined relative to MaxBytes.
+
+=head2 ThreshMaxI (PER TARGET)
+
+Works the same as TheshMinI but it acts when the value is higher than ThreshMaxI.
+
+=head2 ThreshDesc (PER TARGET)
+
+Its value will be assigned to the environment variable THRESH_DESC before
+any of the programs mentioned below are called. The programs can use the value
+of this variable to produce more user-friendly output.
+
+=head2 ThreshProgI (PER TARGET)
+
+This defines a program to be run if ThreshMinI or ThreshMaxI is broken.
+MRTG passes 3 arguments: the $router variable, the threshold value
+broken, and the current parameter value.
+
+=head2 ThreshProgOKI (PER TARGET)
+
+This defines a program to be run if the parameter is currently OK (based on
+ThreshMinI and ThreshMaxI), but wasn't OK on the previous running -- based
+on the files found in ThreshDir. MRTG passes 3 arguments: the $router
+variable the unbroken threshold value, and the current parameter value.
+
+=head2 ThreshMinO, ThreshMaxO, ThreshProgO, and ThreshProgOKO
+
+These work the same as their *I counterparts, except on the Output (second)
+parameter.
+
+=head2 SetEnv
+
+When calling threshold scripts from within your cfg file you might want to
+pass some data on to the script. This can be done with the SetEnv
+configuration option which takes a series of environment variable
+assignments. Note that the quotes are mandatory. This does not
+work for external scripts. It is not
+possible to set environment variables per target.
+
+Example:
+
+ SetEnv[myrouter]: EMAIL="contact_email@someplace.net"
+ HOST="www.some_server.net"
+
+=head2 HW Failure Bassed Threshold Checking
+
+When using rrd based logging with HW RRAs defined. You can use the
+confidence bounds violations stored in the FAILURES RRA for threshold based
+alerts.
+
+There the all target specific threshold variables have a Hold-Winters counterpart:
+
+ ThreshMailAddress -> HWThreshMailAddress
+ ThreshMinI -> HWThreshMinI
+ ...
+
+The global variables for threshold checking are shared except for the
+
+ ThreshHyst -> HWThreshHyst
+
+And HWThreshDesc sets the HWTHRESH_DESC variable.
+
+=head1 PER TARGET DEFAULT VALUES
+
+=head2 Pre- and Postfix
+
+To save yourself some typing you can define a target
+called '^'. The text of every Keyword you define for this
+target will be PREPENDED to the corresponding Keyword of
+all the targets defined below this line. The same goes for
+a Target called '$' but its text will be APPENDED.
+
+Note that a space is inserted between the prepended text
+and the Keyword value, as well as between the Keyword value
+and the appended text. This works well for text-valued Keywords,
+but is not very useful for other Keywords. See the "default"
+target description below.
+
+The example will make mrtg use a common header and a
+common contact person in all the pages generated from
+targets defined later in this file.
+
+Example:
+
+ PageTop[^]: <H1>NoWhere Unis Traffic Stats</H1><HR>
+ PageTop[$]: Contact Peter Norton if you have any questions<HR>
+
+To remove the prepend/append value, specify an empty value, e.g.:
+
+ PageTop[^]:
+ PageTop[$]:
+
+=head2 NoSpaceChar
+
+With PREPEND and APPEND (see below) there is normally a space inserted
+between the local value and the PRE- or APPEND value. Sometimes this is not
+desirable. You can use the global option I<NoSpaceChar> to
+define a character which can be mentioned at the end of a $ or ^ definition
+in order to supress the space.
+
+Example:
+
+ NoSpaceChar: ~
+ Target[^]: 1.3.6.1.4.1.482.50.2.4.20.0&1.3.6.1.4.1.482.50.2.4.21.0:get@~
+ Target[a]: a.tolna.net
+ Target[b]: b.tolna.net
+ Target[c]: c.tolna.net
+ Target[d]: d.tolna.net
+
+=head2 Default Values
+
+The target name '_' specifies a default value for that
+Keyword. In the absence of explicit Keyword value, the prepended
+and the appended keyword value, the default value will be used.
+
+Example:
+
+ YSize[_]: 150
+ Options[_]: growright,bits,nopercent
+ WithPeak[_]: ymw
+ Suppress[_]: y
+ MaxBytes[_]: 1250000
+
+To remove the default value and return to the 'factory default',
+specify an empty value, e.g.:
+
+ YLegend[_]:
+
+There can be several instances of setting the default/prepend/append
+values in the configuration file. The later setting replaces the
+previous one for the rest of the configuration file.
+The default/prepend/append values used for a given
+keyword/target pair are the ones that were in effect
+at the point in the configuration file where the target
+was mentioned for the first time.
+
+Example:
+
+ MaxBytes[_]: 1250000
+ Target[myrouter.somplace.edu.2]: 2:public@myrouter.somplace.edu
+ MaxBytes[_]: 8000
+ Title[myrouter.somplace.edu.2]: Traffic Analysis for myrouter.somplace.edu IF 2
+
+The default I<MaxBytes> for the target myrouter.someplace.edu.2
+in the above example will be 1250000, which was in effect
+where the target name myrouter.someplace.edu.2 first appeared
+in the config file.
+
+=head1 COMMAND LINE OPTIONS
+
+=over
+
+=item B<--user> I<username> and B<--group> I<groupname>
+
+Run as the given user and/or group. (Unix Only)
+
+=item B<--lock-file> I<filename>
+
+Use an alternate lock-file (the default is to use the configuration-file
+appended with C<_l>).
+
+=item B<--confcache-file> I<filename>
+
+Use an alternate confcache-file (the default is to use the
+configuration-file appended with C<.ok>)
+
+=item B<--logging> I<filename>|B<eventlog>
+
+If this is set to writable filename, all output from mrtg (warnings, debug
+messages, errors) will go to I<filename>. If you are running on Win32 you
+can specify B<eventlog> instead of a filename which will send all error to
+the windows event log.
+
+B<NOTE:> Note, there is no Message DLL for mrtg included with mrtg. This has
+the side effect that the windows event logger will display a nice message
+with every entry in the event log, complaing about the fact that mrtg has no
+message dll. If you go to the mrtg contrib download area (on the website)
+you will find the mrtg-message-dll.zip which does contain such a thing.
+
+=item B<--daemon>
+
+Put MRTG into the background, running as a daemon. This works the same way as
+the config file option, but the switch is required for proper FHS operation
+(because /var/run is writable only by root)
+
+=item B<--fhs>
+
+Configure all mrtg paths to conform to the FHS specification;
+http://www.pathname.com/fhs/
+
+=item B<--check>
+
+Only check the cfg file for errors. Do not do anything.
+
+=item B<--pid-file=s>
+
+Define the name and path of the pid file for mrtg running as a daemon
+
+=item B<--debug=s>
+
+Enable debug options. The argument of the debug option is a comma separated
+list of debug values:
+
+ cfg - watch the config file reading
+ dir - directory mangeling
+ base - basic program flow
+ tarp - target parser
+ snpo - snmp polling
+ coca - confcache operations
+ fork - forking view
+ time - some timing info
+ log - logging of data via rateup or rrdtool
+ eval - print eval strings before evaluting them
+ prof - add hires timing info the rrd calls
+
+Example:
+
+ --debug="cfg,snpo"
+
+=back
+
+=head1 EXIT CODES
+
+An exit code of 0 indicates that all targets were successful. Generally
+speaking, most codes greater than 0 indicate that there was an unrecoverable
+problem. One exception to this is code 91, which indicates that at least
+one of the targets was successful. A partial listing of the codes follows:
+
+ 0: All targets sucessful
+
+ 2: Config error (can't read, fatal error in config, etc)
+ 17: Another MRTG process is processing config
+
+ 91: At least one target sucessful
+ 92: No targets were sucessful
+
+=head1 EXAMPLES
+
+
+=head2 Minimal mrtg.cfg
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Target[r1]: 2:public@myrouter.somplace.edu
+ MaxBytes[r1]: 8000
+ Title[r1]: Traffic Analysis ISDN
+ PageTop[r1]: <H1>Stats for our ISDN Line</H1>
+
+
+=head2 Cfg for several Routers.
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Title[^]: Traffic Analysis for
+ PageTop[^]: <H1>Stats for
+ PageTop[$]: Contact The Chief if you notice anybody<HR>
+ MaxBytes[_]: 8000
+ Options[_]: growright
+
+ Title[isdn]: our ISDN Line
+ PageTop[isdn]: our ISDN Line</H1>
+ Target[isdn]: 2:public@router.somplace.edu
+
+ Title[backb]: our Campus Backbone
+ PageTop[backb]: our Campus Backbone</H1>
+ Target[backb]: 1:public@router.somplace.edu
+ MaxBytes[backb]: 1250000
+
+ # the following line removes the default prepend value
+ # defined above
+
+ Title[^]:
+
+ Title[isdn2]: Traffic for the Backup ISDN Line
+ PageTop[isdn2]: our ISDN Line</H1>
+ Target[isdn2]: 3:public@router.somplace.edu
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt> and many contributors
diff --git a/doc/mrtg-reference.txt b/doc/mrtg-reference.txt
new file mode 100644
index 0000000..fd8b378
--- /dev/null
+++ b/doc/mrtg-reference.txt
@@ -0,0 +1,2051 @@
+MRTG-REFERENCE(1) mrtg MRTG-REFERENCE(1)
+
+
+
+NNAAMMEE
+ mrtg-reference - MRTG 2.17.7 configuration reference
+
+OOVVEERRVVIIEEWW
+ The runtime behaviour of MRTG is governed by a configuration file.
+ Run-of-the-mill configuration files can be generated with ccffggmmaakkeerr.
+ (Check cfgmaker). But for more elaborate configurations some hand-
+ tuning is required.
+
+ This document describes all the configuration options understood by the
+ mrtg software.
+
+SSYYNNTTAAXX
+ MRTG configuration file syntax follows some simple rules:
+
+ +o Keywords must start at the beginning of a line.
+
+ +o Lines which follow a keyword line which start with a blank are
+ appended to the keyword line
+
+ +o Empty Lines are ignored
+
+ +o Lines starting with a # sign are comments.
+
+ +o You can add other files into the configuration file using
+
+ IInncclluuddee:: _f_i_l_e
+
+ Example:
+
+ Include: base-options.inc
+
+ If included files are specified with relative paths, both the
+ current working directory and the directory containing the main
+ config file will be searched for the files. The current working
+ directory will be searched first.
+
+ If the included filename contains an asterisk, then this is taken
+ as a wildcard for zero or more characters, and all matching files
+ are included. Thus, you can use this statement to include all
+ files in a specified subdirectory.
+
+ Example:
+
+ Include: servers/*.cfg
+
+ In this case, you should be very careful that your wildcard pattern
+ does not find a match relative to the current working directory if
+ you mean it to be relative to the main config file directory, since
+ the working directory is checked for a match first (as with a
+ normal Include directive). Therefore, use of something like '*/*'
+ is discouraged.
+
+GGLLOOBBAALL KKEEYYWWOORRDDSS
+ WWoorrkkDDiirr
+ WorkDir specifies where the logfiles and the webpages should be
+ created.
+
+ Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+
+OOPPTTIIOONNAALL GGLLOOBBAALL KKEEYYWWOORRDDSS
+ HHttmmllDDiirr
+ HtmlDir specifies the directory where the html (or shtml, but we'll get
+ on to those later) lives.
+
+ NOTE: Workdir overrides the settings for htmldir, imagedir and logdir.
+
+ Example:
+
+ Htmldir: /www/mrtg/
+
+ IImmaaggeeDDiirr
+ ImageDir specifies the directory where the images live. They should be
+ under the html directory.
+
+ Example:
+
+ Imagedir: /www/mrtg/images
+
+ LLooggDDiirr
+ LogDir specifies the directory where the logs are stored. This need
+ not be under htmldir directive.
+
+ Example:
+
+ Logdir: /www/mrtg/logs
+
+ FFoorrkkss ((UUNNIIXX oonnllyy))
+ With system that supports fork (UNIX for example), mrtg can fork itself
+ into multiple instances while it is acquiring data via snmp.
+
+ For situations with high latency or a great number of devices this will
+ speed things up considerably. It will not make things faster, though,
+ if you query a single switch sitting next door.
+
+ As far as I know NT can not fork so this option is not available on NT.
+
+ Example:
+
+ Forks: 4
+
+ EEnnaabblleeIIPPvv66
+ When set to yes, IPv6 support is enabled if the required libraries are
+ present (see the mrtg-ipv6 manpage). When IPv6 is enabled, mrtg can
+ talk to routers using SNMP over IPv6 and targets may be specified by
+ their numeric IPv6 addresses as well as by hostname or IPv4 address.
+
+ If IPv6 is enabled and the target is a hostname, mrtg will try to
+ resolve the hostname to an IPv6 address and, if this fails, to an IPv4
+ address. Note that mrtg will only use IPv4 if you specify an IPv4
+ address or a hostname with no corresponding IPv6 address; it will not
+ fall back to IPv4 if it simply fails to communicate with the target
+ using IPv6. This is by design.
+
+ Note that many routers do not currently support SNMP over IPv6. Use the
+ _I_P_v_4_O_n_l_y per target option for these routers.
+
+ IPv6 is disabled by default.
+
+ Example:
+
+ EnableIPv6: Yes
+
+ EEnnaabblleeSSnnmmppVV33
+ When set to yes, uses the Net::SNMP module instead of the SNMP_SESSION
+ module for generating snmp queries. This allows the use of SNMPv3 if
+ other snmpv3 parameters are set.
+
+ SNMPv3 is disabled by default.
+
+ Example:
+
+ EnableSnmpV3: yes
+
+ RReeffrreesshh
+ How many seconds apart should the browser (Netscape) be instructed to
+ reload the page? If this is not defined, the default is 300 seconds (5
+ minutes).
+
+ Example:
+
+ Refresh: 600
+
+ IInntteerrvvaall
+ How often do you call mrtg? The default is 5 minutes. If you call it
+ less often, you should specify it here. This does two things:
+
+ +o The generated HTML page contains the right information about the
+ calling interval ...
+
+ +o A META header in the generated HTML page will instruct caches about
+ the time-to-live of this page .....
+
+ In this example, we tell mrtg that we will be calling it every 10
+ minutes. If you are calling mrtg every 5 minutes, you can leave this
+ line commented out.
+
+ Example:
+
+ Interval: 10
+
+ Note that unless you are using rrdtool you can not set Interval to less
+ than 5 minutes. If you are using rrdtool you can set interval in the
+ format
+
+ Interval: MM[:SS]
+
+ Down to 1 second. Note though, setting the Interval for an rrdtool/mrtg
+ setup will influence the initial creation of the database. If you
+ change the interval later, all existing databases will remain at the
+ resolution they were initially created with. Also note that you must
+ make sure that your mrtg-rrd Web-frontend can deal with this kind of
+ Interval setting.
+
+ MMaaxxAAggee
+ MRTG relies heavily on the real time clock of your computer. If the
+ time is set to a wrong value, especially if it is advanced far into the
+ future, this will cause mrtg to expire lots of supposedly old data from
+ the log files.
+
+ To prevent this, you can add a 'reasonability' check by specifying a
+ maximum age for log files. If a file seems to be older, mrtg will not
+ touch it but complain instead, giving you a chance to investigate the
+ cause.
+
+ Example:
+
+ MaxAge: 7200
+
+ The example above will make mrtg refuse to update log files older than
+ 2 hours (7200 seconds).
+
+ WWrriitteeEExxppiirreess
+ With this switch mrtg will generate .meta files for CERN and Apache
+ servers which contain Expiration tags for the html and gif files. The
+ *.meta files will be created in the same directory as the other files,
+ so you will have to set "MetaDir ." and "MetaFiles on" in your
+ apache.conf or .htaccess file for this to work
+
+ NOTE: If you are running Apache-1.2 or later, you can use the
+ mod_expire to achieve the same effect ... see the file htaccess.txt
+
+ Example:
+
+ WriteExpires: Yes
+
+ NNooMMiibb22
+ Normally we ask the SNMP device for 'sysUptime' and 'sysName'
+ properties. Some do not have these. If you want to avoid getting
+ complaints from mrtg about these missing properties, specify the nomib2
+ option.
+
+ An example of agents which do not implement base mib2 attributes are
+ Computer Associates - Unicenter TNG Agents. CA relies on using the
+ base OS SNMP agent in addition to its own agents to supplement the
+ management of a system.
+
+ Example:
+
+ NoMib2: Yes
+
+ SSiinngglleeRReeqquueesstt
+ Some SNMP implementations can not deal with requests asking for
+ multiple snmp variables in one go. Set this in your cfg file to force
+ mrtg to only ask for one variable per request.
+
+ Examples
+
+ SingleRequest: Yes
+
+ SSnnmmppOOppttiioonnss
+ Apart from the per target timeout options, you can also configure the
+ behaviour of the snmpget process on a more profound level. SnmpOptions
+ accepts a hash of options. The following options are currently
+ supported:
+
+ timeout => $default_timeout,
+ retries => $default_retries,
+ backoff => $default_backoff,
+ default_max_repetitions => $max_repetitions,
+ use_16bit_request_ids => 1,
+ lenient_source_port_matching => 0,
+ lenient_source_address_matching => 1
+
+ The values behind the options indicate the current default value. Note
+ that these settings OVERRIDE the per target timeout settings.
+
+ A per-target SnmpOptions[] keyword will override the global settings.
+ That keyword is primarily for SNMPv3.
+
+ The 16bit request ids are the only way to query the broken SNMP
+ implementation of SMC Barricade routers.
+
+ Example:
+
+ SnmpOptions: retries => 2, only_ip_address_matching => 0
+
+ Note that AS/400 snmp seems to be broken in a way which prevents mrtg
+ from working with it unless
+
+ SnmpOptions: lenient_source_port_matching => 1
+
+ is set.
+
+ IIccoonnDDiirr
+ If you want to keep the mrtg icons in someplace other than the working
+ (or imagedir) directory, use the _I_c_o_n_D_i_r variable for defining the url
+ of the icons directory.
+
+ Example:
+
+ IconDir: /mrtgicons/
+
+ LLooaaddMMIIBBss
+ Load the MIB file(s) specified and make its OIDs available as symbolic
+ names. For better efficiancy, a cache of MIBs is maintained in the
+ WorkDir.
+
+ Example:
+
+ LoadMIBs: /dept/net/mibs/netapp.mib,/usr/local/lib/ft100m.mib
+
+ LLaanngguuaaggee
+ Switch output format to the selected Language (Check the _t_r_a_n_s_l_a_t_e
+ directory to see which languages are supported at the moment. In this
+ directory you can also find instructions on how to create new
+ translations).
+
+ Currently the following laguages are supported:
+
+ big5 brazilian bulgarian catalan chinese croatian czech danish dutch
+ eucjp french galician gb gb2312 german greek hungarian icelandic
+ indonesia iso2022jp italian korean lithuanian malay norwegian polish
+ portuguese romanian russian russian1251 serbian slovak slovenian
+ spanish swedish turkish ukrainian
+
+ Example:
+
+ Language: danish
+
+ LLooggFFoorrmmaatt
+ Setting LogFormat to 'rrdtool' in your mrtg.cfg file enables rrdtool
+ mode. In rrdtool mode, mrtg relies on rrrrddttooooll to do its logging. See
+ mrtg-rrd.
+
+ Example:
+
+ LogFormat: rrdtool
+
+ LLiibbAAdddd
+ If you are using rrdtool mode and your rrrrddttooooll Perl module (RRDs.pm) is
+ not installed in a location where perl can find it on its own, you can
+ use LibAdd to supply an appropriate path.
+
+ Example:
+
+ LibAdd: /usr/local/rrdtool/lib/perl/
+
+ PPaatthhAAdddd
+ If the rrrrddttooooll executable can not be found in the normal "PATH", you
+ can use this keyword to add a suitable directory to your path.
+
+ Example:
+
+ PathAdd: /usr/local/rrdtool/bin/
+
+ RRRRDDCCaacchheedd
+ If you are running RRDTool 1.4 or later with rrrrddccaacchheedd, then you can
+ configure MRTG to take advantage of this for updates, either by using
+ the RRDCACHED_ADDRESS environment variable, or by setting the RRDCached
+ keyword in the configuration file. Note that, if both are set, the
+ configuration file keyword will take precedence.
+
+ Only UNIX domain sockets are fully supported prior to RRDTool v1.5, and
+ you should note that using RRDCached mode will disable all Threshold
+ checking normally done by MRTG. Appropriate warning messages will be
+ printed if necessary.
+
+ Examples:
+
+ RRDCached: unix:/var/tmp/rrdcached.sock
+
+ RRDCached: localhost:42217
+
+ RRuunnAAssDDaaeemmoonn
+ The RunAsDaemon keyword enables daemon mode operation. The purpose of
+ daemon mode is that MRTG is launched once and not repeatedly (as it is
+ with cron). This behavior saves computing resourses as loading and
+ parsing of configuration files happens only once on startup, and if the
+ configuration file is modified.
+
+ Using daemon mode MRTG itself is responible for timing the measurement
+ intervals. Therfore its important to set the Interval keyword to an
+ apropiate value.
+
+ Note that when using daemon mode MRTG should no longer be started from
+ cron as each new process runs forever. Instead MRTG should be started
+ from the command prompt or by a system startup script.
+
+ If you want mrtg to run under a particular user and group (it is not
+ recomended to run MRTG as root) then you can use the ----uusseerr==_u_s_e_r___n_a_m_e
+ and ----ggrroouupp==_g_r_o_u_p___n_a_m_e options on the mrtg commandline.
+
+ mrtg --user=mrtg_user --group=mrtg_group mrtg.cfg
+
+ Also note that in daemon mode restarting the process is required in
+ order to activate changes in the config file.
+
+ Under UNIX, the Daemon switch causes mrtg to fork into background after
+ checking its config file. On Windows NT the MRTG process will detach
+ from the console, but because the NT/2000 shell waits for its children
+ you have to use this special start sequence when you launch the
+ program:
+
+ start /b perl mrtg mrtg.cfg
+
+ You may have to add path information equal to what you add when you run
+ mrtg from the commandline.
+
+ Example
+
+ RunAsDaemon: Yes
+ Interval: 5
+
+ This makes MRTG run as a daemon beginning data collection every 5
+ minutes
+
+ If you are daemontools and still want to run mrtg as a daemon you can
+ additionally specify
+
+ NoDetach: Yes
+
+ this will make mrtg run but without detaching it from the terminal.
+
+ If the modification date on the configuration file changes during
+ operation, then MRTG will re-read the configuration on the next polling
+ cycle. Note that sub-files which are included from the main
+ configuration do not have their modification times monitored, only the
+ top-level file is so checked.
+
+ CCoonnvveerrssiioonnCCooddee
+ Some devices may produce non-numeric values that would nevertheless be
+ useful to graph with MRTG if those values could be converted to
+ numbers. The ConversionCode keyword specifies the path to a file
+ containing Perl code to perform such conversions. The code in this file
+ must consist of one or more Perl subroutines. Each subroutine must
+ accept a single string argument and return a single numeric value. When
+ RRDtool is in use, a decimal value may be returned. When the name of
+ one of these subroutines is specified in a target definition (see
+ below), MRTG calls it twice for that target, once to convert the the
+ input value being monitored and a second time to convert the output
+ value. The subroutine must return an undefined value if the conversion
+ fails. In case of failure, a warning may be posted to the MRTG log file
+ using Perl's warn function. MRTG imports the subroutines into a
+ separate name space (package MRTGConversion), so the user need not
+ worry about pollution of MRTG's global name space. MRTG automatically
+ prepends this package declaration to the user-supplied code.
+
+ Example: Suppose a particular OID returns a character string whose
+ length is proportional to the value to be monitored. To convert this
+ string to a number that can be graphed by MRTG, create a file
+ arbitrarily named "MyConversions.pl" containing the following code:
+
+ # Return the length of the string argument
+ sub Length2Int {
+ my $value = shift;
+ return length( $value );
+ }
+
+ Then include the following global keyword in the MRTG configuration
+ file (assuming that the conversion code file is saved in the mrtg/bin
+ directory along with mrtg itself):
+
+ ConversionCode: MyConversions.pl
+
+ This will cause MRTG to include the definition of the subroutine
+ Length2Int in its execution environment. Length2Int can then be invoked
+ on any target by appending "|Length2Int" to the target definition as
+ follows:
+
+ Target[myrouter]: 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.1:public@mydevice|Length2Int
+
+ See "Extended Host Name Syntax" below for complete target definition
+ syntax information.
+
+ SSeennddTTooGGrraapphhiittee
+ If you want to send a copy of the collected data into a Graphite
+ database in addition to storing it in the RRDfile, you can provide your
+ Graphite database name/ip and port number here.
+
+ This requires the Net::Graphite perl module which is available from
+ CPAN.
+
+ Examples:
+
+ # If your Graphite receiver is running on the same host as the MRTG daemon and using the default port
+ SendToGraphite: 127.0.0.1,2003
+
+ # If your Graphite receiver is running on 192.168.100.50 port 5000
+ SendToGraphite: 192.168.100.50,5000
+
+ # If your Graphite receiver is running on graphite.mydomain.com port 2003
+ SendToGraphite: graphite.mydomain.com,2003
+
+ Graphite's namespace has a number of restrictions on what characters
+ are allowed. The SendToGraphite functionality makes an attempt to
+ convert the MRTG target name and, if specified, the Legendi and Legendo
+ values to Graphite namespace friendly values. Specifically, the
+ following conversion rules apply:
+
+ +o Underscores in the target_name are converted to periods which are
+ Graphite namespace delimiters.
+
+ +o Comma characters are not allowed so they are removed.
+
+ +o The string "m2g" for MRTG to Graphite is prepended onto the
+ Graphite namespace variable.
+
+ Example MRTG target to Graphite namespace conversion:
+
+ # Our MRTG target name from mrtg.cfg is as follows
+ Target[switch_GigabitEthernet0_5]: \GigabitEthernet0/5:public1@switch:::::2
+
+ After the conversion you will end up with these Graphite namespace
+ values
+
+ m2g.switch.gigabitethernet0.5.in
+ m2g.switch.gigabitethernet0.5.out
+
+ Next is a more complicated example because Legendi and Legendo are in
+ use to denote min and max voltage values that pertain to some APC UPS
+ SNMP OIDs
+
+ # Target, Legendi, and Legendo are specified in mrtg.cfg as follows
+ Target[apc_minmaxline]: 1.3.6.1.4.1.318.1.1.1.3.2.3.0&1.3.6.1.4.1.318.1.1.1.3.2.2.0:public@apc:
+ LegendI[apc_minmaxline]: upsAdvInputMinLineVoltage
+ LegendO[apc_minmaxline]: upsAdvInputMaxLineVoltage
+
+ After the conversion you will end up with these Graphite namespace
+ values
+
+ m2g.apc.minmaxline.upsAdvInputMinLineVoltage
+ m2g.apc.minmaxline.upsAdvInputMaxLineVoltage
+
+ If you don't see the data showing up in Graphite, chances are there are
+ invalid characters in the namespace. To debug this, use the
+ DEBUG=qw(log) directive at the top of the MRTG script to find out what
+ is happening with the MRTG to Graphite namespace conversion.
+
+ DEBUG=qw(log) will generate some output similar to what appears below
+
+ 2016-10-13 06:08:39 -- --log: RRDs::update(/var/www/mrtg/switch/switch_gigabitethernet0_5.rrd, '1476356919:2738746035:2927936327')
+ 2016-10-13 06:08:39 -- --log: graphite->send(m2g.switch.gigabitethernet0.5.in,2738746035,1476356919)
+
+ 2016-10-13 06:08:39 -- --log: graphite->send(m2g.switch.gigabitethernet0.5.out,2927936327,1476356919)
+
+ 2016-10-13 06:09:25 -- --log: RRDs::update(/var/www/mrtg/apc/apc_minmaxline.rrd, '1476356965:122:123')
+ 2016-10-13 06:09:25 -- --log: graphite->send(m2g.apc.minmaxline.upsAdvInputMinLineVoltage,122,1476356965)
+
+ 2016-10-13 06:09:25 -- --log: graphite->send(m2g.apc.minmaxline.upsAdvInputMaxLineVoltage,123,1476356965)
+
+ If the MRTG log output looks reasonable, then take a look at Graphite's
+ carbon-cache logs.
+
+PPEERR TTAARRGGEETT CCOONNFFIIGGUURRAATTIIOONN
+ Each monitoring target must be identified by a unique name. This name
+ must be appended to each parameter belonging to the same target. The
+ name will also be used for naming the generated webpages, logfiles and
+ images for this target.
+
+ TTaarrggeett
+ With the _T_a_r_g_e_t keyword you tell mrtg what it should monitor. The
+ _T_a_r_g_e_t keyword takes arguments in a wide range of formats:
+
+ Basic
+ The most basic format is "port:community@router" This will generate
+ a traffic graph for the interface 'port' of the host 'router' (dns
+ name or IP address) and it will use the community 'community' (snmp
+ password) for the snmp query.
+
+ Example:
+
+ Target[myrouter]: 2:public@wellfleet-fddi.domain
+
+ If your community contains a "@" or a " " these characters must be
+ escaped with a "\".
+
+ Target[bla]: 2:stu\ pi\@d@router
+
+ SNMPv2c
+ If you have a fast router you might want to try to poll the ifHC*
+ counters. This feature gets activated by switching to SNMPv2c.
+ Unfortunately not all devices support SNMPv2c yet. If it works,
+ this will prevent your counters from wraping within the 5 minute
+ polling interval, since we now use 64 bit instead of the normal 32
+ bit.
+
+ Example:
+
+ Target[myrouter]: 2:public@router1:::::2
+
+ SNMPv3
+ As an alternative to SNMPv2c, SNMPv3 provides access to the ifHC*
+ counters, along with encryption. Not all devices support SNMPv3,
+ and you will also need the perl Net::SNMP library in order to use
+ it. It is recommended that cfgmaker be used to generate
+ configurations involving SNMPv3, as it will check if the Net::SNMP
+ library is loadable, and will switch to SNMPv2c if v3 is
+ unavailable.
+
+ SNMP v3 requires additional authentication parameters, passed using
+ the SnmpOptions[] per-target keyword.
+
+ Example:
+ Target[myrouter]: 2:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+
+ noHC
+ Not all routers that support SNMPv2 or SNMPv3 provide the ifHC*
+ counters on every interface. The noHC[] per-target keyword signals
+ that the low-speed counters ifInOctets and ifOutOctets should be
+ queried instead. cfgmaker will automatically insert this tag if
+ SNMPv2 or SNMPv3 is specified but the ifHC* counters are
+ unavailable.
+
+ Example:
+ Target[myrouter]: #Bri0:router1:::::3
+ SnmpOptions[myrouter]: username=>'user1'
+ noHC[myrouter]: yes
+
+ Reversing
+ Sometimes you are sitting on the wrong side of the link, and you
+ would like to have mrtg report Incoming traffic as Outgoing and
+ vice versa. This can be achieved by adding the '-' sign in front of
+ the "Target" description. It flips the incoming and outgoing
+ traffic rates.
+
+ Example:
+
+ Target[ezci]: -1:public@ezci-ether.domain
+
+ Explicit OIDs
+ You can also explicitly define which OID to query by using the
+ following syntax 'OID_1&OID_2:community@router' The following
+ example will retrieve error counts for input and output on
+ interface 1. MRTG needs to graph two variables, so you need to
+ specify two OID's such as temperature and humidity or error input
+ and error output.
+
+ Example:
+
+ Target[myrouter]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:public@myrouter
+
+ MIB Variables
+ MRTG knows a number of symbolic SNMP variable names. See the file
+ mibhelp.txt for a list of known names. One example are the
+ ifInErrors and ifOutErrors. This means you can specify the above
+ as:
+
+ Example:
+
+ Target[myrouter]: ifInErrors.1&ifOutErrors.1:public@myrouter
+
+ SnmpWalk
+ It may be that you want to monitor an snmp object that is only
+ reachable by 'walking'. You can get mrtg to walk by prepending the
+ OID with the string WWaaLLKK or if you want a particular entry from the
+ table returned by the walk you can use WWaaLLKK_x where _x is a number
+ starting from 0 (!).
+
+ Example:
+
+ Target[myrouter]: WaLKstrangeOid.1&WaLKstrangeOid.2:public@myrouter
+
+ Target[myrouter]: WaLK3strangeOid.1&WaLK4strangeOid.2:public@myrouter
+
+ SnmpGetNext
+ A special case of an snmp object that is only reachable by
+ 'walking' occurs when a single snmpgetnext will return the correct
+ value, but snmpwalk fails. This may occur with snmp V2 or V3, as
+ the snmpgetbulk method is used in these versions. You can get mrtg
+ to use getnext instead of getbulk by prepending the OID with the
+ string GGeeTTNNEEXXTT.
+
+ Example:
+
+ Target[myrouter]: GeTNEXTstrangeOid&GeTNEXTstrangeOid:public@myrouter
+
+ Counted SNMP Walk
+ In other situations, an snmpwalk is needed to count rows, but the
+ actual data is uninteresting. For example, counting the number of
+ mac-addresses in a CAM table, or the number of simultaneous dialup
+ sessions. You can get MRTG to count the number of instances by
+ prepending the OID with the string CCnnTTWWaaLLKK. The following will
+ retrieve the number of simultaneous VOIP calls on some routers:
+
+ Example:
+
+ Target[myrouter]: CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3&CnTWaLK1.3.6.1.4.1.9.10.55.1.1.1.1.3:public@myrouter
+
+ Interface by IP
+ Sometimes SNMP interface index can change, like when new interfaces
+ are added or removed. This can cause all Target entries in your
+ config file to become offset, causing MRTG to graphs wrong
+ instances etc. MRTG supports IP address instead of ifindex in
+ target definition. Then MRTG will query snmp device and try to map
+ IP address to the current ifindex. You can use IP addresses in
+ every type of target definition by adding IP address of the
+ numbered interface after OID and separation char '/'.
+
+ Make sure that the given IP address is used on your same target
+ router, especially when graphing two different OIDs and/or
+ interface split by '&' delimiter.
+
+ You can tell cfgmaker to generate such references with the option
+ ----iiffrreeff==iipp.
+
+ Example:
+
+ Target[myrouter]: /1.2.3.4:public@wellfleet-fddi.domain
+ Target[ezci]: -/1.2.3.4:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors/1.2.3.4&ifOutErrors/1.2.3.4:public@myrouter
+
+ Interface by Description
+ If you can not use IP addresses you might want to use the interface
+ names. This works similar to the IP address aproach except that the
+ prefix to use is a \ instead of a /
+
+ You can tell cfgmaker to generate such references with the option
+ ----iiffrreeff==ddeessccrr.
+
+ Example:
+
+ Target[myrouter]: \My-Interface2:public@wellfleet-fddi.domain
+ Target[ezci]: -\My-Interface2:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors\My-If2&ifOutErrors\My-If3:public@myrouter
+
+ If your description contains a "&", a ":", a "@" or a " " you can
+ include them but you must escape with a backlash:
+
+ Target[myrouter]: \fun\:\ ney\&ddd:public@hello.router
+
+ Interface by Name
+ This is the only sensible way to reference the interfaces of your
+ switches.
+
+ You can tell cfgmaker to generate such references with the option
+ ----iiffrreeff==nnaammee.
+
+ Example:
+
+ Target[myrouter]: #2/11:public@wellfleet-fddi.domain
+ Target[ezci]: -#2/11:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors#3/7&ifOutErrors#3/7:public@myrouter
+
+ If your description contains a "&", a ":", a "@" or a " " you can
+ include them but you must escape with a backlash:
+
+ Target[myrouter]: #\:\ fun:public@hello.router
+
+ Note that the # sign will be interpreted as a comment character if
+ it is the first non white-space character on the line.
+
+ Interface by Ethernet Address
+ When the SNMP interface index changes, you can key that interface
+ by its 'Physical Address', sometimes called a 'hard address', which
+ is the SNMP variable 'ifPhysAddress'. Internally, MRTG matches the
+ Physical Address from the *.cfg file to its current index, and then
+ uses that index for the rest of the session.
+
+ You can use the Physical Address in every type of target definition
+ by adding the Physical Address after the OID and the separation
+ char '!' (analogous to the IP address option). The Physical
+ address is specified as '-' delimited octets, such as
+ "0a-0-f1-5-23-18" (omit the double quotes). Note that some routers
+ use the same Hardware Ethernet Address for all of their Interfaces
+ which prevents unique interface identification. Mrtg will notice
+ such problems and alert you.
+
+ You can tell cfgmaker to generate configuration files with hardware
+ ethernet address references by using the option ----iiffrreeff==eetthh.
+
+ Example:
+
+ Target[myrouter]: !0a-0b-0c-0d:public@wellfleet-fddi.domain
+ Target[ezci]: -!0-f-bb-05-71-22:public@ezci-ether.domain
+ Target[myrouter]: 1.3.6.1.2.1.2.2.1.14!0a-00-10-23-44-51& *BREAK*
+ 1.3.6.1.2.1.2.2.1.14!0a-00-10-23-44-51:public@myrouter
+ Target[myrouter]: ifInErrors!0a-00-10-23-44-51& *BREAK*
+ ifOutErrors!0a-00-10-23-44-51:public@myrouter
+
+ Join the lines at *BREAK* ...
+
+ Interface by Type
+ It seems that there are devices that try to defy all monitoring
+ efforts: the interesting interfaces have neither ifName nor a
+ constant ifDescr not to mention a persistent ifIndex. The only way
+ to get a constant mapping is by looking at the interface type,
+ because the interface you are interested in is unique in the device
+ you are looking at ...
+
+ You can tell cfgmaker to generate such references with the option
+ ----iiffrreeff==ttyyppee.
+
+ Example:
+
+ Target[myrouter]: %13:public@wellfleet-fddi.domain
+ Target[ezci]: -%13:public@ezci-ether.domain
+ Target[myrouter]: ifInErrors%13&ifOutErrors%14:public@myrouter
+
+ Extended positioning of ifIndex
+ There are OIDs that contain the interface index at some inner
+ position within the OID. To use the above mentioned Interface by
+ IP/Description/Name/Type methods in the target definition the
+ keyword 'IndexPOS' can be used to indicate the position of ifIndex.
+ If 'IndexPOS' is not used the ifIndex will be appended at the end
+ of the OID.
+
+ Example:
+
+ Target[myrouter]: OID.IndexPOS.1/1.2.3.4&OID.IndexPOS.1/1.2.3.4:public@myrouter
+
+ Replace OID by your numeric OID.
+
+ Extended Host Name Syntax
+ In all places where ``community@router'' is accepted, you can add
+ additional parameters for the SNMP communication using colon-
+ separated suffixes. You can also append a pipe symbol ( | ) and the
+ name of a numeric conversion subroutine as described under the
+ global keyword "ConversionCode" above. The full syntax is as
+ follows:
+
+ community@router[:[port][:[timeout][:[retries][:[backoff][:[version]]]]][|name]
+
+ where the meaning of each parameter is as follows:
+
+ port
+ the UDP port under which to contact the SNMP agent (default:
+ 161)
+
+ The complete syntax of the port parameter is
+
+ remote_port[!local_address[!local_port]]
+
+ Some machines have additional security features that only allow
+ SNMP queries to come from certain IP addresses. If the host
+ doing the query has multiple interface, it may be necessary to
+ specify the interface the query should come from.
+
+ The port parameter allows the specification of the port of the
+ machine being queried. In addition, the IP address (or
+ hostname) and port of the machine doing the query may be
+ specified.
+
+ Examples:
+
+ somehost
+ somehost:161
+ somehost:161!192.168.2.4!4000 use 192.168.2.4 and port 4000 as source
+ somehost:!192.168.2.4 use 192.168.2.4 as source
+ somehost:!!4000 use port 4000 as source
+
+ timeout
+ initial timeout for SNMP queries, in seconds (default: 2.0)
+
+ retries
+ number of times a timed-out request will be retried (default:
+ 5)
+
+ backoff
+ factor by which the timeout is multiplied on every retry
+ (default: 1.0).
+
+ version
+ for SNMP version. If you have a fast router you might want to
+ put a '2' here. For authenticated or encrypted SNMP, you can
+ try to put a '3' here. This will make mrtg try to poll the 64
+ bit counters and thus prevent excessive counter wrapping. Not
+ all routers support this though. SNMP v3 requires additional
+ setup, see SnmpOptions[] for full details.
+
+ Example:
+
+ 3:public@router1:::::2
+
+ name
+ the name of the subroutine that MRTG will call to convert the
+ input and output values to integers. See the complete example
+ under the global keyword "ConversionCode" above.
+
+ Example:
+
+ 1.3.6.1.4.1.999.1&1.3.6.1.4.1.999.2:public@mydevice:161::::2|Length2Int
+
+ This would retrieve values from the OID 1.3.6.1.4.1.999.1 for
+ input and .2 for output on mydevice using UDP port 161 and SNMP
+ version 2, and would execute the user-defined numeric
+ conversion subroutine Length2Int to convert those values to
+ integers.
+
+ A value that equals the default value can be omitted. Trailing
+ colons can be omitted, too. The pipe symbol followed by the name
+ parameter, if present, must come at the end. There must be no
+ spaces around the colons or pipe symbol.
+
+ Example:
+
+ Target[ezci]: 1:public@ezci-ether.domain:9161::4
+
+ This would refer to the input/output octet counters for the
+ interface with _i_f_I_n_d_e_x _1 on _e_z_c_i_-_e_t_h_e_r_._d_o_m_a_i_n, as known by the SNMP
+ agent listening on UDP port 9161. The standard initial timeout
+ (2.0 seconds) is used, but the number of retries is set to four.
+ The backoff value is the default.
+
+ Numeric IPv6 addresses
+ If IPv6 is enabled you may also specify a target using its IPv6
+ address. To avoid ambiguity with the port number, numeric IPv6
+ addresses must be placed in square brackets.
+
+ Example:
+
+ Target[IPv6test]: 2:public@[2001:760:4::]:6161::4
+
+ External Monitoring Scripts
+ If you want to monitor something which does not provide data via
+ snmp you can use some external program to do the data gathering.
+
+ The external command must return 4 lines of output:
+
+ Line 1
+ current state of the first variable, normally 'incoming bytes
+ count'
+
+ Line 2
+ current state of the second variable, normally 'outgoing bytes
+ count'
+
+ Line 3
+ string (in any human readable format), telling the uptime of
+ the target.
+
+ Line 4
+ string, telling the name of the target.
+
+ Depending on the type of data your script returns you might want to
+ use the 'gauge' or 'absolute' arguments for the _O_p_t_i_o_n_s keyword.
+
+ Example:
+
+ Target[myrouter]: `/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0`
+
+ Note the use of the backticks (`), not apostrophes (') around the
+ command.
+
+ If you want to use a backtick in the command name this can be done
+ but you must escape it with a backslash ...
+
+ If your script does not have any data to return but does not want
+ mrtg to complain about invalid data, it can return 'UNKNOWN'
+ instead of a number. Note though that only rrdtool is realy
+ equipped to handle unknown data well.
+
+ Multi Target Syntax
+ You can also combine several target definitions in a mathematical
+ expression. Any syntactically correct expression that the Perl
+ interpreter can evaluate to will work. An expression could be used,
+ for example, to aggregate both B channels in an ISDN connection or
+ to calculate the percentage hard disk utilization of a server from
+ the absolute used space and total capacity.
+
+ Examples:
+
+ Target[myrouter]: 2:public@wellfleetA + 1:public@wellfleetA
+
+ Target[myrouter]: .1.3.6.1.4.1.999.1&.1.3.6.1.4.1.999.2:public@mydevice /
+ .1.3.6.1.4.1.999.3&.1.3.6.1.4.1.999.4:public@mydevice * 100
+
+ Note that whitespace must surround each target definition in the
+ expression. Target definitions themselves must not contain
+ whitespace, except in interface descriptions and interface names,
+ where each whitespace character is escaped by a backslash.
+
+ MRTG automatically rounds the result of the expression to an
+ integer unless RRDTool logging is in use and the gauge option is in
+ effect for the target. Internally MRTG uses Perl's Math::BigFloat
+ package to calculate the result of the expression with 40 digits of
+ precision. Even in extreme cases, where, for example, you take the
+ difference of two 64-bit integers, the result of the expression
+ should be accurate.
+
+ SNMP Request Optimization
+ MRTG is designed to economize on its SNMP requests. Where a target
+ definition appears more than once in the configuration file, MRTG
+ requests the data from the device only once per round of data
+ collection and uses the collected data for each instance of a
+ particular target. Recognition of two target definitions as being
+ identical is based on a simple string match rather than any kind of
+ deeper semantic analysis.
+
+ Example:
+
+ Target[Targ1]: 1:public@CiscoA
+ Target[Targ2]: 2:public@CiscoA
+ Target[Targ3]: 1:public@CiscoA + 2:public@CiscoA
+ Target[Targ4]: 1:public@CISCOA
+
+ This results in a total of three SNMP requests. Data for
+ 1:public@CiscoA and 2:public@CiscoA are requested only once each,
+ and used for Targ1, Targ2, and Targ3. Targ4 causes another SNMP
+ request for 1:public@CISCOA, which is not recognized as being
+ identical to 1:public@CiscoA.
+
+ MMaaxxBByytteess
+ The maximum value either of the two variables monitored are allowed to
+ reach. For monitoring router traffic this is normally the bytes per
+ second this interface port can carry.
+
+ If a number higher than _M_a_x_B_y_t_e_s is returned, it is ignored. Also read
+ the section on _A_b_s_M_a_x for further info. The _M_a_x_B_y_t_e_s value is also
+ used in calculating the Y range for unscaled graphs (see the section on
+ _U_n_s_c_a_l_e_d).
+
+ Since most links are rated in bits per second, you need to divide their
+ maximum bandwidth (in bits) by eight (8) in order to get bytes per
+ second. This is very important to make your unscaled graphs display
+ realistic information. T1 = 193000, 56K = 7000, 10 MB Ethernet =
+ 1250000, 100 MB Ethernet = 12500000. The _M_a_x_B_y_t_e_s value will be used by
+ mrtg to decide whether it got a valid response from the router.
+
+ If you need two different MaxBytes values for the two monitored
+ variables, you can use MaxBytes1 and MaxBytes2 instead of MaxBytes.
+
+ Example:
+
+ MaxBytes[myrouter]: 1250000
+
+ TTiittllee
+ Title for the HTML page which gets generated for the graph.
+
+ Example:
+
+ Title[myrouter]: Traffic Analysis for Our Nice Company
+
+OOPPTTIIOONNAALL PPEERR TTAARRGGEETT KKEEYYWWOORRDDSS
+ PPaaggeeTToopp
+ Things to add to the top of the generated HTML page. Note that you can
+ have several lines of text as long as the first column is empty.
+
+ Note that the continuation lines will all end up on the same line in
+ the html page. If you want linebreaks in the generated html use the
+ '\n' sequence.
+
+ Example:
+
+ PageTop[myrouter]: <H1>Traffic Analysis for ETZ C95.1</H1>
+ Our Campus Backbone runs over an FDDI line\n
+ with a maximum transfer rate of 12.5 megabytes per
+ Second.
+
+ RRoouutteerrUUppttiimmee
+ In cases where you calculate the used bandwidth from several interfaces
+ you normally don't get the router uptime and router name displayed on
+ the web page.
+
+ If these interfaces are on the same router and the uptime and name
+ should be displayed you have to specify its community and address again
+ with the _R_o_u_t_e_r_U_p_t_i_m_e keyword.
+
+ If you want to use a special OID for querying the router uptime, use
+ prepend the oid.
+
+ Example:
+
+ Target[kacisco.comp.edu]: 1:public@194.64.66.250 + 2:public@194.64.66.250
+ RouterUptime[kacisco.comp.edu]: public@194.64.66.250
+
+ RouterUptime[kacisco.comp.edu]: hrSystemUptime.0:public@194.64.66.250
+
+ RRoouutteerrNNaammee
+ If the default name of the router is incorrect/uninformative, you can
+ use RouterName to specify a different OID on either the same or a
+ different host.
+
+ A practical example: sysName on BayTech DS72 units always display
+ "ds72", no matter what you set the Unit ID to be. Instead, the Unit ID
+ is stored at 1.3.6.1.4.1.4779.1.1.3.0, so we can have MRTG display this
+ instead of sysName.
+
+ Example:
+
+ RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0
+
+ A different OID on a different host can also be specified:
+
+ RouterName[kacisco.comp.edu]: 1.3.6.1.4.1.4779.1.1.3.0:public@194.64.66.251
+
+ MMaaxxBByytteess11
+ Same as MaxBytes, for variable 1.
+
+ MMaaxxBByytteess22
+ Same as MaxBytes, for variable 2.
+
+ IIPPvv44OOnnllyy
+ Many IPv6 routers do not currently support SNMP over IPv6 and must be
+ monitored using IPv4. The IPv4Only option forces mrtg to use IPv4 when
+ communicating with the target, even if IPv6 is enabled. This is useful
+ if the target is a hostname with both IPv4 and IPv6 addresses; without
+ the IPv4Only keyword, monitoring such a router will not work if IPv6 is
+ enabled.
+
+ If set to no (the default), mrtg will use IPv6 unless the target has no
+ IPv6 addresses, in which case it will use IPv4. If set to yes, mrtg
+ will only use IPv4.
+
+ Note that if this option is set to yes and the target does not have an
+ IPv4 address, communication with the target will fail.
+
+ This option has no effect if IPv6 is not enabled.
+
+ Example:
+
+ Target[v4onlyrouter_1]: 1:public@v4onlyrouter
+ IPv4Only[v4onlyrouter_1]: Yes
+
+ SSnnmmppOOppttiioonnss ((VV33))
+ SNMPv3 requires a fairly rich set of options. This per-target keyword
+ allows access to the User Security Model of SNMPv3. Options are listed
+ in the same syntax as a perl hash.
+
+ _S_e_c_u_r_i_t_y _M_o_d_e_s
+
+ SNMPv3 has three security modes, defined on the device being polled.
+ For example, on Cisco routers the security mode is defined by the snmp-
+ server group global configuration command.
+
+ NoAuthNoPriv
+ Neither Authentication nor Privacy is defined. Only the Username
+ option is specified for this mode.
+
+ Example:
+
+ SnmpOptions[myrouter]: username=>'user1'
+
+ AuthNoPriv
+ Uses a Username and a password. The password can be hashed using
+ the snmpkey application, or passed in plain text along with the
+ ContextEngineID
+
+ Example:
+
+ SnmpOptions[myrouter]: username=>'user1',authpassword=>'example',
+ contextengineid=>'80000001110000004000000'
+
+ Priv
+ Both Authentication and Privacy is defined. The default privacy
+ protocol is des.
+
+ Example:
+ SnmpOptions[myrouter]:
+ authkey=>'0x1e93ab5a396e2af234c8920e61cfe2028072c0e2',
+ authprotocol=>'sha',privprotocol=>'des',username=>'user1',
+ privkey=>'0x498d74940c5872ed387201d74b9b25e2'
+
+ _s_n_m_p _o_p_t_i_o_n_s
+
+ The following option keywords are recognized:
+
+ username
+ The user associated with the User Security Model
+
+ contextname
+ An SNMP agent can define multiple contexts. This keyword allows
+ them to be polled.
+
+ contextengineid
+ A unique 24-byte string identifying the snmp-agent.
+
+ authpassword
+ The plaintext password for a user in either AuthNoPriv or Priv
+ mode.
+
+ authkey
+ A md5 or sha hash of the plain-text password, along with the
+ engineid. Use the snmpkey commandline program to generate this
+ hash, or use Net::SNMP::Security::USM in a script.
+
+ authprotocol {sha|md5}
+ The hashing algorithm defined on the SNMP client. Defaults to md5.
+
+ privpassword
+ A plaintext pre-shared key for encrypting snmp packets in Priv
+ mode.
+
+ privkey
+ A hash of the plain-text pre-shared key, along with the engineid.
+ Use the snmpkey commandline program to generate this hash, or use
+ Net::SNMP::Security::USM in a script.
+
+ privprotocol {des|3desede|aescfb128|aescfb192|aescfb256}
+ Specifies the encryption method defined on the snmp agent. The
+ default is des.
+
+ PPaaggeeFFoooott
+ Things to add to the bottom of the generated HTML page. Note that you
+ can have several lines of text as long as the first column is empty.
+
+ Note that the continuation lines will all end up on the same line in
+ the html page. If you want linebreaks in the generated html use the
+ '\n' sequence.
+
+ The material will be added just before the </BODY> tag:
+
+ Example:
+
+ PageFoot[myrouter]: Contact <A HREF="mailto:peter@x.yz">Peter</A>
+ if you have questions regarding this page
+
+ AAddddHHeeaadd
+ Use this tag like the _P_a_g_e_T_o_p header, but its contents will be added
+ between </TITLE> and </HEAD>.
+
+ Example:
+
+ AddHead[myrouter]: <link rev="made" href="mailto:mrtg@blabla.edu">
+
+ BBooddyyTTaagg
+ BodyTag lets you supply your very own <body ...> tag for the generated
+ webpages.
+
+ Example:
+
+ BodyTag[myrouter]: <BODY LEFTMARGIN="1" TOPMARGIN="1"
+ BACKGROUND="/stats/images/bg.neo2.gif">
+
+ AAbbssMMaaxx
+ If you are monitoring a link which can handle more traffic than the
+ _M_a_x_B_y_t_e_s value. Eg, a line which uses compression or some frame relay
+ link, you can use the _A_b_s_M_a_x keyword to give the absolute maximum value
+ ever to be reached. We need to know this in order to sort out
+ unrealistic values returned by the routers. If you do not set _A_b_s_M_a_x,
+ rateup will ignore values higher than _M_a_x_B_y_t_e_s.
+
+ Example:
+
+ AbsMax[myrouter]: 2500000
+
+ UUnnssccaalleedd
+ By default each graph is scaled vertically to make the actual data
+ visible even when it is much lower than _M_a_x_B_y_t_e_s. With the _U_n_s_c_a_l_e_d
+ variable you can suppress this. It's argument is a string, containing
+ one letter for each graph you don't want to be scaled: d=day w=week
+ m=month y=year. There is also a special case to unset the variable
+ completely: n=none. This could be useful in the event you need to
+ override a global configuration. In the example scaling for the yearly
+ and the monthly graph are suppressed.
+
+ Example:
+
+ Unscaled[myrouter]: ym
+
+ WWiitthhPPeeaakk
+ By default the graphs only contain the average values of the monitored
+ variables - normally the transfer rates for incoming and outgoing
+ traffic. The following option instructs mrtg to display the peak 5
+ minute values in the [w]eekly, [m]onthly and [y]early graph. In the
+ example we define the monthly and the yearly graph to contain peak as
+ well as average values.
+
+ Examples:
+
+ WithPeak[myrouter]: ym
+
+ SSuupppprreessss
+ By default mrtg produces 4 graphs. With this option you can suppress
+ the generation of selected graphs. The option value syntax is
+ analogous to the above two options. In this example we suppress the
+ yearly graph as it is quite empty in the beginning.
+
+ Example:
+
+ Suppress[myrouter]: y
+
+ EExxtteennssiioonn
+ By default, mrtg creates .html files. Use this option to tell mrtg to
+ use a different extension. For example you could set the extension to
+ php3, then you will be able to enclose PHP tags into the output (useful
+ for getting a router name out of a database).
+
+ Example:
+
+ Extension[myrouter]: phtml
+
+ DDiirreeccttoorryy
+ By default, mrtg puts all the files that it generates for each target
+ (the GIFs, the HTML page, the log file, etc.) in _W_o_r_k_D_i_r.
+
+ If the _D_i_r_e_c_t_o_r_y option is specified, the files are instead put into a
+ directory under _W_o_r_k_D_i_r or Log-, Image- and HtmlDir). (For example the
+ _D_i_r_e_c_t_o_r_y option below would cause all the files for a target myrouter
+ to be put into directory /usr/tardis/pub/www/stats/mrtg/myrouter/ .)
+
+ The directory must already exist; mrtg will not create it.
+
+ Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+
+ NOTE: the Directory option must always be 'relative' or bad things will
+ happen.
+
+ CClloonneeddiirreeccttoorryy
+ If the _D_i_r_e_c_t_o_r_y option is specified, the _C_l_o_n_e_d_i_r_e_c_t_o_r_y option will
+ copy all the contents of _D_i_r_e_c_t_o_r_y to the _C_l_o_n_e_d_i_r_e_c_t_o_r_y.
+
+ Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+ Clonedirectory[myrouter]: myclonedirectory
+
+ Optionally the target name can be changed in the cloning process.
+
+ Example:
+
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Directory[myrouter]: myrouter
+ Clonedirectory[myrouter]: myclonedirectory mynewtarget
+
+ NOTE1: The clone directory must already exist; mrtg will not create it.
+
+ NOTE2: The Clonedirectory option must also always be 'relative' or bad
+ things will happen.
+
+ NOTE3: This requires the File::Copy module
+
+ XXSSiizzee aanndd YYSSiizzee
+ By default mrtgs graphs are 100 by 400 pixels wide (plus some more for
+ the labels. In the example we get almost square graphs ...
+
+ Note: XSize must be between 20 and 600; YSize must be larger than 20
+
+ Example:
+
+ XSize[myrouter]: 300
+ YSize[myrouter]: 300
+
+ XXZZoooomm aanndd YYZZoooomm
+ If you want your graphs to have larger pixels, you can "Zoom" them.
+
+ Example:
+
+ XZoom[myrouter]: 2.0
+ YZoom[myrouter]: 2.0
+
+ XXSSccaallee aanndd YYSSccaallee
+ If you want your graphs to be actually scaled use _X_S_c_a_l_e and _Y_S_c_a_l_e.
+ (Beware: while this works, the results look ugly (to be frank) so if
+ someone wants to fix this: patches are welcome.
+
+ Example:
+
+ XScale[myrouter]: 1.5
+ YScale[myrouter]: 1.5
+
+ YYTTiiccss aanndd YYTTiiccssFFaaccttoorr
+ If you want to show more than 4 lines per graph, use YTics. If you
+ want to scale the value used for the YLegend of these tics, use
+ YTicsFactor. The default value for YTics is 4 and the default value
+ for YTicsFactor is 1.0 .
+
+ Example:
+
+ Suppose you get values ranging from 0 to 700. You want to plot 7 lines
+ and want to show 0, 1, 2, 3, 4, 5, 6, 7 instead of 0, 100, 200, 300,
+ 400, 500, 600, 700. You should write then:
+
+ YTics[myrouter]: 7
+ YTicsFactor[myrouter]: 0.01
+
+ FFaaccttoorr
+ If you want to multiply all numbers shown below the graph with a
+ constant factor, use this directive to define it ..
+
+ Example:
+
+ Factor[as400]: 4096
+
+ SStteepp
+ Change the default step from 5 * 60 seconds to something else (I have
+ not tested this much ...)
+
+ Example:
+
+ Step[myrouter]: 60
+
+ PPNNGGTTiittllee
+ When using rateup for graph generation, this will print the given title
+ in the graph it generates.
+
+ Example:
+
+ PNGTitle[myrouter]: WAN Link UK-US
+
+ OOppttiioonnss
+ The _O_p_t_i_o_n_s Keyword allows you to set some boolean switches:
+
+ growright
+ The graph grows to the left by default. This option flips the
+ direction of growth causing the current time to be at the right
+ edge of the graph and the history values to the left of it.
+
+ bits
+ All the monitored variable values are multiplied by 8 (i.e. shown
+ in bits instead of bytes) ... looks much more impressive :-) It
+ also affects the 'factory default' labeling and units for the given
+ target.
+
+ perminute
+ All the monitored variable values are multiplied by 60 (i.e. shown
+ in units per minute instead of units per second) in case of small
+ values more accurate graphs are displayed. It also affects the
+ 'factory default' labeling and units for the given target.
+
+ perhour
+ All the monitored variable values are multiplied by 3600 (i.e.
+ shown in units per hour instead of units per second) in case of
+ small values more accurate graphs are displayed. It also affects
+ the 'factory default' labeling and units for the given target.
+
+ noinfo
+ Suppress the information about uptime and device name in the
+ generated webpage.
+
+ nopercent
+ Don't print usage percentages.
+
+ transparent
+ Make the background of the generated gifs transparent.
+
+ integer
+ Print summary lines below graph as integers without commas.
+
+ dorelpercent
+ The relative percentage of IN-traffic to OUT-traffic is calculated
+ and displayed in the graph as an additional line. Note: Only a
+ fixed scale is available (from 0 to 100%). Therefore if IN-traffic
+ is greater than OUT-traffic then 100% is displayed. If you suspect
+ that your IN-traffic is not always less than or equal to your OUT-
+ traffic you are urged to not use this options. Note: If you use
+ this option in combination with the _C_o_l_o_u_r_s options, a fifth
+ colour-name colour-value pair is required there.
+
+ avgpeak
+ There are some ISPs who use the average Peak values to bill their
+ customers. Using this option MRTG displays these values for each
+ graph. The value is built by averaging the max 5 minute traffic
+ average for each 'step' shown in the graph. For the Weekly graph
+ this means that it builds the average of all 2 hour intervals 5
+ minute peak values. (Confused? Thought so!)
+
+ gauge
+ Treat the values gathered from target as 'current status'
+ measurements and not as ever incrementing counters. This would be
+ useful to monitor things like disk space, processor load,
+ temperature, and the like ...
+
+ In the absence of 'gauge' or 'absolute' options, MRTG treats
+ variables as a counters and calculates the difference between the
+ current and the previous value and divides that by the elapsed time
+ between the last two readings to get the value to be plotted.
+
+ absolute
+ This is for counter type data sources which reset their value when
+ they are read. This means that rateup does not have to build the
+ difference between the current and the last value read from the
+ data source. The value obtained is still divided by the elapsed
+ time between the current and the last reading, which makes it
+ different from the 'gauge' option. Useful for external data
+ gatherers.
+
+ derive
+ If you are using rrdtool as logger/grapher you can use a third type
+ of data source. Derive is like counter, except that it is not
+ required to go UP all the time. It is useful for situations where
+ the change of some value should be graphed.
+
+ unknaszero
+ Log unknown data as zero instead of the default behaviour of
+ repeating the last value seen. Be careful with this, often a flat
+ line in the graph is much more obvious than a line at 0.
+
+ withzeroes
+ Normally we ignore all values which are zero when calculating the
+ average transfer rate on a line. If this is not desirable use this
+ option.
+
+ noborder
+ If you are using rateup to log data, MRTG will create the graph
+ images. Normally these images have a shaded border around them. If
+ you do not want the border to be drawn, enable this option. This
+ option has no effect if you are not using rateup.
+
+ noarrow
+ As with the option above, this effects rateup graph generation
+ only. Normally rateup will generate graphs with a small arrow
+ showing the direction of the data. If you do not want this arrow to
+ be drawn, enable this option. This option has no effect if you are
+ not using rateup.
+
+ noi When using rateup for graph generation, you can use this option to
+ stop rateup drawing a graph for the 'I' or first variable. This
+ also removes entries for this variable in the HTML page MRTG
+ generates, and will remove the peaks for this variable if they are
+ enabled. This allows you to hide this data, or can be very useful
+ if you are only graphing one line of data rather than two. This
+ option is not destructive - any data received for the the variable
+ continued to be logged, it just isn't shown.
+
+ noo Same as above, except relating to the 'O' or second variable.
+
+ nobanner
+ When using rateup for graph generation, this option disables MRTG
+ adding the MRTG banner to the HTML pages it generates.
+
+ nolegend
+ When using rateup for graph generation, this option will stop MRTG
+ from creating a legend at the bottom of the HTML pages it
+ generates.
+
+ printrouter
+ When using rateup for graph generation, this option will print the
+ router name in the graph it generates. This option is overridden
+ by the value of PNGTitle if one is given
+
+ pngdate
+ When using rateup for graph generation, this option will print a
+ timestamp in the graph it generates, including a timezone if one is
+ specified by the 'Timezone' parameter. This is aequivalent to
+ setting TimeStrPost[x]: RU
+
+ logscale
+ The llooggssccaallee option causes rateup to display the data with the Y
+ axis scaled logarithmically. Doing so allows the normal traffic to
+ occupy the majority of the vertical range, while still showing any
+ spikes at their full height.
+
+ llooggssccaallee displays all the available data and will always produce
+ well-behaved graphs. People often consider a logarithmically
+ scaled graph counterintuitive, however, and thus hard to interpret.
+
+ expscale
+ The eexxppssccaallee option causes rateup to display the data with the Y
+ axis scaled exponentially. Doing so emphasizes small changes at
+ the top of the scale; this can be useful when graphing values that
+ fluctuate by a small amount near the top of the scale, such as line
+ voltage.
+
+ eexxppssccaallee is essentially the inverse of llooggssccaallee.
+
+ secondmean
+ The sseeccoonnddmmeeaann option sets the maximum value on the graph to the
+ mean of the data greater than the mean of all data. This produces
+ a graph that focuses more on the typical data, while clipping large
+ peaks.
+
+ Using sseeccoonnddmmeeaann will give a more intutive linearly scaled graph,
+ but can result in a uselessly high or low scale in some rare
+ situations (specifically, when the data includes a large portion of
+ values far from the actual mean)
+
+ If a target includes both llooggssccaallee and sseeccoonnddmmeeaann in the options,
+ the sseeccoonnddmmeeaann takes precedence.
+
+ Example:
+
+ Options[myrouter]: growright, bits
+
+ kkiilloo
+ Use this option to change the multiplier value for building prefixes.
+ Defaultvalue is 1000. This tag is for the special case that 1kB =
+ 1024B, 1MB = 1024kB and so far.
+
+ Example:
+
+ kilo[myrouter]: 1024
+
+ kkMMGG
+ Change the default multiplier prefixes (,k,M,G,T,P). In the tag
+ _S_h_o_r_t_L_e_g_e_n_d define only the basic units. Format: Comma separated list
+ of prefixed. Two consecutive commas or a comma at start or end of the
+ line gives no prefix on this item. If you do not want prefixes, just
+ put two consecutive commas. If you want to skip a magnitude select '-'
+ as value.
+
+ Example: velocity in nm/s (nanometers per second) displayed in nm/h.
+
+ ShortLegend[myrouter]: m/h
+ kMG[myrouter]: n,u,m,,k,M,G,T,P
+ options[myrouter]: perhour
+
+ CCoolloouurrss
+ The _C_o_l_o_u_r_s tag allows you to override the default colour scheme.
+ Note: All 4 of the required colours must be specified here. The colour
+ name ('Colourx' below) is the legend name displayed, while the RGB
+ value is the real colour used for the display, both on the graph and in
+ the html doc.
+
+ Format is: Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB
+
+ Important: If you use the _d_o_r_e_l_p_e_r_c_e_n_t options tag a fifth colour name
+ colour value pair is required:
+ Col1#RRGGBB,Col2#RRGGBB,Col3#RRGGBB,Col4#RRGGBB,Col5#RRGGBB
+
+ Colour1
+ First variable (normally Input) on default graph.
+
+ Colour2
+ Second variable (normally Output) on default graph.
+
+ Colour3
+ Max first variable (input).
+
+ Colour4
+ Max second variable (output).
+
+ RRGGBB
+ 2 digit hex values for Red, Green and Blue.
+
+ Example:
+
+ Colours[myrouter]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
+
+ BBaacckkggrroouunndd
+ With the _B_a_c_k_g_r_o_u_n_d tag you can configure the background colour of the
+ generated HTML page.
+
+ Example:
+
+ Background[myrouter]: #a0a0a0a
+
+ YYLLeeggeenndd,, SShhoorrttLLeeggeenndd,, LLeeggeenndd[[11223344]]
+ The following keywords allow you to override the text displayed for the
+ various legends of the graph and in the HTML document:
+
+ YLegend
+ The Y-axis label of the graph. Note that a text which is too long
+ to fit in the graph will be silently ignored.
+
+ ShortLegend
+ The units string (default 'b/s') used for Max, Average and Current
+
+ Legend[1234IO]
+ The strings for the colour legend.
+
+ Example:
+
+ YLegend[myrouter]: Bits per Second
+ ShortLegend[myrouter]: b/s
+ Legend1[myrouter]: Incoming Traffic in Bits per Second
+ Legend2[myrouter]: Outgoing Traffic in Bits per Second
+ Legend3[myrouter]: Maximal 5 Minute Incoming Traffic
+ Legend4[myrouter]: Maximal 5 Minute Outgoing Traffic
+ LegendI[myrouter]: &nbsp;In:
+ LegendO[myrouter]: &nbsp;Out:
+
+ Note, if _L_e_g_e_n_d_I or _L_e_g_e_n_d_O are set to an empty string with
+
+ LegendO[myrouter]:
+
+ The corresponding line below the graph will not be printed at all.
+
+ TTiimmeezzoonnee
+ If you live in an international world, you might want to generate the
+ graphs in different timezones. This is set in the TZ variable. Under
+ certain operating systems like Solaris, this will provoke the localtime
+ call to give the time in the selected timezone.
+
+ Example:
+
+ Timezone[myrouter]: Japan
+
+ The Timezone is the standard timezone of your system, ie Japan,
+ Hongkong, GMT, GMT+1 etc etc.
+
+ WWeeeekkffoorrmmaatt
+ By default, mrtg (actually rateup) uses the _s_t_r_f_t_i_m_e(3) '%V' option to
+ format week numbers in the monthly graphs. The exact semantics of this
+ format option vary between systems. If you find that the week numbers
+ are wrong, and your system's _s_t_r_f_t_i_m_e(3) routine supports it, you can
+ try another format option. The POSIX '%V' option correspond to the
+ widely used ISO 8601 week numbering standard. The week format
+ character should be specified as a single letter; either W, V, or U.
+
+ The UNIX version of rateup uses the libc implementation of strftime.
+ On Windows, the native strftime implementation does not know about %V.
+ So there we use a different implementation of strftime that does
+ support %V.
+
+ Example:
+
+ Weekformat[myrouter]: W
+
+ RRRRDDRRoowwCCoouunntt
+ This affects the creation of new rrd files. By default rrds are created
+ to hold about 1 day's worth of high resolution data. (plus 1 week of 30
+ minute data, 2 months of 2 hour data and 2 years of 1 day data). With
+ this Keyword you can change the number of base interval entries
+ configured for new rrds as they get created. Note that you must take
+ the interval time into account.
+
+ Example:
+
+ RRDRowCount[myrouter]: 1600
+
+ RRRRDDRRoowwCCoouunntt3300mm
+ As per RRDRowCount, but for the RRA's -typically- used for 30 minute
+ data. Even so, you must still take the base interval into account.
+ Leaving out this keyword will force the old default of 800 rows.
+
+ Example:
+
+ RRDRowCount30m[myrouter]: 800
+
+ RRRRDDRRoowwCCoouunntt22hh
+ As per RRDRowCount, but for the RRA's -typically- used for 2 hour data.
+ Even so, you must still take the base interval into account. Leaving
+ out this keyword will force the old default of 800 rows.
+
+ Example:
+
+ RRDRowCount2h[myrouter]: 400
+
+ RRRRDDRRoowwCCoouunntt11dd
+ As per RRDRowCount, but for the RRA's -typically- used for 1 day data.
+ Even so, you must still take the base interval into account. Leaving
+ out this keyword will force the old default of 800 rows.
+
+ Example:
+
+ RRDRowCount1d[myrouter]: 200
+
+ RRRRDDHHWWRRRRAAss
+ Normally the RRDs created by MRTG will just contain the information
+ gathered directly from the respective target. With this option you can
+ tap into rrdtools advanced aberrant behaviour detection module based on
+ Holt-Winters forecasting. The RRDHWRRAs property specifies the Holt-
+ Winters RRAs as described in the rrdcreate manual page.
+
+ Note, this setting will only affect newly created RRDs (targets).
+
+ Example:
+
+ RRDHWRRAs[myrouter]: RRA:HWPREDICT:1440:0.1:0.0035:288
+
+ TTiimmeeSSttrrPPooss
+ This defines placement of the timestamp string on the image. Possible
+ values are RU, LU, RL, LL (which stand, respectively, for RightUpper,
+ LeftUpper, RightLower and LeftLower corner) and NO (for no timestamp).
+ By default, no timestamp is placed on the image.
+
+ Example:
+
+ TimeStrPos[myrouter]: RU
+
+ TTiimmeeSSttrrFFmmtt
+ Using this keyword you may specify format of the timestamp to be placed
+ on the image (if enabled by the TimeStrPos keyword). Specified string
+ will be used by the _s_t_r_f_t_i_m_e_(_) function - see _s_t_r_f_t_i_m_e(3) documentation
+ for conversion specifiers available on your system. Default format:
+ %Y-%m-%d %H:%M
+
+ Example:
+
+ TimeStrFmt[myrouter]: %H:%M:%S
+
+TTHHRREESSHHOOLLDD CCHHEECCKKIINNGG
+ Through its threshold checking functionality mrtg is able to detect
+ threshold problems for the various targets and can call external
+ scripts to handle those problems (e.g. send email or a page to an
+ administrator).
+
+ Threshold checking is configured through the following parameters:
+
+ TThhrreesshhDDiirr ((GGLLOOBBAALL))
+ By defining ThreshDir to point to a writable directory, MRTG will only
+ alert you when a threshold boundary has been crossed.
+
+ Example:
+
+ ThreshDir: /var/mrtg/thresh
+
+ TThhrreesshhHHyysstt ((GGLLOOBBAALL))
+ If a threshold is broken, and you have a threshdir defined, then mrtg
+ will send mail once the threshold becomes 'unborken' to avoid
+ situations where broken and unbroken messages get sent in close
+ succession, we only send an unbroken message once the curent value is
+ 0.1 (10%) away from the threshold. using the ThreshHyst config
+ variable you can customize this value.
+
+ Example for 5%:
+
+ ThreshHyst: 0.05
+
+ TThhrreesshhMMaaiillSSeerrvveerr ((GGLLOOBBAALL))
+ Adderss of an SMTP server which is going to accept mail about
+ Thresholds being broken and unbroken.
+
+ TThhrreesshhMMaaiillSSeennddeerr ((GGLLOOBBAALL))
+ What is the sender address of the threshold mail.
+
+ Example:
+
+ ThreshMailSender: mrtg@example.com
+
+ TThhrreesshhMMaaiillAAddddrreessss ((PPEERR TTAARRGGEETT))
+ Email address for Threshold related Mails. This will only work if a
+ mailserver has been configured.
+
+ Example:
+
+ ThreshMailAddress[_]: admin@example.com
+ ThreshMailAddress[router]:
+
+ This would bring threshold releaed mail to all but the target called
+ 'router'.
+
+ TThhrreesshhMMiinnII ((PPEERR TTAARRGGEETT))
+ This is the minimum acceptable value for the Input (first) parameter.
+ If the parameter falls below this value, the program specified in
+ ThreshProgI will be run and a mail will be sent to the
+ ThreshMailAddress if specified. If the value ends in '%' then the
+ threshold is defined relative to MaxBytes.
+
+ TThhrreesshhMMaaxxII ((PPEERR TTAARRGGEETT))
+ Works the same as TheshMinI but it acts when the value is higher than
+ ThreshMaxI.
+
+ TThhrreesshhDDeesscc ((PPEERR TTAARRGGEETT))
+ Its value will be assigned to the environment variable THRESH_DESC
+ before any of the programs mentioned below are called. The programs can
+ use the value of this variable to produce more user-friendly output.
+
+ TThhrreesshhPPrrooggII ((PPEERR TTAARRGGEETT))
+ This defines a program to be run if ThreshMinI or ThreshMaxI is broken.
+ MRTG passes 3 arguments: the $router variable, the threshold value
+ broken, and the current parameter value.
+
+ TThhrreesshhPPrrooggOOKKII ((PPEERR TTAARRGGEETT))
+ This defines a program to be run if the parameter is currently OK
+ (based on ThreshMinI and ThreshMaxI), but wasn't OK on the previous
+ running -- based on the files found in ThreshDir. MRTG passes 3
+ arguments: the $router variable the unbroken threshold value, and the
+ current parameter value.
+
+ TThhrreesshhMMiinnOO,, TThhrreesshhMMaaxxOO,, TThhrreesshhPPrrooggOO,, aanndd TThhrreesshhPPrrooggOOKKOO
+ These work the same as their *I counterparts, except on the Output
+ (second) parameter.
+
+ SSeettEEnnvv
+ When calling threshold scripts from within your cfg file you might want
+ to pass some data on to the script. This can be done with the SetEnv
+ configuration option which takes a series of environment variable
+ assignments. Note that the quotes are mandatory. This does not work for
+ external scripts. It is not possible to set environment variables per
+ target.
+
+ Example:
+
+ SetEnv[myrouter]: EMAIL="contact_email@someplace.net"
+ HOST="www.some_server.net"
+
+ HHWW FFaaiilluurree BBaasssseedd TThhrreesshhoolldd CChheecckkiinngg
+ When using rrd based logging with HW RRAs defined. You can use the
+ confidence bounds violations stored in the FAILURES RRA for threshold
+ based alerts.
+
+ There the all target specific threshold variables have a Hold-Winters
+ counterpart:
+
+ ThreshMailAddress -> HWThreshMailAddress
+ ThreshMinI -> HWThreshMinI
+ ...
+
+ The global variables for threshold checking are shared except for the
+
+ ThreshHyst -> HWThreshHyst
+
+ And HWThreshDesc sets the HWTHRESH_DESC variable.
+
+PPEERR TTAARRGGEETT DDEEFFAAUULLTT VVAALLUUEESS
+ PPrree-- aanndd PPoossttffiixx
+ To save yourself some typing you can define a target called '^'. The
+ text of every Keyword you define for this target will be PREPENDED to
+ the corresponding Keyword of all the targets defined below this line.
+ The same goes for a Target called '$' but its text will be APPENDED.
+
+ Note that a space is inserted between the prepended text and the
+ Keyword value, as well as between the Keyword value and the appended
+ text. This works well for text-valued Keywords, but is not very useful
+ for other Keywords. See the "default" target description below.
+
+ The example will make mrtg use a common header and a common contact
+ person in all the pages generated from targets defined later in this
+ file.
+
+ Example:
+
+ PageTop[^]: <H1>NoWhere Unis Traffic Stats</H1><HR>
+ PageTop[$]: Contact Peter Norton if you have any questions<HR>
+
+ To remove the prepend/append value, specify an empty value, e.g.:
+
+ PageTop[^]:
+ PageTop[$]:
+
+ NNooSSppaacceeCChhaarr
+ With PREPEND and APPEND (see below) there is normally a space inserted
+ between the local value and the PRE- or APPEND value. Sometimes this is
+ not desirable. You can use the global option _N_o_S_p_a_c_e_C_h_a_r to define a
+ character which can be mentioned at the end of a $ or ^ definition in
+ order to supress the space.
+
+ Example:
+
+ NoSpaceChar: ~
+ Target[^]: 1.3.6.1.4.1.482.50.2.4.20.0&1.3.6.1.4.1.482.50.2.4.21.0:get@~
+ Target[a]: a.tolna.net
+ Target[b]: b.tolna.net
+ Target[c]: c.tolna.net
+ Target[d]: d.tolna.net
+
+ DDeeffaauulltt VVaalluueess
+ The target name '_' specifies a default value for that Keyword. In the
+ absence of explicit Keyword value, the prepended and the appended
+ keyword value, the default value will be used.
+
+ Example:
+
+ YSize[_]: 150
+ Options[_]: growright,bits,nopercent
+ WithPeak[_]: ymw
+ Suppress[_]: y
+ MaxBytes[_]: 1250000
+
+ To remove the default value and return to the 'factory default',
+ specify an empty value, e.g.:
+
+ YLegend[_]:
+
+ There can be several instances of setting the default/prepend/append
+ values in the configuration file. The later setting replaces the
+ previous one for the rest of the configuration file. The
+ default/prepend/append values used for a given keyword/target pair are
+ the ones that were in effect at the point in the configuration file
+ where the target was mentioned for the first time.
+
+ Example:
+
+ MaxBytes[_]: 1250000
+ Target[myrouter.somplace.edu.2]: 2:public@myrouter.somplace.edu
+ MaxBytes[_]: 8000
+ Title[myrouter.somplace.edu.2]: Traffic Analysis for myrouter.somplace.edu IF 2
+
+ The default _M_a_x_B_y_t_e_s for the target myrouter.someplace.edu.2 in the
+ above example will be 1250000, which was in effect where the target
+ name myrouter.someplace.edu.2 first appeared in the config file.
+
+CCOOMMMMAANNDD LLIINNEE OOPPTTIIOONNSS
+ ----uusseerr _u_s_e_r_n_a_m_e and ----ggrroouupp _g_r_o_u_p_n_a_m_e
+ Run as the given user and/or group. (Unix Only)
+
+ ----lloocckk--ffiillee _f_i_l_e_n_a_m_e
+ Use an alternate lock-file (the default is to use the
+ configuration-file appended with "_l").
+
+ ----ccoonnffccaacchhee--ffiillee _f_i_l_e_n_a_m_e
+ Use an alternate confcache-file (the default is to use the
+ configuration-file appended with ".ok")
+
+ ----llooggggiinngg _f_i_l_e_n_a_m_e|eevveennttlloogg
+ If this is set to writable filename, all output from mrtg
+ (warnings, debug messages, errors) will go to _f_i_l_e_n_a_m_e. If you are
+ running on Win32 you can specify eevveennttlloogg instead of a filename
+ which will send all error to the windows event log.
+
+ NNOOTTEE:: Note, there is no Message DLL for mrtg included with mrtg.
+ This has the side effect that the windows event logger will display
+ a nice message with every entry in the event log, complaing about
+ the fact that mrtg has no message dll. If you go to the mrtg
+ contrib download area (on the website) you will find the
+ mrtg-message-dll.zip which does contain such a thing.
+
+ ----ddaaeemmoonn
+ Put MRTG into the background, running as a daemon. This works the
+ same way as the config file option, but the switch is required for
+ proper FHS operation (because /var/run is writable only by root)
+
+ ----ffhhss
+ Configure all mrtg paths to conform to the FHS specification;
+ http://www.pathname.com/fhs/
+
+ ----cchheecckk
+ Only check the cfg file for errors. Do not do anything.
+
+ ----ppiidd--ffiillee==ss
+ Define the name and path of the pid file for mrtg running as a
+ daemon
+
+ ----ddeebbuugg==ss
+ Enable debug options. The argument of the debug option is a comma
+ separated list of debug values:
+
+ cfg - watch the config file reading
+ dir - directory mangeling
+ base - basic program flow
+ tarp - target parser
+ snpo - snmp polling
+ coca - confcache operations
+ fork - forking view
+ time - some timing info
+ log - logging of data via rateup or rrdtool
+ eval - print eval strings before evaluting them
+ prof - add hires timing info the rrd calls
+
+ Example:
+
+ --debug="cfg,snpo"
+
+EEXXIITT CCOODDEESS
+ An exit code of 0 indicates that all targets were successful.
+ Generally speaking, most codes greater than 0 indicate that there was
+ an unrecoverable problem. One exception to this is code 91, which
+ indicates that at least one of the targets was successful. A partial
+ listing of the codes follows:
+
+ 0: All targets sucessful
+
+ 2: Config error (can't read, fatal error in config, etc)
+ 17: Another MRTG process is processing config
+
+ 91: At least one target sucessful
+ 92: No targets were sucessful
+
+EEXXAAMMPPLLEESS
+ MMiinniimmaall mmrrttgg..ccffgg
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Target[r1]: 2:public@myrouter.somplace.edu
+ MaxBytes[r1]: 8000
+ Title[r1]: Traffic Analysis ISDN
+ PageTop[r1]: <H1>Stats for our ISDN Line</H1>
+
+ CCffgg ffoorr sseevveerraall RRoouutteerrss..
+ WorkDir: /usr/tardis/pub/www/stats/mrtg
+ Title[^]: Traffic Analysis for
+ PageTop[^]: <H1>Stats for
+ PageTop[$]: Contact The Chief if you notice anybody<HR>
+ MaxBytes[_]: 8000
+ Options[_]: growright
+
+ Title[isdn]: our ISDN Line
+ PageTop[isdn]: our ISDN Line</H1>
+ Target[isdn]: 2:public@router.somplace.edu
+
+ Title[backb]: our Campus Backbone
+ PageTop[backb]: our Campus Backbone</H1>
+ Target[backb]: 1:public@router.somplace.edu
+ MaxBytes[backb]: 1250000
+
+ # the following line removes the default prepend value
+ # defined above
+
+ Title[^]:
+
+ Title[isdn2]: Traffic for the Backup ISDN Line
+ PageTop[isdn2]: our ISDN Line</H1>
+ Target[isdn2]: 3:public@router.somplace.edu
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch> and many contributors
+
+
+
+2.17.7 2018-07-13 MRTG-REFERENCE(1)
diff --git a/doc/mrtg-rrd.1 b/doc/mrtg-rrd.1
new file mode 100644
index 0000000..35a5acf
--- /dev/null
+++ b/doc/mrtg-rrd.1
@@ -0,0 +1,250 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-RRD 1"
+.TH MRTG-RRD 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-rrd \- How to use RRDtool with MRTG
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+After using \s-1MRTG\s0 for some time you may find some limitations, mostly in the
+areas of performance and graphing flexibility. These are exactly the areas
+addressed by RRDtool. To learn more about RRDtool check out its website on
+.PP
+.Vb 1
+\& http://oss.oetiker.ch/rrdtool
+.Ve
+.SH "RRDTOOL INTEGRATION"
+.IX Header "RRDTOOL INTEGRATION"
+When using mrtg with RRDtool you are replacing \fIrateup\fR with the
+RRDtool perl module \fIRRDs.pm\fR. To enable RRDtool support in mrtg
+you have to add the line
+.PP
+.Vb 1
+\& LogFormat: rrdtool
+.Ve
+.PP
+to your mrtg config file.
+.PP
+\&\s-1MRTG\s0 needs access to both the RRDtool perl module \fBRRDs.pm\fR and to the
+\&\fBrrdtool\fR executable.
+.PP
+If these two items are not installed in locations where perl can find them
+on its own, then you can use the following two parameters to supply the
+appropriate directories.
+.PP
+For the location of the \fBrrdtool\fR executable you put
+.PP
+.Vb 1
+\& PathAdd: /usr/local/rrdtool/bin/
+.Ve
+.PP
+or
+.PP
+.Vb 1
+\& PathAdd: c:\errdtool\ebin
+.Ve
+.PP
+For the location of the perl module it would be:
+.PP
+.Vb 1
+\& LibAdd: /usr/local/rrdtool/lib/perl/
+.Ve
+.PP
+or
+.PP
+.Vb 1
+\& LibAdd: c:\errdtool\ebin\elib\eperl
+.Ve
+.PP
+When you have made this modification to the configuration file, several
+things will happen when you run mrtg again with the new config file:
+.IP "1." 4
+mrtg will take all your old \f(CW\*(C`.log\*(C'\fR files and \fBconvert\fR them to \f(CW\*(C`.rrd\*(C'\fR
+format. (The \f(CW\*(C`.log\*(C'\fR files don't get touched in the process, so if things
+don't work out they are still there.)
+.IP "2." 4
+mrtg will use \fBrrdtool\fR to update its databases. These will have a new format
+called \fIrrd\fR which is totally different than the native \fIlog\fR format of
+the classic mrtg.
+.IP "3." 4
+mrtg will \fBnot\fR create any webpages of graphs anymore.
+It will only query the routers for traffic information and update its \fIrrd\fR
+databases.
+.PP
+The advantage of whole thing is that the mrtg will become \fBmuch\fR
+faster. Expect the runtime to drop to 20% of the previous value. (I would like
+to get some feedback on this from folks with large installations.)
+.PP
+Mind you, though, while the logging process of RRDtool is \fBvery\fR fast, you
+are also gaining some time by neither creating graphs nor updating webpages.
+The idea behind this is that it is more efficient to create
+graphs and webpages on demand by using a cgi script.
+.PP
+At the moment there is no \fBofficial\fR script to do this, but two
+contributers have created such scripts:
+.IP "One4All aka 14all.cgi" 4
+.IX Item "One4All aka 14all.cgi"
+This was the first program to take over the webpage creation and graphing task.
+It has been developed by Rainer Bawidamann
+rainer.bawidamann@web.de. You can find a copy
+on Rainers website: http://my14all.sourceforge.net/
+The program comes with its own documentation
+.IP "\fBrouters2.cgi\fR" 4
+.IX Item "routers2.cgi"
+This is another \s-1CGI\s0 frontend for mrtg running with rrdtool. The main difference between this and 14all is
+that the web pages it creates are much more stylish than the ones from mrtg, plus they support User
+Defined summary graphs and different levels of Authentication and Authorisation. This has been written by
+Steve Shipway (steve@steveshipway.org). You obtain a copy, and find a forum and demonstration system at
+http://www.steveshipway.org/software/
+The program comes with its own installation instructions and install script.
+.IP "\fBmrtg-rrd\fR" 4
+.IX Item "mrtg-rrd"
+The mrtg-rrd script is a CGI/FastCGI application by Jan \*(L"Yenya\*(R" Kasprzak for
+displaying \s-1MRTG\s0 graphs from data in the RRDtool format. It is an intended
+replacement for the 14all.cgi script. It can make your monitoring system
+faster because \s-1MRTG\s0 does not have to generate all the \s-1PNG\s0 files with graphs
+every 5 minutes or so. Instead of this the graphs are generated on-demand
+when the user wants to see them. http://www.fi.muni.cz/~kas/mrtg\-rrd/
+.SH "FUTURE"
+.IX Header "FUTURE"
+Just as a side note: \s-1MRTG\-3\s0 will be based entirely on rrdtool technology.
+But don't wait for it ... get going \fBnow\fR!
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-rrd.pod b/doc/mrtg-rrd.pod
new file mode 100644
index 0000000..cbddaf9
--- /dev/null
+++ b/doc/mrtg-rrd.pod
@@ -0,0 +1,120 @@
+=head1 NAME
+
+mrtg-rrd - How to use RRDtool with MRTG
+
+=head1 SYNOPSIS
+
+After using MRTG for some time you may find some limitations, mostly in the
+areas of performance and graphing flexibility. These are exactly the areas
+addressed by RRDtool. To learn more about RRDtool check out its website on
+
+ http://oss.oetiker.ch/rrdtool
+
+=head1 RRDTOOL INTEGRATION
+
+When using mrtg with RRDtool you are replacing F<rateup> with the
+RRDtool perl module F<RRDs.pm>. To enable RRDtool support in mrtg
+you have to add the line
+
+ LogFormat: rrdtool
+
+to your mrtg config file.
+
+MRTG needs access to both the RRDtool perl module B<RRDs.pm> and to the
+B<rrdtool> executable.
+
+If these two items are not installed in locations where perl can find them
+on its own, then you can use the following two parameters to supply the
+appropriate directories.
+
+For the location of the B<rrdtool> executable you put
+
+ PathAdd: /usr/local/rrdtool/bin/
+
+or
+
+ PathAdd: c:\rrdtool\bin
+
+For the location of the perl module it would be:
+
+ LibAdd: /usr/local/rrdtool/lib/perl/
+
+or
+
+ LibAdd: c:\rrdtool\bin\lib\perl
+
+When you have made this modification to the configuration file, several
+things will happen when you run mrtg again with the new config file:
+
+=over
+
+=item 1.
+
+mrtg will take all your old C<.log> files and B<convert> them to C<.rrd>
+format. (The C<.log> files don't get touched in the process, so if things
+don't work out they are still there.)
+
+=item 2.
+
+mrtg will use B<rrdtool> to update its databases. These will have a new format
+called I<rrd> which is totally different than the native I<log> format of
+the classic mrtg.
+
+=item 3.
+
+mrtg will B<not> create any webpages of graphs anymore.
+It will only query the routers for traffic information and update its I<rrd>
+databases.
+
+=back
+
+The advantage of whole thing is that the mrtg will become B<much>
+faster. Expect the runtime to drop to 20% of the previous value. (I would like
+to get some feedback on this from folks with large installations.)
+
+Mind you, though, while the logging process of RRDtool is B<very> fast, you
+are also gaining some time by neither creating graphs nor updating webpages.
+The idea behind this is that it is more efficient to create
+graphs and webpages on demand by using a cgi script.
+
+At the moment there is no B<official> script to do this, but two
+contributers have created such scripts:
+
+=over
+
+=item One4All aka 14all.cgi
+
+This was the first program to take over the webpage creation and graphing task.
+It has been developed by Rainer Bawidamann
+rainer.bawidamann@web.de. You can find a copy
+on Rainers website: http://my14all.sourceforge.net/
+The program comes with its own documentation
+
+=item B<routers2.cgi>
+
+This is another CGI frontend for mrtg running with rrdtool. The main difference between this and 14all is
+that the web pages it creates are much more stylish than the ones from mrtg, plus they support User
+Defined summary graphs and different levels of Authentication and Authorisation. This has been written by
+Steve Shipway (steve@steveshipway.org). You obtain a copy, and find a forum and demonstration system at
+http://www.steveshipway.org/software/
+The program comes with its own installation instructions and install script.
+
+=item B<mrtg-rrd>
+
+The mrtg-rrd script is a CGI/FastCGI application by Jan "Yenya" Kasprzak for
+displaying MRTG graphs from data in the RRDtool format. It is an intended
+replacement for the 14all.cgi script. It can make your monitoring system
+faster because MRTG does not have to generate all the PNG files with graphs
+every 5 minutes or so. Instead of this the graphs are generated on-demand
+when the user wants to see them. http://www.fi.muni.cz/~kas/mrtg-rrd/
+
+=back
+
+=head1 FUTURE
+
+Just as a side note: MRTG-3 will be based entirely on rrdtool technology.
+But don't wait for it ... get going B<now>!
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
diff --git a/doc/mrtg-rrd.txt b/doc/mrtg-rrd.txt
new file mode 100644
index 0000000..693151d
--- /dev/null
+++ b/doc/mrtg-rrd.txt
@@ -0,0 +1,111 @@
+MRTG-RRD(1) mrtg MRTG-RRD(1)
+
+
+
+NNAAMMEE
+ mrtg-rrd - How to use RRDtool with MRTG
+
+SSYYNNOOPPSSIISS
+ After using MRTG for some time you may find some limitations, mostly in
+ the areas of performance and graphing flexibility. These are exactly
+ the areas addressed by RRDtool. To learn more about RRDtool check out
+ its website on
+
+ http://oss.oetiker.ch/rrdtool
+
+RRRRDDTTOOOOLL IINNTTEEGGRRAATTIIOONN
+ When using mrtg with RRDtool you are replacing _r_a_t_e_u_p with the RRDtool
+ perl module _R_R_D_s_._p_m. To enable RRDtool support in mrtg you have to add
+ the line
+
+ LogFormat: rrdtool
+
+ to your mrtg config file.
+
+ MRTG needs access to both the RRDtool perl module RRRRDDss..ppmm and to the
+ rrrrddttooooll executable.
+
+ If these two items are not installed in locations where perl can find
+ them on its own, then you can use the following two parameters to
+ supply the appropriate directories.
+
+ For the location of the rrrrddttooooll executable you put
+
+ PathAdd: /usr/local/rrdtool/bin/
+
+ or
+
+ PathAdd: c:\rrdtool\bin
+
+ For the location of the perl module it would be:
+
+ LibAdd: /usr/local/rrdtool/lib/perl/
+
+ or
+
+ LibAdd: c:\rrdtool\bin\lib\perl
+
+ When you have made this modification to the configuration file, several
+ things will happen when you run mrtg again with the new config file:
+
+ 1. mrtg will take all your old ".log" files and ccoonnvveerrtt them to ".rrd"
+ format. (The ".log" files don't get touched in the process, so if
+ things don't work out they are still there.)
+
+ 2. mrtg will use rrrrddttooooll to update its databases. These will have a
+ new format called _r_r_d which is totally different than the native
+ _l_o_g format of the classic mrtg.
+
+ 3. mrtg will nnoott create any webpages of graphs anymore. It will only
+ query the routers for traffic information and update its _r_r_d
+ databases.
+
+ The advantage of whole thing is that the mrtg will become mmuucchh faster.
+ Expect the runtime to drop to 20% of the previous value. (I would like
+ to get some feedback on this from folks with large installations.)
+
+ Mind you, though, while the logging process of RRDtool is vveerryy fast,
+ you are also gaining some time by neither creating graphs nor updating
+ webpages. The idea behind this is that it is more efficient to create
+ graphs and webpages on demand by using a cgi script.
+
+ At the moment there is no ooffffiicciiaall script to do this, but two
+ contributers have created such scripts:
+
+ One4All aka 14all.cgi
+ This was the first program to take over the webpage creation and
+ graphing task. It has been developed by Rainer Bawidamann
+ rainer.bawidamann@web.de. You can find a copy on Rainers website:
+ http://my14all.sourceforge.net/ The program comes with its own
+ documentation
+
+ rroouutteerrss22..ccggii
+ This is another CGI frontend for mrtg running with rrdtool. The
+ main difference between this and 14all is that the web pages it
+ creates are much more stylish than the ones from mrtg, plus they
+ support User Defined summary graphs and different levels of
+ Authentication and Authorisation. This has been written by Steve
+ Shipway (steve@steveshipway.org). You obtain a copy, and find a
+ forum and demonstration system at
+ http://www.steveshipway.org/software/ The program comes with its
+ own installation instructions and install script.
+
+ mmrrttgg--rrrrdd
+ The mrtg-rrd script is a CGI/FastCGI application by Jan "Yenya"
+ Kasprzak for displaying MRTG graphs from data in the RRDtool
+ format. It is an intended replacement for the 14all.cgi script. It
+ can make your monitoring system faster because MRTG does not have
+ to generate all the PNG files with graphs every 5 minutes or so.
+ Instead of this the graphs are generated on-demand when the user
+ wants to see them. http://www.fi.muni.cz/~kas/mrtg-rrd/
+
+FFUUTTUURREE
+ Just as a side note: MRTG-3 will be based entirely on rrdtool
+ technology. But don't wait for it ... get going nnooww!
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-RRD(1)
diff --git a/doc/mrtg-squid.1 b/doc/mrtg-squid.1
new file mode 100644
index 0000000..b1fa052
--- /dev/null
+++ b/doc/mrtg-squid.1
@@ -0,0 +1,250 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-SQUID 1"
+.TH MRTG-SQUID 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+mrtg-squid \- using mrtg to monitor Squid
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+Squid 2.3 knows \s-1SNMP\s0 and you can therefore use mrtg to
+monitor it quite easily.
+.PP
+I have made some modifications to mrtg which simplify this.
+My work is based on earlier modification made by:
+matija.grabnar@arnes.si and kostas@nlanr.net.
+.SH "MODIFICATIONS"
+.IX Header "MODIFICATIONS"
+I added new code for displaying correct units to the
+previous patches \*(L"perminute\*(R" and \*(L"perhour\*(R" (\*(L"option\*(R" tokens),
+which allows other measurement in addition to \*(L"persecond\*(R".
+.PP
+Then I created a new option token \*(L"dorelpercent\*(R" which
+allows the calculation of the percentage of IN-stream / OUT-stream on
+the fly and then displays it on a fixed scale from 0% to 100%. For my
+requirements, this does good work. Maybe someone wants a floating
+scale. It should not be a problem to implement it, too (but
+give me an option to keep my fixed scale). If IN-stream is always
+less than OUT-stream both lines (OUT-stream and relative percent)
+are always displayed on top of IN-stream bulk. Otherwise this
+option makes no sense. With this option you can display hitrates,
+errorrates (for router monitoring: rel. droprates) easily now.
+.PP
+If you use this options please consider that you need a 5th
+colourname/value pair in your Colours statements!
+.PP
+Due to some discussion on this list, I have implemented two
+tokens too:
+.PP
+\&\*(L"kilo\*(R" and \*(L"kMG\*(R"
+.PP
+\&\*(L"kilo\*(R" should contain the value of k (1000 or 1024), where 1000 is the
+default.
+.PP
+\&\*(L"kMG\*(R" is a comma separated list of multiplier prefixes, used
+instead of "\*(L", \*(R"k\*(L", \*(R"M\*(L", \*(R"G\*(L", \*(R"T" on the \s-1MRTG\s0 display. Leave the
+place free, if you want no prefix.
+.PP
+Also an incomplete list of OIDs for the new \s-1SQUID\s0 release is
+added.
+.PP
+You may need to turn on snmp_port in squid.conf to as it is disabled by default.
+.PP
+I hope you enjoy it.
+.SH "CONFIG EXAMPLE"
+.IX Header "CONFIG EXAMPLE"
+First load the squid mib
+.PP
+.Vb 1
+\& LoadMIBs: /usr/share/squid/mib.txt
+.Ve
+.PP
+You can measure responsetimes in ms and display it with \s-1MRTG\s0
+correctly with:
+.PP
+.Vb 2
+\& kMG[measure\-ms]: m,,k,M,G,T
+\& short[measure\-ms]: s
+.Ve
+.PP
+You can display now MB/s as 1024*1024 B/s with:
+.PP
+.Vb 1
+\& kilo[volume]: 1024
+.Ve
+.PP
+Assuming you're not running squid's \s-1SNMP\s0 on the default snmp port, you need
+to include a port number in your target line:
+.PP
+.Vb 1
+\& Target[proxy\-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@localhost:3401
+.Ve
+.PP
+A sample config for squid:
+.PP
+.Vb 11
+\& Target[proxy\-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@proxy
+\& Title[proxy\-hit]: HTTP Hits
+\& PageTop[proxy\-hit]: <H2>proxy Cache Statistics: HTTP Hits / Requests</H2>
+\& Suppress[proxy\-hit]: y
+\& LegendI[proxy\-hit]: HTTP hits
+\& LegendO[proxy\-hit]: HTTP requests
+\& Legend1[proxy\-hit]: HTTP hits
+\& Legend2[proxy\-hit]: HTTP requests
+\& YLegend[proxy\-hit]: perminute
+\& ShortLegend[proxy\-hit]: req/min
+\& Options[proxy\-hit]: nopercent, perminute, dorelpercent
+\&
+\& Target[proxy\-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@proxy
+\& Title[proxy\-srvkbinout]: Cache Server Traffic In / Out
+\& PageTop[proxy\-srvkbinout]: <H2>Cache Statistics: Server traffic volume (In/Out) </H2>
+\& Suppress[proxy\-srvkbinout]: y
+\& LegendI[proxy\-srvkbinout]: Traffic In
+\& LegendO[proxy\-srvkbinout]: Traffic Out
+\& Legend1[proxy\-srvkbinout]: Traffic In
+\& Legend2[proxy\-srvkbinout]: Traffic Out
+\& YLegend[proxy\-srvkbinout]: per minute
+\& ShortLegend[proxy\-srvkbinout]: b/min
+\& kMG[proxy\-srvkbinout]: k,M,G,T
+\& kilo[proxy\-srvkbinout]: 1024
+\& Options[proxy\-srvkbinout]: nopercent, perminute
+.Ve
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Andreas Papst <andreas.papst@univie.ac.at>
+Dirk-LXder Kreie <deelkar@gmx.de>
+Chris Chiappa <chris+debian@chiappa.net>
diff --git a/doc/mrtg-squid.pod b/doc/mrtg-squid.pod
new file mode 100644
index 0000000..1989822
--- /dev/null
+++ b/doc/mrtg-squid.pod
@@ -0,0 +1,108 @@
+=encoding utf8
+=head1 NAME
+
+mrtg-squid - using mrtg to monitor Squid
+
+=head1 DESCRIPTION
+
+Squid 2.3 knows SNMP and you can therefore use mrtg to
+monitor it quite easily.
+
+I have made some modifications to mrtg which simplify this.
+My work is based on earlier modification made by:
+matija.grabnar@arnes.si and kostas@nlanr.net.
+
+=head1 MODIFICATIONS
+
+I added new code for displaying correct units to the
+previous patches "perminute" and "perhour" ("option" tokens),
+which allows other measurement in addition to "persecond".
+
+Then I created a new option token "dorelpercent" which
+allows the calculation of the percentage of IN-stream / OUT-stream on
+the fly and then displays it on a fixed scale from 0% to 100%. For my
+requirements, this does good work. Maybe someone wants a floating
+scale. It should not be a problem to implement it, too (but
+give me an option to keep my fixed scale). If IN-stream is always
+less than OUT-stream both lines (OUT-stream and relative percent)
+are always displayed on top of IN-stream bulk. Otherwise this
+option makes no sense. With this option you can display hitrates,
+errorrates (for router monitoring: rel. droprates) easily now.
+
+If you use this options please consider that you need a 5th
+colourname/value pair in your Colours statements!
+
+Due to some discussion on this list, I have implemented two
+tokens too:
+
+"kilo" and "kMG"
+
+"kilo" should contain the value of k (1000 or 1024), where 1000 is the
+default.
+
+"kMG" is a comma separated list of multiplier prefixes, used
+instead of "", "k", "M", "G", "T" on the MRTG display. Leave the
+place free, if you want no prefix.
+
+Also an incomplete list of OIDs for the new SQUID release is
+added.
+
+You may need to turn on snmp_port in squid.conf to as it is disabled by default.
+
+I hope you enjoy it.
+
+=head1 CONFIG EXAMPLE
+
+First load the squid mib
+
+ LoadMIBs: /usr/share/squid/mib.txt
+
+You can measure responsetimes in ms and display it with MRTG
+correctly with:
+
+ kMG[measure-ms]: m,,k,M,G,T
+ short[measure-ms]: s
+
+You can display now MB/s as 1024*1024 B/s with:
+
+ kilo[volume]: 1024
+
+Assuming you're not running squid's SNMP on the default snmp port, you need
+to include a port number in your target line:
+
+ Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@localhost:3401
+
+
+A sample config for squid:
+
+ Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@proxy
+ Title[proxy-hit]: HTTP Hits
+ PageTop[proxy-hit]: <H2>proxy Cache Statistics: HTTP Hits / Requests</H2>
+ Suppress[proxy-hit]: y
+ LegendI[proxy-hit]: HTTP hits
+ LegendO[proxy-hit]: HTTP requests
+ Legend1[proxy-hit]: HTTP hits
+ Legend2[proxy-hit]: HTTP requests
+ YLegend[proxy-hit]: perminute
+ ShortLegend[proxy-hit]: req/min
+ Options[proxy-hit]: nopercent, perminute, dorelpercent
+
+ Target[proxy-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@proxy
+ Title[proxy-srvkbinout]: Cache Server Traffic In / Out
+ PageTop[proxy-srvkbinout]: <H2>Cache Statistics: Server traffic volume (In/Out) </H2>
+ Suppress[proxy-srvkbinout]: y
+ LegendI[proxy-srvkbinout]: Traffic In
+ LegendO[proxy-srvkbinout]: Traffic Out
+ Legend1[proxy-srvkbinout]: Traffic In
+ Legend2[proxy-srvkbinout]: Traffic Out
+ YLegend[proxy-srvkbinout]: per minute
+ ShortLegend[proxy-srvkbinout]: b/min
+ kMG[proxy-srvkbinout]: k,M,G,T
+ kilo[proxy-srvkbinout]: 1024
+ Options[proxy-srvkbinout]: nopercent, perminute
+
+=head1 AUTHOR
+
+Andreas Papst E<lt>andreas.papst@univie.ac.atE<gt>
+Dirk-Lüder Kreie E<lt>deelkar@gmx.deE<gt>
+Chris Chiappa E<lt>chris+debian@chiappa.netE<gt>
diff --git a/doc/mrtg-squid.txt b/doc/mrtg-squid.txt
new file mode 100644
index 0000000..567fa63
--- /dev/null
+++ b/doc/mrtg-squid.txt
@@ -0,0 +1,106 @@
+MRTG-SQUID(1) mrtg MRTG-SQUID(1)
+
+
+
+mrtg-squid - using mrtg to monitor Squid
+
+DDEESSCCRRIIPPTTIIOONN
+ Squid 2.3 knows SNMP and you can therefore use mrtg to monitor it quite
+ easily.
+
+ I have made some modifications to mrtg which simplify this. My work is
+ based on earlier modification made by: matija.grabnar@arnes.si and
+ kostas@nlanr.net.
+
+MMOODDIIFFIICCAATTIIOONNSS
+ I added new code for displaying correct units to the previous patches
+ "perminute" and "perhour" ("option" tokens), which allows other
+ measurement in addition to "persecond".
+
+ Then I created a new option token "dorelpercent" which allows the
+ calculation of the percentage of IN-stream / OUT-stream on the fly and
+ then displays it on a fixed scale from 0% to 100%. For my requirements,
+ this does good work. Maybe someone wants a floating scale. It should
+ not be a problem to implement it, too (but give me an option to keep my
+ fixed scale). If IN-stream is always less than OUT-stream both lines
+ (OUT-stream and relative percent) are always displayed on top of IN-
+ stream bulk. Otherwise this option makes no sense. With this option you
+ can display hitrates, errorrates (for router monitoring: rel.
+ droprates) easily now.
+
+ If you use this options please consider that you need a 5th
+ colourname/value pair in your Colours statements!
+
+ Due to some discussion on this list, I have implemented two tokens too:
+
+ "kilo" and "kMG"
+
+ "kilo" should contain the value of k (1000 or 1024), where 1000 is the
+ default.
+
+ "kMG" is a comma separated list of multiplier prefixes, used instead of
+ "", "k", "M", "G", "T" on the MRTG display. Leave the place free, if
+ you want no prefix.
+
+ Also an incomplete list of OIDs for the new SQUID release is added.
+
+ You may need to turn on snmp_port in squid.conf to as it is disabled by
+ default.
+
+ I hope you enjoy it.
+
+CCOONNFFIIGG EEXXAAMMPPLLEE
+ First load the squid mib
+
+ LoadMIBs: /usr/share/squid/mib.txt
+
+ You can measure responsetimes in ms and display it with MRTG correctly
+ with:
+
+ kMG[measure-ms]: m,,k,M,G,T
+ short[measure-ms]: s
+
+ You can display now MB/s as 1024*1024 B/s with:
+
+ kilo[volume]: 1024
+
+ Assuming you're not running squid's SNMP on the default snmp port, you
+ need to include a port number in your target line:
+
+ Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@localhost:3401
+
+ A sample config for squid:
+
+ Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@proxy
+ Title[proxy-hit]: HTTP Hits
+ PageTop[proxy-hit]: <H2>proxy Cache Statistics: HTTP Hits / Requests</H2>
+ Suppress[proxy-hit]: y
+ LegendI[proxy-hit]: HTTP hits
+ LegendO[proxy-hit]: HTTP requests
+ Legend1[proxy-hit]: HTTP hits
+ Legend2[proxy-hit]: HTTP requests
+ YLegend[proxy-hit]: perminute
+ ShortLegend[proxy-hit]: req/min
+ Options[proxy-hit]: nopercent, perminute, dorelpercent
+
+ Target[proxy-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@proxy
+ Title[proxy-srvkbinout]: Cache Server Traffic In / Out
+ PageTop[proxy-srvkbinout]: <H2>Cache Statistics: Server traffic volume (In/Out) </H2>
+ Suppress[proxy-srvkbinout]: y
+ LegendI[proxy-srvkbinout]: Traffic In
+ LegendO[proxy-srvkbinout]: Traffic Out
+ Legend1[proxy-srvkbinout]: Traffic In
+ Legend2[proxy-srvkbinout]: Traffic Out
+ YLegend[proxy-srvkbinout]: per minute
+ ShortLegend[proxy-srvkbinout]: b/min
+ kMG[proxy-srvkbinout]: k,M,G,T
+ kilo[proxy-srvkbinout]: 1024
+ Options[proxy-srvkbinout]: nopercent, perminute
+
+AAUUTTHHOORR
+ Andreas Papst <andreas.papst@univie.ac.at> Dirk-LXder Kreie
+ <deelkar@gmx.de> Chris Chiappa <chris+debian@chiappa.net>
+
+
+
+2.17.7 2018-07-13 MRTG-SQUID(1)
diff --git a/doc/mrtg-ti.png b/doc/mrtg-ti.png
new file mode 100644
index 0000000..0031314
--- /dev/null
+++ b/doc/mrtg-ti.png
Binary files differ
diff --git a/doc/mrtg-unix-guide.1 b/doc/mrtg-unix-guide.1
new file mode 100644
index 0000000..b08e997
--- /dev/null
+++ b/doc/mrtg-unix-guide.1
@@ -0,0 +1,452 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-UNIX-GUIDE 1"
+.TH MRTG-UNIX-GUIDE 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-unix\-guide \- The MRTG 2.17.7 Linux/Unix Installation Guide
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+\&\s-1MRTG\s0 comes to you in Source Code. This means that you have to compile
+parts of it before you can use it on a Unix machine. These instructions
+help you to do so.
+.SH "PREPARATION"
+.IX Header "PREPARATION"
+In order to compile and use mrtg you need a C compiler and a copy of perl
+installed on your machine. In most cases this will already be available.
+In case it is not, here are some starting points. Below I'll give you
+a detailed run through the whole compilation process.
+.IP "\s-1GCC\s0" 4
+.IX Item "GCC"
+The \s-1GNU C\s0 compiler comes preinstalled on most of the free Unicies out
+there. For commercial derivatives you may have to download and compile
+it first. If you have no compiler at all there is a chicken and egg
+problem, but there are also precompiled versions of gcc available for
+most operating systems.
+.Sp
+.Vb 1
+\& http://gcc.gnu.org/
+.Ve
+.IP "Perl" 4
+.IX Item "Perl"
+Large parts of the \s-1MRTG\s0 system are written in the Perl scripting language.
+Make sure there is a recent copy of perl on your machine (try perl \-v). At
+least version 5.005 is required for mrtg to work well. If you use \s-1SNMPV3\s0 and
+other new features you should use at least 5.8.
+.Sp
+You can get the latest perl from
+.Sp
+.Vb 1
+\& http://www.perl.com/
+.Ve
+.PP
+\&\s-1MRTG\s0 generates traffic graphs in the \s-1PNG\s0 format. To be able to do this it
+needs several 3rd party libraries. When compiling these libraries I urge you
+to make sure you compile them as \fBstatic\fR libraries. There is just much
+less trouble ahead if you are doing it like this. See the Instructions in
+the next section for inspiration. Note that many free unices have all
+the required libraries already in place so there is no need to install
+another copy. To check it is best to skip all the library instructions below
+and go straight into the mrtg compile.
+.PP
+If the first attempt fails and you do not get a working version of mrtg,
+try compiling new copies of all libraries as explained below. Do this
+\&\fB\s-1BEFORE\s0\fR you send email to me about problems compiling mrtg.
+.IP "gd" 4
+.IX Item "gd"
+This is a basic graph drawing library created by Thomas Boutell.
+Note that all releases after Version 1.3 only create
+\&\s-1PNG\s0 images. This is because a) Thomas got into trouble because the \s-1GIF\s0
+format which it used to produce uses a compression technology patented
+by Unisys. b) \s-1PNG\s0 is more efficient and patent free. \s-1MRTG\s0 can work
+with old and new version of the \s-1GD\s0 library. You can get a recent copy
+of \s-1GD\s0 from:
+.Sp
+.Vb 1
+\& http://www.boutell.com/gd/
+.Ve
+.IP "libpng" 4
+.IX Item "libpng"
+Is required by gd in order to produce \s-1PNG\s0 graphics files. Get it from:
+.Sp
+.Vb 1
+\& http://www.libpng.org/pub/png/libpng.html
+.Ve
+.IP "zlib" 4
+.IX Item "zlib"
+Is needed by libpng to compress the graphics files you create.
+Get a copy from
+.Sp
+.Vb 1
+\& http://www.gzip.org/zlib
+.Ve
+.PP
+And last but not least you also need mrtg itself. In case you have not
+yet downloaded it, you can find a copy on my website:
+.PP
+.Vb 1
+\& http://oss.oetiker.ch/mrtg/pub
+.Ve
+.SH "LIBRARY COMPILATION"
+.IX Header "LIBRARY COMPILATION"
+In this section I will give you step by step instructions on how to compile
+the various libraries required for the compilation of mrtg. Note that these
+libraries may already be installed if you have a \fI*BSD\fR or \fILinux\fR system
+so you can skip recompiling them. The \fBwget\fR program used below is a
+simple web downloader. You can also enter the address into your \fBnetscape\fR
+if you don't have \fBwget\fR available.
+.PP
+First let's create a directory for the compilation. Note that this may
+already exist on your system. No problem, just use it.
+.PP
+.Vb 2
+\& mkdir \-p /usr/local/src
+\& cd /usr/local/src
+.Ve
+.PP
+If you do not have zlib installed:
+.PP
+.Vb 8
+\& wget http://www.zlib.net/zlib\-1.2.3.tar.gz
+\& gunzip \-c zlib\-*.tar.gz | tar xf \-
+\& rm zlib\-*.tar.gz
+\& mv zlib\-* zlib
+\& cd zlib
+\& ./configure
+\& make
+\& cd ..
+.Ve
+.PP
+If you don't have libpng installed
+.PP
+.Vb 8
+\& wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng\-1.2.40.tar.gz
+\& gunzip \-c libpng\-1.2.34.tar.gz | tar xf \-
+\& mv libpng\-* libpng
+\& cd libpng
+\& env CFLAGS="\-O3 \-fPIC" ./configure \-\-prefix=$INSTALL_DIR
+\& make
+\& rm *.so.* *.so
+\& cd ..
+.Ve
+.PP
+And now you can compile gd
+.PP
+For versions up to 1.8.4, try:
+.PP
+.Vb 5
+\& wget http://www.boutell.com/gd/http/gd\-1.8.4.tar.gz
+\& gunzip \-c gd\-*.tar.gz |tar xf \-
+\& rm gd\-*.tar.gz
+\& mv gd\-* gd
+\& cd gd
+.Ve
+.PP
+The \e characters at the end of the following lines mean that all the
+following material should actually be written on a single line.
+.PP
+.Vb 6
+\& perl \-i~ \-p \-e s/gd_jpeg.o//g Makefile
+\& make INCLUDEDIRS="\-I. \-I../zlib \-I../libpng" \e
+\& LIBDIRS="\-L../zlib \-L. \-L../libpng" \e
+\& LIBS="\-lgd \-lpng \-lz \-lm" \e
+\& CFLAGS="\-O \-DHAVE_LIBPNG"
+\& cd ..
+.Ve
+.PP
+For versions starting around 2.0.11, try:
+.PP
+.Vb 8
+\& wget http://www.boutell.com/gd/http/gd\-2.0.33.tar.gz
+\& gunzip \-c gd\-2.0.33.tar.gz |tar xf \-
+\& mv gd\-2.0.33 gd
+\& cd gd
+\& env CPPFLAGS="\-I../zlib \-I../libpng" LDFLAGS="\-L../zlib \-L../libpng" \e
+\& ./configure \-\-disable\-shared \-\-without\-freetype \-\-without\-jpeg
+\& make
+\& cp .libs/* .
+.Ve
+.SH "MRTG COMPILATION"
+.IX Header "MRTG COMPILATION"
+Ok, now everything is ready for the mrtg compilation.
+.PP
+.Vb 3
+\& cd /usr/local/src
+\& gunzip \-c mrtg\-2.17.7.tar.gz | tar xvf \-
+\& cd mrtg\-2.17.7
+.Ve
+.PP
+If all the libraries have been preinstalled on your system you can
+configure mrtg by doing a simple:
+.PP
+.Vb 1
+\& ./configure \-\-prefix=/usr/local/mrtg\-2
+.Ve
+.PP
+Otherwise you may have to give some hints on where to find the
+various libraries required to compile mrtg:
+.PP
+.Vb 4
+\& ./configure \-\-prefix=/usr/local/mrtg\-2 \e
+\& \-\-with\-gd=/usr/local/src/gd \e
+\& \-\-with\-z=/usr/local/src/zlib \e
+\& \-\-with\-png=/usr/local/src/libpng
+.Ve
+.PP
+If you have RRDtool available you might want to tell mrtg about it
+so that you can opt to use rrdtool with mrtg. Check mrtg-rrd.
+.PP
+Configure will make sure your environment is fit for building mrtg.
+If it finds a problem, it will tell you so and it will also tell
+you what to do about it. If everything is \s-1OK,\s0 you will end up with
+a custom Makefile for your system. Now type:
+.PP
+.Vb 1
+\& make
+.Ve
+.PP
+This builds the rateup binary and edits all the perl pathnames in
+the scripts. You can now install mrtg by typing
+.PP
+.Vb 1
+\& make install (requires gnu install)
+.Ve
+.PP
+All the software required by \s-1MRTG\s0 is now installed under
+the \fI/usr/local/mrtg\-2\fR subdirectory.
+.PP
+You can now safely delete the libraries we compiled above. Then
+again, you might want to keep them around so that you have them
+available when compiling the next version of mrtg.
+.SH "CONFIGURATION"
+.IX Header "CONFIGURATION"
+The next step is to configure mrtg for monitoring a network
+device. This is done by creating an \fImrtg.cfg\fR file which defines
+what you want to monitor. Luckily, you don't have to dive straight in
+and start writing your own configuration file all by
+yourself. Together with mrtg you also got a copy of \fBcfgmaker\fR. This
+is a script you can point at a router of your choice; it will
+create a mrtg configuration file for you. You can find the script in
+the \fIbin\fR subdirectory.
+.PP
+.Vb 4
+\& cfgmaker \-\-global \*(AqWorkDir: /home/httpd/mrtg\*(Aq \e
+\& \-\-global \*(AqOptions[_]: bits,growright\*(Aq \e
+\& \-\-output /home/mrtg/cfg/mrtg.cfg \e
+\& community@router.abc.xyz
+.Ve
+.PP
+This example above will create an mrtg config file in
+\&\fI/home/mrtg/cfg\fR assuming this is a directory visible on your
+webserver. You can read all about cfgmaker in cfgmaker. One area you might
+want to look at is the possibility of using \fB\-\-ifref=ip\fR to prevent
+interface renumbering troubles from catching you.
+.PP
+If you want to start rolling your own mrtg configuration files, make sure
+you read mrtg-reference to learn all about the possible configuration options.
+.SH "RUNNING MRTG"
+.IX Header "RUNNING MRTG"
+Once you have created a configuration file, try the following:
+.PP
+.Vb 1
+\& /usr/local/mrtg\-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
+.Ve
+.PP
+This will query your router and also create your first mrtg trafic
+graphs and webpages. When you run mrtg for the first time there will
+be a lot of complaints about missing log files. Don't worry, this is
+normal for the first 2 times you start mrtg. If it keeps complaining
+after this time you might want to look into the problem.
+.PP
+Starting mrtg by hand is not ideal in the long run. So when you are
+satisfied with the results you can automate the process of running mrtg in
+regular intervals (this means every 5 minutes by default).
+.PP
+You can either add mrtg to your crontab with a line like this:
+.PP
+.Vb 3
+\& 0,5,10,15,20,25,30,35,40,45,50,55 * * * * \e
+\& <mrtg\-bin>/mrtg <path to mrtg\-cfg>/mrtg.cfg \e
+\& \-\-logging /var/log/mrtg.log
+.Ve
+.PP
+or if you live in Linux Land the line may look like this if you are
+using \f(CW\*(C`crontab \-e\*(C'\fR
+.PP
+.Vb 2
+\& */5 * * * * <mrtg\-bin>/mrtg <path to mrtg\-cfg>/mrtg.cfg \e
+\& \-\-logging /var/log/mrtg.log
+.Ve
+.PP
+or like this if you use \fI/etc/crontab\fR
+.PP
+.Vb 2
+\& */5 * * * * mrtg\-user <mrtg\-bin>/mrtg <path to mrtg\-cfg>/mrtg.cfg \e
+\& \-\-logging /var/log/mrtg.log
+.Ve
+.PP
+You can also run mrtg as a daemon process by adding the line
+.PP
+.Vb 1
+\& RunAsDaemon: Yes
+.Ve
+.PP
+to your mrtg configuration file and then creating a startup script in
+your system startup sequence. Unfortunately, adding startup scripts
+differs widely amongst different unix systems. The modern ones normally
+have a directory called \fI/etc/init.d\fR or \fI/etc/rc.d/init.d\fR where you
+put scripts which starts the process you want to run when the system
+boots. Further you must create a symbolic link in \fI/etc/rc3.d\fR or
+\&\fI/etc/rc.d/rc?.d\fR called \fIS65mrtg\fR (this is just a sample name
+\&... it is just important that it starts with S followed by a two digit
+number). If you are not sure about this, make sure you consult the
+documentation of your system to make sure you get this right.
+.PP
+A \fBminimal\fR script to put into \fIinit.d\fR might look like this:
+.PP
+.Vb 3
+\& #! /bin/sh
+\& cd /usr/local/mrtg\-2.17.7/bin && ./mrtg \-\-user=mrtg\-user \e
+\& /home/httpd/mrtg/mrtg.cfg \-\-logging /var/log/mrtg.log
+.Ve
+.PP
+Note that this will only work with \fBRunAsDaemon: Yes\fR in your
+mrtg.cfg file.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch>
diff --git a/doc/mrtg-unix-guide.pod b/doc/mrtg-unix-guide.pod
new file mode 100644
index 0000000..44fc6c0
--- /dev/null
+++ b/doc/mrtg-unix-guide.pod
@@ -0,0 +1,287 @@
+=head1 NAME
+
+mrtg-unix-guide - The MRTG 2.17.7 Linux/Unix Installation Guide
+
+=head1 DESCRIPTION
+
+MRTG comes to you in Source Code. This means that you have to compile
+parts of it before you can use it on a Unix machine. These instructions
+help you to do so.
+
+=head1 PREPARATION
+
+In order to compile and use mrtg you need a C compiler and a copy of perl
+installed on your machine. In most cases this will already be available.
+In case it is not, here are some starting points. Below I'll give you
+a detailed run through the whole compilation process.
+
+=over
+
+=item GCC
+
+The GNU C compiler comes preinstalled on most of the free Unicies out
+there. For commercial derivatives you may have to download and compile
+it first. If you have no compiler at all there is a chicken and egg
+problem, but there are also precompiled versions of gcc available for
+most operating systems.
+
+ http://gcc.gnu.org/
+
+=item Perl
+
+Large parts of the MRTG system are written in the Perl scripting language.
+Make sure there is a recent copy of perl on your machine (try perl -v). At
+least version 5.005 is required for mrtg to work well. If you use SNMPV3 and
+other new features you should use at least 5.8.
+
+You can get the latest perl from
+
+ http://www.perl.com/
+
+=back
+
+MRTG generates traffic graphs in the PNG format. To be able to do this it
+needs several 3rd party libraries. When compiling these libraries I urge you
+to make sure you compile them as B<static> libraries. There is just much
+less trouble ahead if you are doing it like this. See the Instructions in
+the next section for inspiration. Note that many free unices have all
+the required libraries already in place so there is no need to install
+another copy. To check it is best to skip all the library instructions below
+and go straight into the mrtg compile.
+
+If the first attempt fails and you do not get a working version of mrtg,
+try compiling new copies of all libraries as explained below. Do this
+B<BEFORE> you send email to me about problems compiling mrtg.
+
+=over
+
+=item gd
+
+This is a basic graph drawing library created by Thomas Boutell.
+Note that all releases after Version 1.3 only create
+PNG images. This is because a) Thomas got into trouble because the GIF
+format which it used to produce uses a compression technology patented
+by Unisys. b) PNG is more efficient and patent free. MRTG can work
+with old and new version of the GD library. You can get a recent copy
+of GD from:
+
+ http://www.boutell.com/gd/
+
+=item libpng
+
+Is required by gd in order to produce PNG graphics files. Get it from:
+
+ http://www.libpng.org/pub/png/libpng.html
+
+=item zlib
+
+Is needed by libpng to compress the graphics files you create.
+Get a copy from
+
+ http://www.gzip.org/zlib
+
+=back
+
+And last but not least you also need mrtg itself. In case you have not
+yet downloaded it, you can find a copy on my website:
+
+ http://oss.oetiker.ch/mrtg/pub
+
+=head1 LIBRARY COMPILATION
+
+In this section I will give you step by step instructions on how to compile
+the various libraries required for the compilation of mrtg. Note that these
+libraries may already be installed if you have a I<*BSD> or I<Linux> system
+so you can skip recompiling them. The B<wget> program used below is a
+simple web downloader. You can also enter the address into your B<netscape>
+if you don't have B<wget> available.
+
+First let's create a directory for the compilation. Note that this may
+already exist on your system. No problem, just use it.
+
+ mkdir -p /usr/local/src
+ cd /usr/local/src
+
+If you do not have zlib installed:
+
+ wget http://www.zlib.net/zlib-1.2.3.tar.gz
+ gunzip -c zlib-*.tar.gz | tar xf -
+ rm zlib-*.tar.gz
+ mv zlib-* zlib
+ cd zlib
+ ./configure
+ make
+ cd ..
+
+If you don't have libpng installed
+
+ wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.40.tar.gz
+ gunzip -c libpng-1.2.34.tar.gz | tar xf -
+ mv libpng-* libpng
+ cd libpng
+ env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
+ make
+ rm *.so.* *.so
+ cd ..
+
+And now you can compile gd
+
+For versions up to 1.8.4, try:
+
+ wget http://www.boutell.com/gd/http/gd-1.8.4.tar.gz
+ gunzip -c gd-*.tar.gz |tar xf -
+ rm gd-*.tar.gz
+ mv gd-* gd
+ cd gd
+
+The \ characters at the end of the following lines mean that all the
+following material should actually be written on a single line.
+
+ perl -i~ -p -e s/gd_jpeg.o//g Makefile
+ make INCLUDEDIRS="-I. -I../zlib -I../libpng" \
+ LIBDIRS="-L../zlib -L. -L../libpng" \
+ LIBS="-lgd -lpng -lz -lm" \
+ CFLAGS="-O -DHAVE_LIBPNG"
+ cd ..
+
+For versions starting around 2.0.11, try:
+
+ wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
+ gunzip -c gd-2.0.33.tar.gz |tar xf -
+ mv gd-2.0.33 gd
+ cd gd
+ env CPPFLAGS="-I../zlib -I../libpng" LDFLAGS="-L../zlib -L../libpng" \
+ ./configure --disable-shared --without-freetype --without-jpeg
+ make
+ cp .libs/* .
+
+=head1 MRTG COMPILATION
+
+Ok, now everything is ready for the mrtg compilation.
+
+ cd /usr/local/src
+ gunzip -c mrtg-2.17.7.tar.gz | tar xvf -
+ cd mrtg-2.17.7
+
+If all the libraries have been preinstalled on your system you can
+configure mrtg by doing a simple:
+
+ ./configure --prefix=/usr/local/mrtg-2
+
+Otherwise you may have to give some hints on where to find the
+various libraries required to compile mrtg:
+
+ ./configure --prefix=/usr/local/mrtg-2 \
+ --with-gd=/usr/local/src/gd \
+ --with-z=/usr/local/src/zlib \
+ --with-png=/usr/local/src/libpng
+
+If you have RRDtool available you might want to tell mrtg about it
+so that you can opt to use rrdtool with mrtg. Check L<mrtg-rrd>.
+
+Configure will make sure your environment is fit for building mrtg.
+If it finds a problem, it will tell you so and it will also tell
+you what to do about it. If everything is OK, you will end up with
+a custom Makefile for your system. Now type:
+
+ make
+
+This builds the rateup binary and edits all the perl pathnames in
+the scripts. You can now install mrtg by typing
+
+ make install (requires gnu install)
+
+All the software required by MRTG is now installed under
+the F</usr/local/mrtg-2> subdirectory.
+
+You can now safely delete the libraries we compiled above. Then
+again, you might want to keep them around so that you have them
+available when compiling the next version of mrtg.
+
+=head1 CONFIGURATION
+
+The next step is to configure mrtg for monitoring a network
+device. This is done by creating an F<mrtg.cfg> file which defines
+what you want to monitor. Luckily, you don't have to dive straight in
+and start writing your own configuration file all by
+yourself. Together with mrtg you also got a copy of B<cfgmaker>. This
+is a script you can point at a router of your choice; it will
+create a mrtg configuration file for you. You can find the script in
+the F<bin> subdirectory.
+
+ cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
+ --global 'Options[_]: bits,growright' \
+ --output /home/mrtg/cfg/mrtg.cfg \
+ community@router.abc.xyz
+
+This example above will create an mrtg config file in
+F</home/mrtg/cfg> assuming this is a directory visible on your
+webserver. You can read all about cfgmaker in L<cfgmaker>. One area you might
+want to look at is the possibility of using B<--ifref=ip> to prevent
+interface renumbering troubles from catching you.
+
+If you want to start rolling your own mrtg configuration files, make sure
+you read L<mrtg-reference> to learn all about the possible configuration options.
+
+=head1 RUNNING MRTG
+
+Once you have created a configuration file, try the following:
+
+ /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
+
+This will query your router and also create your first mrtg trafic
+graphs and webpages. When you run mrtg for the first time there will
+be a lot of complaints about missing log files. Don't worry, this is
+normal for the first 2 times you start mrtg. If it keeps complaining
+after this time you might want to look into the problem.
+
+Starting mrtg by hand is not ideal in the long run. So when you are
+satisfied with the results you can automate the process of running mrtg in
+regular intervals (this means every 5 minutes by default).
+
+You can either add mrtg to your crontab with a line like this:
+
+ 0,5,10,15,20,25,30,35,40,45,50,55 * * * * \
+ <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+or if you live in Linux Land the line may look like this if you are
+using C<crontab -e>
+
+ */5 * * * * <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+or like this if you use F</etc/crontab>
+
+ */5 * * * * mrtg-user <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+You can also run mrtg as a daemon process by adding the line
+
+ RunAsDaemon: Yes
+
+to your mrtg configuration file and then creating a startup script in
+your system startup sequence. Unfortunately, adding startup scripts
+differs widely amongst different unix systems. The modern ones normally
+have a directory called F</etc/init.d> or F</etc/rc.d/init.d> where you
+put scripts which starts the process you want to run when the system
+boots. Further you must create a symbolic link in F</etc/rc3.d> or
+F</etc/rc.d/rc?.d> called F<S65mrtg> (this is just a sample name
+... it is just important that it starts with S followed by a two digit
+number). If you are not sure about this, make sure you consult the
+documentation of your system to make sure you get this right.
+
+A B<minimal> script to put into F<init.d> might look like this:
+
+ #! /bin/sh
+ cd /usr/local/mrtg-2.17.7/bin && ./mrtg --user=mrtg-user \
+ /home/httpd/mrtg/mrtg.cfg --logging /var/log/mrtg.log
+
+
+Note that this will only work with B<RunAsDaemon: Yes> in your
+mrtg.cfg file.
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt>
+
diff --git a/doc/mrtg-unix-guide.txt b/doc/mrtg-unix-guide.txt
new file mode 100644
index 0000000..709dfa0
--- /dev/null
+++ b/doc/mrtg-unix-guide.txt
@@ -0,0 +1,272 @@
+MRTG-UNIX-GUIDE(1) mrtg MRTG-UNIX-GUIDE(1)
+
+
+
+NNAAMMEE
+ mrtg-unix-guide - The MRTG 2.17.7 Linux/Unix Installation Guide
+
+DDEESSCCRRIIPPTTIIOONN
+ MRTG comes to you in Source Code. This means that you have to compile
+ parts of it before you can use it on a Unix machine. These instructions
+ help you to do so.
+
+PPRREEPPAARRAATTIIOONN
+ In order to compile and use mrtg you need a C compiler and a copy of
+ perl installed on your machine. In most cases this will already be
+ available. In case it is not, here are some starting points. Below
+ I'll give you a detailed run through the whole compilation process.
+
+ GCC The GNU C compiler comes preinstalled on most of the free Unicies
+ out there. For commercial derivatives you may have to download and
+ compile it first. If you have no compiler at all there is a chicken
+ and egg problem, but there are also precompiled versions of gcc
+ available for most operating systems.
+
+ http://gcc.gnu.org/
+
+ Perl
+ Large parts of the MRTG system are written in the Perl scripting
+ language. Make sure there is a recent copy of perl on your machine
+ (try perl -v). At least version 5.005 is required for mrtg to work
+ well. If you use SNMPV3 and other new features you should use at
+ least 5.8.
+
+ You can get the latest perl from
+
+ http://www.perl.com/
+
+ MRTG generates traffic graphs in the PNG format. To be able to do this
+ it needs several 3rd party libraries. When compiling these libraries I
+ urge you to make sure you compile them as ssttaattiicc libraries. There is
+ just much less trouble ahead if you are doing it like this. See the
+ Instructions in the next section for inspiration. Note that many free
+ unices have all the required libraries already in place so there is no
+ need to install another copy. To check it is best to skip all the
+ library instructions below and go straight into the mrtg compile.
+
+ If the first attempt fails and you do not get a working version of
+ mrtg, try compiling new copies of all libraries as explained below. Do
+ this BBEEFFOORREE you send email to me about problems compiling mrtg.
+
+ gd This is a basic graph drawing library created by Thomas Boutell.
+ Note that all releases after Version 1.3 only create PNG images.
+ This is because a) Thomas got into trouble because the GIF format
+ which it used to produce uses a compression technology patented by
+ Unisys. b) PNG is more efficient and patent free. MRTG can work
+ with old and new version of the GD library. You can get a recent
+ copy of GD from:
+
+ http://www.boutell.com/gd/
+
+ libpng
+ Is required by gd in order to produce PNG graphics files. Get it
+ from:
+
+ http://www.libpng.org/pub/png/libpng.html
+
+ zlib
+ Is needed by libpng to compress the graphics files you create. Get
+ a copy from
+
+ http://www.gzip.org/zlib
+
+ And last but not least you also need mrtg itself. In case you have not
+ yet downloaded it, you can find a copy on my website:
+
+ http://oss.oetiker.ch/mrtg/pub
+
+LLIIBBRRAARRYY CCOOMMPPIILLAATTIIOONN
+ In this section I will give you step by step instructions on how to
+ compile the various libraries required for the compilation of mrtg.
+ Note that these libraries may already be installed if you have a _*_B_S_D
+ or _L_i_n_u_x system so you can skip recompiling them. The wwggeett program used
+ below is a simple web downloader. You can also enter the address into
+ your nneettssccaappee if you don't have wwggeett available.
+
+ First let's create a directory for the compilation. Note that this may
+ already exist on your system. No problem, just use it.
+
+ mkdir -p /usr/local/src
+ cd /usr/local/src
+
+ If you do not have zlib installed:
+
+ wget http://www.zlib.net/zlib-1.2.3.tar.gz
+ gunzip -c zlib-*.tar.gz | tar xf -
+ rm zlib-*.tar.gz
+ mv zlib-* zlib
+ cd zlib
+ ./configure
+ make
+ cd ..
+
+ If you don't have libpng installed
+
+ wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.40.tar.gz
+ gunzip -c libpng-1.2.34.tar.gz | tar xf -
+ mv libpng-* libpng
+ cd libpng
+ env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
+ make
+ rm *.so.* *.so
+ cd ..
+
+ And now you can compile gd
+
+ For versions up to 1.8.4, try:
+
+ wget http://www.boutell.com/gd/http/gd-1.8.4.tar.gz
+ gunzip -c gd-*.tar.gz |tar xf -
+ rm gd-*.tar.gz
+ mv gd-* gd
+ cd gd
+
+ The \ characters at the end of the following lines mean that all the
+ following material should actually be written on a single line.
+
+ perl -i~ -p -e s/gd_jpeg.o//g Makefile
+ make INCLUDEDIRS="-I. -I../zlib -I../libpng" \
+ LIBDIRS="-L../zlib -L. -L../libpng" \
+ LIBS="-lgd -lpng -lz -lm" \
+ CFLAGS="-O -DHAVE_LIBPNG"
+ cd ..
+
+ For versions starting around 2.0.11, try:
+
+ wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
+ gunzip -c gd-2.0.33.tar.gz |tar xf -
+ mv gd-2.0.33 gd
+ cd gd
+ env CPPFLAGS="-I../zlib -I../libpng" LDFLAGS="-L../zlib -L../libpng" \
+ ./configure --disable-shared --without-freetype --without-jpeg
+ make
+ cp .libs/* .
+
+MMRRTTGG CCOOMMPPIILLAATTIIOONN
+ Ok, now everything is ready for the mrtg compilation.
+
+ cd /usr/local/src
+ gunzip -c mrtg-2.17.7.tar.gz | tar xvf -
+ cd mrtg-2.17.7
+
+ If all the libraries have been preinstalled on your system you can
+ configure mrtg by doing a simple:
+
+ ./configure --prefix=/usr/local/mrtg-2
+
+ Otherwise you may have to give some hints on where to find the various
+ libraries required to compile mrtg:
+
+ ./configure --prefix=/usr/local/mrtg-2 \
+ --with-gd=/usr/local/src/gd \
+ --with-z=/usr/local/src/zlib \
+ --with-png=/usr/local/src/libpng
+
+ If you have RRDtool available you might want to tell mrtg about it so
+ that you can opt to use rrdtool with mrtg. Check mrtg-rrd.
+
+ Configure will make sure your environment is fit for building mrtg. If
+ it finds a problem, it will tell you so and it will also tell you what
+ to do about it. If everything is OK, you will end up with a custom
+ Makefile for your system. Now type:
+
+ make
+
+ This builds the rateup binary and edits all the perl pathnames in the
+ scripts. You can now install mrtg by typing
+
+ make install (requires gnu install)
+
+ All the software required by MRTG is now installed under the
+ _/_u_s_r_/_l_o_c_a_l_/_m_r_t_g_-_2 subdirectory.
+
+ You can now safely delete the libraries we compiled above. Then again,
+ you might want to keep them around so that you have them available when
+ compiling the next version of mrtg.
+
+CCOONNFFIIGGUURRAATTIIOONN
+ The next step is to configure mrtg for monitoring a network device.
+ This is done by creating an _m_r_t_g_._c_f_g file which defines what you want
+ to monitor. Luckily, you don't have to dive straight in and start
+ writing your own configuration file all by yourself. Together with mrtg
+ you also got a copy of ccffggmmaakkeerr. This is a script you can point at a
+ router of your choice; it will create a mrtg configuration file for
+ you. You can find the script in the _b_i_n subdirectory.
+
+ cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
+ --global 'Options[_]: bits,growright' \
+ --output /home/mrtg/cfg/mrtg.cfg \
+ community@router.abc.xyz
+
+ This example above will create an mrtg config file in _/_h_o_m_e_/_m_r_t_g_/_c_f_g
+ assuming this is a directory visible on your webserver. You can read
+ all about cfgmaker in cfgmaker. One area you might want to look at is
+ the possibility of using ----iiffrreeff==iipp to prevent interface renumbering
+ troubles from catching you.
+
+ If you want to start rolling your own mrtg configuration files, make
+ sure you read mrtg-reference to learn all about the possible
+ configuration options.
+
+RRUUNNNNIINNGG MMRRTTGG
+ Once you have created a configuration file, try the following:
+
+ /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
+
+ This will query your router and also create your first mrtg trafic
+ graphs and webpages. When you run mrtg for the first time there will be
+ a lot of complaints about missing log files. Don't worry, this is
+ normal for the first 2 times you start mrtg. If it keeps complaining
+ after this time you might want to look into the problem.
+
+ Starting mrtg by hand is not ideal in the long run. So when you are
+ satisfied with the results you can automate the process of running mrtg
+ in regular intervals (this means every 5 minutes by default).
+
+ You can either add mrtg to your crontab with a line like this:
+
+ 0,5,10,15,20,25,30,35,40,45,50,55 * * * * \
+ <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+ or if you live in Linux Land the line may look like this if you are
+ using "crontab -e"
+
+ */5 * * * * <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+ or like this if you use _/_e_t_c_/_c_r_o_n_t_a_b
+
+ */5 * * * * mrtg-user <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg \
+ --logging /var/log/mrtg.log
+
+ You can also run mrtg as a daemon process by adding the line
+
+ RunAsDaemon: Yes
+
+ to your mrtg configuration file and then creating a startup script in
+ your system startup sequence. Unfortunately, adding startup scripts
+ differs widely amongst different unix systems. The modern ones normally
+ have a directory called _/_e_t_c_/_i_n_i_t_._d or _/_e_t_c_/_r_c_._d_/_i_n_i_t_._d where you put
+ scripts which starts the process you want to run when the system boots.
+ Further you must create a symbolic link in _/_e_t_c_/_r_c_3_._d or
+ _/_e_t_c_/_r_c_._d_/_r_c_?_._d called _S_6_5_m_r_t_g (this is just a sample name ... it is
+ just important that it starts with S followed by a two digit number).
+ If you are not sure about this, make sure you consult the documentation
+ of your system to make sure you get this right.
+
+ A mmiinniimmaall script to put into _i_n_i_t_._d might look like this:
+
+ #! /bin/sh
+ cd /usr/local/mrtg-2.17.7/bin && ./mrtg --user=mrtg-user \
+ /home/httpd/mrtg/mrtg.cfg --logging /var/log/mrtg.log
+
+ Note that this will only work with RRuunnAAssDDaaeemmoonn:: YYeess in your mrtg.cfg
+ file.
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch>
+
+
+
+2.17.7 2018-07-13 MRTG-UNIX-GUIDE(1)
diff --git a/doc/mrtg-webserver.1 b/doc/mrtg-webserver.1
new file mode 100644
index 0000000..532c895
--- /dev/null
+++ b/doc/mrtg-webserver.1
@@ -0,0 +1,206 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG-WEBSERVER 1"
+.TH MRTG-WEBSERVER 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg\-webserver \- hints for web server configuration
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+If you want people to actually see the results
+of your network monitoring efforts you will need
+a webserver.
+.PP
+This document lists some configuration hints for
+webservers. Contributions welcome.
+.SH "APACHE"
+.IX Header "APACHE"
+.SS "Configuring mod_expire"
+.IX Subsection "Configuring mod_expire"
+A big issue with mrtg monitoring data is the expiry time.
+All these nice graphs you can create are only valid for a short time.
+If you do not take special action some webbrowsers will not notice this
+and you may end up with people seeing old data because of caching issues.
+.PP
+The apache module mod_expire allows you to setup special
+expiry properties for individual file.
+.PP
+Here is an example for how this may look for an mrtg web directory.
+The configuration directives can be stored into a \fI.htaccess\fR file.
+.PP
+.Vb 11
+\& ############################################################
+\& # Example .htaccess for use with apache\-1.2 and mod_expire.
+\& # (mod_expire come with apache\-1.2 but you have to explicitly
+\& # activate it when compiling the httpd ...)
+\& #############################################################
+\& #
+\& <Files "*\-day.png">
+\& ExpiresActive On # enable expirations
+\& # five minutes
+\& ExpiresDefault M300
+\& </Files>
+\&
+\& <Files "*\-week.png">
+\& ExpiresActive On
+\& ExpiresDefault M1800
+\& </Files>
+\&
+\& <Files "*\-month.png">
+\& ExpiresActive On
+\& ExpiresDefault M7200
+\& </Files>
+\&
+\& <Files "*\-year.png">
+\& ExpiresActive On
+\& ExpiresDefault M86400
+\& </Files>
+\&
+\& <Files "*.html">
+\& ExpiresActive On
+\& ExpiresDefault M300
+\& </Files>
+\&
+\& # index.html is not automatically generated
+\& <Files "index.html">
+\& ExpiresActive Off
+\& </Files>
+.Ve
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Unknown
diff --git a/doc/mrtg-webserver.pod b/doc/mrtg-webserver.pod
new file mode 100644
index 0000000..5c4a547
--- /dev/null
+++ b/doc/mrtg-webserver.pod
@@ -0,0 +1,68 @@
+=head1 NAME
+
+mrtg-webserver - hints for web server configuration
+
+=head1 SYNOPSIS
+
+If you want people to actually see the results
+of your network monitoring efforts you will need
+a webserver.
+
+This document lists some configuration hints for
+webservers. Contributions welcome.
+
+=head1 APACHE
+
+=head2 Configuring mod_expire
+
+A big issue with mrtg monitoring data is the expiry time.
+All these nice graphs you can create are only valid for a short time.
+If you do not take special action some webbrowsers will not notice this
+and you may end up with people seeing old data because of caching issues.
+
+The apache module mod_expire allows you to setup special
+expiry properties for individual file.
+
+Here is an example for how this may look for an mrtg web directory.
+The configuration directives can be stored into a F<.htaccess> file.
+
+ ############################################################
+ # Example .htaccess for use with apache-1.2 and mod_expire.
+ # (mod_expire come with apache-1.2 but you have to explicitly
+ # activate it when compiling the httpd ...)
+ #############################################################
+ #
+ <Files "*-day.png">
+ ExpiresActive On # enable expirations
+ # five minutes
+ ExpiresDefault M300
+ </Files>
+
+ <Files "*-week.png">
+ ExpiresActive On
+ ExpiresDefault M1800
+ </Files>
+
+ <Files "*-month.png">
+ ExpiresActive On
+ ExpiresDefault M7200
+ </Files>
+
+ <Files "*-year.png">
+ ExpiresActive On
+ ExpiresDefault M86400
+ </Files>
+
+ <Files "*.html">
+ ExpiresActive On
+ ExpiresDefault M300
+ </Files>
+
+ # index.html is not automatically generated
+ <Files "index.html">
+ ExpiresActive Off
+ </Files>
+
+=head1 AUTHOR
+
+Unknown
diff --git a/doc/mrtg-webserver.txt b/doc/mrtg-webserver.txt
new file mode 100644
index 0000000..10a6761
--- /dev/null
+++ b/doc/mrtg-webserver.txt
@@ -0,0 +1,70 @@
+MRTG-WEBSERVER(1) mrtg MRTG-WEBSERVER(1)
+
+
+
+NNAAMMEE
+ mrtg-webserver - hints for web server configuration
+
+SSYYNNOOPPSSIISS
+ If you want people to actually see the results of your network
+ monitoring efforts you will need a webserver.
+
+ This document lists some configuration hints for webservers.
+ Contributions welcome.
+
+AAPPAACCHHEE
+ CCoonnffiigguurriinngg mmoodd__eexxppiirree
+ A big issue with mrtg monitoring data is the expiry time. All these
+ nice graphs you can create are only valid for a short time. If you do
+ not take special action some webbrowsers will not notice this and you
+ may end up with people seeing old data because of caching issues.
+
+ The apache module mod_expire allows you to setup special expiry
+ properties for individual file.
+
+ Here is an example for how this may look for an mrtg web directory.
+ The configuration directives can be stored into a _._h_t_a_c_c_e_s_s file.
+
+ ############################################################
+ # Example .htaccess for use with apache-1.2 and mod_expire.
+ # (mod_expire come with apache-1.2 but you have to explicitly
+ # activate it when compiling the httpd ...)
+ #############################################################
+ #
+ <Files "*-day.png">
+ ExpiresActive On # enable expirations
+ # five minutes
+ ExpiresDefault M300
+ </Files>
+
+ <Files "*-week.png">
+ ExpiresActive On
+ ExpiresDefault M1800
+ </Files>
+
+ <Files "*-month.png">
+ ExpiresActive On
+ ExpiresDefault M7200
+ </Files>
+
+ <Files "*-year.png">
+ ExpiresActive On
+ ExpiresDefault M86400
+ </Files>
+
+ <Files "*.html">
+ ExpiresActive On
+ ExpiresDefault M300
+ </Files>
+
+ # index.html is not automatically generated
+ <Files "index.html">
+ ExpiresActive Off
+ </Files>
+
+AAUUTTHHOORR
+ Unknown
+
+
+
+2.17.7 2018-07-13 MRTG-WEBSERVER(1)
diff --git a/doc/mrtg.1 b/doc/mrtg.1
new file mode 100644
index 0000000..bdc7f1c
--- /dev/null
+++ b/doc/mrtg.1
@@ -0,0 +1,322 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTG 1"
+.TH MRTG 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+mrtg \- What is MRTG ?
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+The Multi Router Traffic Grapher (\s-1MRTG\s0) is a tool to monitor
+the traffic load on network links. \s-1MRTG\s0 generates \s-1HTML\s0 pages
+containing \s-1PNG\s0 images which provide a \s-1LIVE\s0 visual representation of
+this traffic.
+.PP
+Go to http://oss.oetiker.ch/mrtg for all the details about mrtg.
+.SH "HIGHLIGHTS"
+.IX Header "HIGHLIGHTS"
+.IP "Portable" 4
+.IX Item "Portable"
+\&\s-1MRTG\s0 works on most \s-1UNIX\s0 platforms and Windows \s-1NT.\s0
+.IP "Perl" 4
+.IX Item "Perl"
+\&\s-1MRTG\s0 is written in Perl and comes with full source.
+.IP "Portable \s-1SNMP\s0" 4
+.IX Item "Portable SNMP"
+\&\s-1MRTG\s0 Uses a highly portable \s-1SNMP\s0 implementation written entirely in
+Perl (thanks to Simon Leinen). There is no need to install any
+external \s-1SNMP\s0 package.
+.IP "SNMPv2c support" 4
+.IX Item "SNMPv2c support"
+\&\s-1MRTG\s0 can read the new SNMPv2c 64bit counters. No more counter wrapping.
+.IP "Reliable Interface Identification" 4
+.IX Item "Reliable Interface Identification"
+Router interfaces can be identified by \s-1IP\s0 address, description and
+ethernet address in addition to the normal interface number.
+.IP "Constant size Logfiles" 4
+.IX Item "Constant size Logfiles"
+\&\s-1MRTG\s0's logfiles do \s-1NOT\s0 grow thanks to the use of a unique data
+consolidation algorithm.
+.IP "Automatic Configuration" 4
+.IX Item "Automatic Configuration"
+\&\s-1MRTG\s0 comes with a set of configuration tools which make configuration and
+setup very simple.
+.IP "Performance" 4
+.IX Item "Performance"
+Time critical routines are written in C (thanks to the initiative
+of Dave Rand my Co-Author).
+.IP "\s-1GIF\s0 free Graphics" 4
+.IX Item "GIF free Graphics"
+Graphics are generated directly in \s-1PNG\s0 format using the
+\&\s-1GD\s0 library by Thomas Boutell.
+.IP "Customizability" 4
+.IX Item "Customizability"
+The look of the webpages produced by \s-1MRTG\s0 is highly configurable.
+.IP "RRDtool" 4
+.IX Item "RRDtool"
+\&\s-1MRTG\s0 has built-in hooks for using RRDtool. If you are strapped for
+performance this may help.
+.SH "DETAILS"
+.IX Header "DETAILS"
+\&\s-1MRTG\s0 consists of a Perl script which uses \s-1SNMP\s0 to read the traffic
+counters of your routers and a fast C program which logs the traffic
+data and creates beautiful graphs representing the traffic on the
+monitored network connection. These graphs are embedded into webpages
+which can be viewed from any modern Web-browser.
+.PP
+In addition to a detailed daily view, \s-1MRTG\s0 also creates visual
+representations of the traffic seen during the last seven days, the
+last five weeks and the last twelve months. This is possible because
+\&\s-1MRTG\s0 keeps a log of all the data it has pulled from the router. This
+log is automatically consolidated so that it does not grow over time,
+but still contains all the relevant data for all the traffic seen over
+the last two years. This is all performed in an efficient manner.
+Therefore you can monitor 200 or more network links from any halfway
+decent \s-1UNIX\s0 box.
+.PP
+\&\s-1MRTG\s0 is not limited to monitoring traffic, though. It is possible to
+monitor any \s-1SNMP\s0 variable you choose. You can even use an
+external program to gather the data which should be monitored via
+\&\s-1MRTG.\s0 People are using \s-1MRTG,\s0 to monitor things such as System Load,
+Login Sessions, Modem availability and more. \s-1MRTG\s0 even allows you to
+accumulate two or more data sources into a single graph.
+.SH "HISTORY"
+.IX Header "HISTORY"
+In 1994 I was working at a site where we had one
+64kbit line to the outside world. Obviously, everybody was interested
+in knowing how the link was performing. So I wrote a quick hack which
+created a constantly updated graph on the web that showed the traffic
+load on our Internet link. This eventually evolved into a rather
+configurable Perl script called \s-1MRTG\-1.0\s0 which I released in spring
+1995. After a few updates, I left my job at \s-1DMU\s0 to start work at the
+Swiss Federal Institute of Technology. Due to lack of time I had to
+put \s-1MRTG\s0 aside. One day in January of 1996, I received email from
+Dave Rand asking if I had any ideas why \s-1MRTG\s0 was so slow. Actually, I
+did. \s-1MRTG\s0's programming was not very efficient and it was written
+entirely in Perl. After a week or so, Dave wrote back to me and said
+he had tried what I had suggested for improving \s-1MRTG\s0's speed. Since
+the changes did not help much, he had decided to rewrite the
+time-critical sections of \s-1MRTG\s0 in C. The code was attached to his
+email. His tool increased the speed of \s-1MRTG\s0 by a factor of 40! This
+got me out of my '\s-1MRTG\s0 ignorance' and I started to spend my spare time
+developing of \s-1MRTG\-2.\s0
+.PP
+Soon after \s-1MRTG\-2\s0 development had begun I started to give beta
+copies to interested parties. In return I got many feature patches, a
+lot of user feedback and bug fixes. The product you are getting now
+wouldn't be in this state if it hadn't been for the great contributions
+and support I received from of many people. I would like
+to take this opportunity to thank them all. (See the files \s-1CHANGES\s0 for a
+long list of folk people who helped to make \s-1MRTG\s0 what it is today.)
+.SH "Command-line"
+.IX Header "Command-line"
+Mrtg is also the name of the script you have to run to poll data and
+generate the graphs. Most configuration is set through the configuration
+file; some command-line options exist all the same.
+.IP "\fB\-\-user\fR \fIusername\fR and \fB\-\-group\fR \fIgroupname\fR" 4
+.IX Item "--user username and --group groupname"
+Run as the given user and/or group. (Unix Only)
+.IP "\fB\-\-lock\-file\fR \fIfilename\fR" 4
+.IX Item "--lock-file filename"
+Use an alternate lock-file (the default is to use the configuration-file
+appended with \f(CW\*(C`_l\*(C'\fR).
+.IP "\fB\-\-confcache\-file\fR \fIfilename\fR" 4
+.IX Item "--confcache-file filename"
+Use an alternate confcache-file (the default is to use the configuration-file appended with \f(CW\*(C`.ok\*(C'\fR)
+.IP "\fB\-\-logging\fR \fIfilename\fR|\fBeventlog\fR" 4
+.IX Item "--logging filename|eventlog"
+If this is set to writable filename, all output from mrtg (warnings, debug messages, errors)
+will go to \fIfilename\fR. If you are running on Win32 you can specify \fBeventlog\fR instead of a filename
+which will send all error to the windows event log.
+.Sp
+\&\fB\s-1NOTE:\s0\fRNote, there is no Message \s-1DLL\s0 for mrtg. This has the side effect
+that the windows event logger will display a nice message with every entry
+in the event log, complaing about the fact that mrtg has no message dll. If
+any of the Windows folks want to contribute one, they are welcome.
+.IP "\fB\-\-daemon\fR" 4
+.IX Item "--daemon"
+Put \s-1MRTG\s0 into the background, running as a daemon. This works the same way as
+the config file option, but the switch is required for proper \s-1FHS\s0 operation
+(because /var/run is writable only by root)
+.IP "\fB\-\-fhs\fR" 4
+.IX Item "--fhs"
+Configure all mrtg paths to conform to the \s-1FHS\s0 specification
+<http://www.pathname.com/fhs/>. The following default values are assumed:
+.Sp
+.Vb 4
+\& confcachefile \- /var/cache/mrtg/mrtg.ok
+\& pid\-file \- /var/run/mrtg.pid
+\& lock\-file \- /var/cache/mrtg/mrtg.lck
+\& log\-file \- /var/log/mrtg.log
+.Ve
+.IP "\fB\-\-check\fR" 4
+.IX Item "--check"
+Only check the cfg file for errors. Do not do anything.
+.IP "\fB\-\-pid\-file=s\fR" 4
+.IX Item "--pid-file=s"
+Define the name and path of the pid file for mrtg running as a daemon
+.IP "\fB\-\-log\-only\fR" 4
+.IX Item "--log-only"
+Only update the logfile, do not produce graphics or html pages
+.IP "\fB\-\-debug=s\fR" 4
+.IX Item "--debug=s"
+Enable debug options. The argument of the debug option is a comma separated list of debug values:
+.Sp
+.Vb 8
+\& cfg \- watch the config file reading
+\& dir \- directory mangeling
+\& base \- basic program flow
+\& tarp \- target parser
+\& snpo \- snmp polling
+\& fork \- forking view
+\& time \- some timing info
+\& log \- logging of data via rateup or rrdtool
+.Ve
+.Sp
+Example:
+.Sp
+.Vb 1
+\& \-\-debug="cfg,snpo"
+.Ve
+.SH "READ ON"
+.IX Header "READ ON"
+Learn more about \s-1MRTG\s0 by going to the mrtg home page on:
+http://oss.oetiker.ch/mrtg
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+Tobias Oetiker <tobi@oetiker.ch> and many contributors
diff --git a/doc/mrtg.pod b/doc/mrtg.pod
new file mode 100644
index 0000000..02b24c5
--- /dev/null
+++ b/doc/mrtg.pod
@@ -0,0 +1,217 @@
+=head1 NAME
+
+mrtg - What is MRTG ?
+
+=head1 DESCRIPTION
+
+The Multi Router Traffic Grapher (MRTG) is a tool to monitor
+the traffic load on network links. MRTG generates HTML pages
+containing PNG images which provide a LIVE visual representation of
+this traffic.
+
+Go to http://oss.oetiker.ch/mrtg for all the details about mrtg.
+
+
+=head1 HIGHLIGHTS
+
+=over
+
+=item Portable
+
+MRTG works on most UNIX platforms and Windows NT.
+
+=item Perl
+
+MRTG is written in Perl and comes with full source.
+
+=item Portable SNMP
+
+MRTG Uses a highly portable SNMP implementation written entirely in
+Perl (thanks to Simon Leinen). There is no need to install any
+external SNMP package.
+
+=item SNMPv2c support
+
+MRTG can read the new SNMPv2c 64bit counters. No more counter wrapping.
+
+
+=item Reliable Interface Identification
+
+Router interfaces can be identified by IP address, description and
+ethernet address in addition to the normal interface number.
+
+=item Constant size Logfiles
+
+MRTG's logfiles do NOT grow thanks to the use of a unique data
+consolidation algorithm.
+
+=item Automatic Configuration
+
+MRTG comes with a set of configuration tools which make configuration and
+setup very simple.
+
+=item Performance
+
+Time critical routines are written in C (thanks to the initiative
+of Dave Rand my Co-Author).
+
+=item GIF free Graphics
+
+Graphics are generated directly in PNG format using the
+GD library by Thomas Boutell.
+
+=item Customizability
+
+The look of the webpages produced by MRTG is highly configurable.
+
+=item RRDtool
+
+MRTG has built-in hooks for using RRDtool. If you are strapped for
+performance this may help.
+
+=back
+
+=head1 DETAILS
+
+MRTG consists of a Perl script which uses SNMP to read the traffic
+counters of your routers and a fast C program which logs the traffic
+data and creates beautiful graphs representing the traffic on the
+monitored network connection. These graphs are embedded into webpages
+which can be viewed from any modern Web-browser.
+
+In addition to a detailed daily view, MRTG also creates visual
+representations of the traffic seen during the last seven days, the
+last five weeks and the last twelve months. This is possible because
+MRTG keeps a log of all the data it has pulled from the router. This
+log is automatically consolidated so that it does not grow over time,
+but still contains all the relevant data for all the traffic seen over
+the last two years. This is all performed in an efficient manner.
+Therefore you can monitor 200 or more network links from any halfway
+decent UNIX box.
+
+MRTG is not limited to monitoring traffic, though. It is possible to
+monitor any SNMP variable you choose. You can even use an
+external program to gather the data which should be monitored via
+MRTG. People are using MRTG, to monitor things such as System Load,
+Login Sessions, Modem availability and more. MRTG even allows you to
+accumulate two or more data sources into a single graph.
+
+
+=head1 HISTORY
+
+In 1994 I was working at a site where we had one
+64kbit line to the outside world. Obviously, everybody was interested
+in knowing how the link was performing. So I wrote a quick hack which
+created a constantly updated graph on the web that showed the traffic
+load on our Internet link. This eventually evolved into a rather
+configurable Perl script called MRTG-1.0 which I released in spring
+1995. After a few updates, I left my job at DMU to start work at the
+Swiss Federal Institute of Technology. Due to lack of time I had to
+put MRTG aside. One day in January of 1996, I received email from
+Dave Rand asking if I had any ideas why MRTG was so slow. Actually, I
+did. MRTG's programming was not very efficient and it was written
+entirely in Perl. After a week or so, Dave wrote back to me and said
+he had tried what I had suggested for improving MRTG's speed. Since
+the changes did not help much, he had decided to rewrite the
+time-critical sections of MRTG in C. The code was attached to his
+email. His tool increased the speed of MRTG by a factor of 40! This
+got me out of my 'MRTG ignorance' and I started to spend my spare time
+developing of MRTG-2.
+
+Soon after MRTG-2 development had begun I started to give beta
+copies to interested parties. In return I got many feature patches, a
+lot of user feedback and bug fixes. The product you are getting now
+wouldn't be in this state if it hadn't been for the great contributions
+and support I received from of many people. I would like
+to take this opportunity to thank them all. (See the files CHANGES for a
+long list of folk people who helped to make MRTG what it is today.)
+
+=head1 Command-line
+
+Mrtg is also the name of the script you have to run to poll data and
+generate the graphs. Most configuration is set through the configuration
+file; some command-line options exist all the same.
+
+=over
+
+=item B<--user> I<username> and B<--group> I<groupname>
+
+Run as the given user and/or group. (Unix Only)
+
+=item B<--lock-file> I<filename>
+
+Use an alternate lock-file (the default is to use the configuration-file
+appended with C<_l>).
+
+=item B<--confcache-file> I<filename>
+
+Use an alternate confcache-file (the default is to use the configuration-file appended with C<.ok>)
+
+=item B<--logging> I<filename>|B<eventlog>
+
+If this is set to writable filename, all output from mrtg (warnings, debug messages, errors)
+will go to I<filename>. If you are running on Win32 you can specify B<eventlog> instead of a filename
+which will send all error to the windows event log.
+
+B<NOTE:>Note, there is no Message DLL for mrtg. This has the side effect
+that the windows event logger will display a nice message with every entry
+in the event log, complaing about the fact that mrtg has no message dll. If
+any of the Windows folks want to contribute one, they are welcome.
+
+=item B<--daemon>
+
+Put MRTG into the background, running as a daemon. This works the same way as
+the config file option, but the switch is required for proper FHS operation
+(because /var/run is writable only by root)
+
+=item B<--fhs>
+
+Configure all mrtg paths to conform to the FHS specification
+L<http://www.pathname.com/fhs/>. The following default values are assumed:
+
+ confcachefile - /var/cache/mrtg/mrtg.ok
+ pid-file - /var/run/mrtg.pid
+ lock-file - /var/cache/mrtg/mrtg.lck
+ log-file - /var/log/mrtg.log
+
+
+
+=item B<--check>
+
+Only check the cfg file for errors. Do not do anything.
+
+=item B<--pid-file=s>
+
+Define the name and path of the pid file for mrtg running as a daemon
+
+=item B<--log-only>
+
+Only update the logfile, do not produce graphics or html pages
+
+=item B<--debug=s>
+
+Enable debug options. The argument of the debug option is a comma separated list of debug values:
+
+ cfg - watch the config file reading
+ dir - directory mangeling
+ base - basic program flow
+ tarp - target parser
+ snpo - snmp polling
+ fork - forking view
+ time - some timing info
+ log - logging of data via rateup or rrdtool
+
+Example:
+
+ --debug="cfg,snpo"
+
+=back
+
+=head1 READ ON
+
+Learn more about MRTG by going to the mrtg home page on:
+http://oss.oetiker.ch/mrtg
+
+=head1 AUTHOR
+
+Tobias Oetiker E<lt>tobi@oetiker.chE<gt> and many contributors
diff --git a/doc/mrtg.txt b/doc/mrtg.txt
new file mode 100644
index 0000000..0d88e28
--- /dev/null
+++ b/doc/mrtg.txt
@@ -0,0 +1,188 @@
+MRTG(1) mrtg MRTG(1)
+
+
+
+NNAAMMEE
+ mrtg - What is MRTG ?
+
+DDEESSCCRRIIPPTTIIOONN
+ The Multi Router Traffic Grapher (MRTG) is a tool to monitor the
+ traffic load on network links. MRTG generates HTML pages containing
+ PNG images which provide a LIVE visual representation of this traffic.
+
+ Go to http://oss.oetiker.ch/mrtg for all the details about mrtg.
+
+HHIIGGHHLLIIGGHHTTSS
+ Portable
+ MRTG works on most UNIX platforms and Windows NT.
+
+ Perl
+ MRTG is written in Perl and comes with full source.
+
+ Portable SNMP
+ MRTG Uses a highly portable SNMP implementation written entirely in
+ Perl (thanks to Simon Leinen). There is no need to install any
+ external SNMP package.
+
+ SNMPv2c support
+ MRTG can read the new SNMPv2c 64bit counters. No more counter
+ wrapping.
+
+ Reliable Interface Identification
+ Router interfaces can be identified by IP address, description and
+ ethernet address in addition to the normal interface number.
+
+ Constant size Logfiles
+ MRTG's logfiles do NOT grow thanks to the use of a unique data
+ consolidation algorithm.
+
+ Automatic Configuration
+ MRTG comes with a set of configuration tools which make
+ configuration and setup very simple.
+
+ Performance
+ Time critical routines are written in C (thanks to the initiative
+ of Dave Rand my Co-Author).
+
+ GIF free Graphics
+ Graphics are generated directly in PNG format using the GD library
+ by Thomas Boutell.
+
+ Customizability
+ The look of the webpages produced by MRTG is highly configurable.
+
+ RRDtool
+ MRTG has built-in hooks for using RRDtool. If you are strapped for
+ performance this may help.
+
+DDEETTAAIILLSS
+ MRTG consists of a Perl script which uses SNMP to read the traffic
+ counters of your routers and a fast C program which logs the traffic
+ data and creates beautiful graphs representing the traffic on the
+ monitored network connection. These graphs are embedded into webpages
+ which can be viewed from any modern Web-browser.
+
+ In addition to a detailed daily view, MRTG also creates visual
+ representations of the traffic seen during the last seven days, the
+ last five weeks and the last twelve months. This is possible because
+ MRTG keeps a log of all the data it has pulled from the router. This
+ log is automatically consolidated so that it does not grow over time,
+ but still contains all the relevant data for all the traffic seen over
+ the last two years. This is all performed in an efficient manner.
+ Therefore you can monitor 200 or more network links from any halfway
+ decent UNIX box.
+
+ MRTG is not limited to monitoring traffic, though. It is possible to
+ monitor any SNMP variable you choose. You can even use an external
+ program to gather the data which should be monitored via MRTG. People
+ are using MRTG, to monitor things such as System Load, Login Sessions,
+ Modem availability and more. MRTG even allows you to accumulate two or
+ more data sources into a single graph.
+
+HHIISSTTOORRYY
+ In 1994 I was working at a site where we had one 64kbit line to the
+ outside world. Obviously, everybody was interested in knowing how the
+ link was performing. So I wrote a quick hack which created a constantly
+ updated graph on the web that showed the traffic load on our Internet
+ link. This eventually evolved into a rather configurable Perl script
+ called MRTG-1.0 which I released in spring 1995. After a few updates, I
+ left my job at DMU to start work at the Swiss Federal Institute of
+ Technology. Due to lack of time I had to put MRTG aside. One day in
+ January of 1996, I received email from Dave Rand asking if I had any
+ ideas why MRTG was so slow. Actually, I did. MRTG's programming was not
+ very efficient and it was written entirely in Perl. After a week or so,
+ Dave wrote back to me and said he had tried what I had suggested for
+ improving MRTG's speed. Since the changes did not help much, he had
+ decided to rewrite the time-critical sections of MRTG in C. The code
+ was attached to his email. His tool increased the speed of MRTG by a
+ factor of 40! This got me out of my 'MRTG ignorance' and I started to
+ spend my spare time developing of MRTG-2.
+
+ Soon after MRTG-2 development had begun I started to give beta copies
+ to interested parties. In return I got many feature patches, a lot of
+ user feedback and bug fixes. The product you are getting now wouldn't
+ be in this state if it hadn't been for the great contributions and
+ support I received from of many people. I would like to take this
+ opportunity to thank them all. (See the files CHANGES for a long list
+ of folk people who helped to make MRTG what it is today.)
+
+CCoommmmaanndd--lliinnee
+ Mrtg is also the name of the script you have to run to poll data and
+ generate the graphs. Most configuration is set through the
+ configuration file; some command-line options exist all the same.
+
+ ----uusseerr _u_s_e_r_n_a_m_e and ----ggrroouupp _g_r_o_u_p_n_a_m_e
+ Run as the given user and/or group. (Unix Only)
+
+ ----lloocckk--ffiillee _f_i_l_e_n_a_m_e
+ Use an alternate lock-file (the default is to use the
+ configuration-file appended with "_l").
+
+ ----ccoonnffccaacchhee--ffiillee _f_i_l_e_n_a_m_e
+ Use an alternate confcache-file (the default is to use the
+ configuration-file appended with ".ok")
+
+ ----llooggggiinngg _f_i_l_e_n_a_m_e|eevveennttlloogg
+ If this is set to writable filename, all output from mrtg
+ (warnings, debug messages, errors) will go to _f_i_l_e_n_a_m_e. If you are
+ running on Win32 you can specify eevveennttlloogg instead of a filename
+ which will send all error to the windows event log.
+
+ NNOOTTEE::Note, there is no Message DLL for mrtg. This has the side
+ effect that the windows event logger will display a nice message
+ with every entry in the event log, complaing about the fact that
+ mrtg has no message dll. If any of the Windows folks want to
+ contribute one, they are welcome.
+
+ ----ddaaeemmoonn
+ Put MRTG into the background, running as a daemon. This works the
+ same way as the config file option, but the switch is required for
+ proper FHS operation (because /var/run is writable only by root)
+
+ ----ffhhss
+ Configure all mrtg paths to conform to the FHS specification
+ <http://www.pathname.com/fhs/>. The following default values are
+ assumed:
+
+ confcachefile - /var/cache/mrtg/mrtg.ok
+ pid-file - /var/run/mrtg.pid
+ lock-file - /var/cache/mrtg/mrtg.lck
+ log-file - /var/log/mrtg.log
+
+ ----cchheecckk
+ Only check the cfg file for errors. Do not do anything.
+
+ ----ppiidd--ffiillee==ss
+ Define the name and path of the pid file for mrtg running as a
+ daemon
+
+ ----lloogg--oonnllyy
+ Only update the logfile, do not produce graphics or html pages
+
+ ----ddeebbuugg==ss
+ Enable debug options. The argument of the debug option is a comma
+ separated list of debug values:
+
+ cfg - watch the config file reading
+ dir - directory mangeling
+ base - basic program flow
+ tarp - target parser
+ snpo - snmp polling
+ fork - forking view
+ time - some timing info
+ log - logging of data via rateup or rrdtool
+
+ Example:
+
+ --debug="cfg,snpo"
+
+RREEAADD OONN
+ Learn more about MRTG by going to the mrtg home page on:
+ http://oss.oetiker.ch/mrtg
+
+AAUUTTHHOORR
+ Tobias Oetiker <tobi@oetiker.ch> and many contributors
+
+
+
+2.17.7 2018-07-13 MRTG(1)
diff --git a/doc/mrtglib.1 b/doc/mrtglib.1
new file mode 100644
index 0000000..866d7e9
--- /dev/null
+++ b/doc/mrtglib.1
@@ -0,0 +1,386 @@
+.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
+.\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings. \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote. \*(C+ will
+.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+. ds -- \(*W-
+. ds PI pi
+. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
+. ds L" ""
+. ds R" ""
+. ds C` ""
+. ds C' ""
+'br\}
+.el\{\
+. ds -- \|\(em\|
+. ds PI \(*p
+. ds L" ``
+. ds R" ''
+. ds C`
+. ds C'
+'br\}
+.\"
+.\" Escape single quotes in literal strings from groff's Unicode transform.
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
+.\" entries marked with X<> in POD. Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
+..
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{
+. if \nF \{
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
+..
+. if !\nF==2 \{
+. nr % 0
+. nr F 2
+. \}
+. \}
+.\}
+.rr rF
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear. Run. Save yourself. No user-serviceable parts.
+. \" fudge factors for nroff and troff
+.if n \{\
+. ds #H 0
+. ds #V .8m
+. ds #F .3m
+. ds #[ \f1
+. ds #] \fP
+.\}
+.if t \{\
+. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+. ds #V .6m
+. ds #F 0
+. ds #[ \&
+. ds #] \&
+.\}
+. \" simple accents for nroff and troff
+.if n \{\
+. ds ' \&
+. ds ` \&
+. ds ^ \&
+. ds , \&
+. ds ~ ~
+. ds /
+.\}
+.if t \{\
+. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+. \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+. \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+. \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+. ds : e
+. ds 8 ss
+. ds o a
+. ds d- d\h'-1'\(ga
+. ds D- D\h'-1'\(hy
+. ds th \o'bp'
+. ds Th \o'LP'
+. ds ae ae
+. ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "MRTGLIB 1"
+.TH MRTGLIB 1 "2018-07-13" "2.17.7" "mrtg"
+.\" For nroff, turn off justification. Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.if n .ad l
+.nh
+.SH "NAME"
+MRTG_lib.pm \- Library for MRTG and support scripts
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+.Vb 5
+\& use MRTG_lib;
+\& my ($configfile, @target_names, %globalcfg, %targetcfg);
+\& readcfg($configfile, \e@target_names, \e%globalcfg, \e%targetcfg);
+\& my (@parsed_targets);
+\& cfgcheck(\e@target_names, \e%globalcfg, \e%targetcfg, \e@parsed_targets);
+.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+MRTG_lib is part of \s-1MRTG,\s0 the Multi Router Traffic Grapher. It was separated
+from \s-1MRTG\s0 to allow other programs to easily use the same config files. The
+main part of MRTG_lib is the config file parser but some other funcions are
+there too.
+.ie n .IP "$MRTG_lib::OS" 4
+.el .IP "\f(CW$MRTG_lib::OS\fR" 4
+.IX Item "$MRTG_lib::OS"
+Type of \s-1OS: WIN, UNIX, VMS\s0
+.ie n .IP "$MRTG_lib::SL" 4
+.el .IP "\f(CW$MRTG_lib::SL\fR" 4
+.IX Item "$MRTG_lib::SL"
+\&\fISlash\fR in the current \s-1OS.\s0
+.ie n .IP "$MRTG_lib::PS" 4
+.el .IP "\f(CW$MRTG_lib::PS\fR" 4
+.IX Item "$MRTG_lib::PS"
+Path separator in \s-1PATH\s0 variable
+.ie n .IP """readcfg""" 4
+.el .IP "\f(CWreadcfg\fR" 4
+.IX Item "readcfg"
+\&\f(CW\*(C`readcfg($file, \e@targets, \e%globalcfg, \e%targetcfg [, $prefix, \e%extrules])\*(C'\fR
+.Sp
+Reads a config file, parses it and fills some arrays and hashes. The
+mandatory arguments are: the name of the config file, a ref to an array which
+will be filled with a list of the target names, a hashref for the global
+configuration, a hashref for the target configuration.
+.Sp
+The configuration file syntax is:
+.Sp
+.Vb 4
+\& globaloption: value
+\& targetoption[targetname]: value
+\& aprefix*extglobal: value
+\& aprefix*exttarget[target2]: value
+.Ve
+.Sp
+E.g.
+.Sp
+.Vb 3
+\& workdir: /var/stat/mrtg
+\& target[router1]: 2:public@router1.local.net
+\& 14all*columns: 2
+.Ve
+.Sp
+The global config hash has the structure
+.Sp
+.Vb 1
+\& $globalcfg{configoption} = \*(Aqvalue\*(Aq
+.Ve
+.Sp
+The target config hash has the structure
+.Sp
+.Vb 1
+\& $targetcfg{configoption}{targetname} = \*(Aqvalue\*(Aq
+.Ve
+.Sp
+See mrtg-reference for more information about the \s-1MRTG\s0 configuration syntax.
+.Sp
+\&\f(CW\*(C`readcfg\*(C'\fR can take two additional arguments to extend the config file
+syntax. This allows programs to put their configuration into the mrtg config
+file. The fifth argument is the prefix of the extension, the sixth argument
+is a hash with the checkrules for these extension settings. E.g. if the
+prefix is \*(L"14all\*(R" \f(CW\*(C`readcfg\*(C'\fR will check config lines that begin with
+\&\*(L"14all*\*(R", i.e. all lines like
+.Sp
+.Vb 2
+\& 14all*columns: 2
+\& 14all*graphsize[target3]: 500 200
+.Ve
+.Sp
+against the rules in \f(CW%extrules\fR. The format of this hash is:
+.Sp
+.Vb 4
+\& $extrules{option} = [sub{$_[0] =~ m/^\ed+$/}, sub{"Error message for $_[0]"}]
+\& i.e.
+\& $extrules{option}[0] \-> a test expression
+\& $extrules{option}[1] \-> error message if test fails
+.Ve
+.Sp
+The first part of the array is a perl expression to test the value of the
+option. The test can access this value in the variable \*(L"$arg\*(R". The second
+part of the array is an error message to display when the test fails. The
+failed value can be integrated by using the variable \*(L"$arg\*(R".
+.Sp
+Config settings with an different prefix than the one given in the \f(CW\*(C`readcfg\*(C'\fR
+call are not checked but inserted into \fI\f(CI%globalcfg\fI\fR and \fI\f(CI%targetcfg\fI\fR.
+Prefixed settings keep their prefix in the config hashes:
+.Sp
+.Vb 1
+\& $targetcfg{\*(Aq14all*graphsize\*(Aq}{\*(Aqtarget3\*(Aq} = \*(Aq500 200\*(Aq
+.Ve
+.ie n .IP """cfgcheck""" 4
+.el .IP "\f(CWcfgcheck\fR" 4
+.IX Item "cfgcheck"
+\&\f(CW\*(C`cfgcheck(\e@target_names, \e%globalcfg, \e%targetcfg, \e@parsed_targets)\*(C'\fR
+.Sp
+Checks the configuration read by \f(CW\*(C`readcfg\*(C'\fR. Checks the values in the config
+for syntactical and/or semantical errors. Sets defaults for some options.
+Parses the \*(L"target[...]\*(R" options and filles the array \f(CW@parsed_targets\fR ready
+for mrtg functions.
+.Sp
+The first three arguments are the same as for \f(CW\*(C`readcfg\*(C'\fR. The fourth argument
+is an arrayref which will be filled with the parsed target defs.
+.Sp
+\&\f(CW\*(C`cfgcheck\*(C'\fR converts the values of target settings \fIoptions\fR, e.g.
+.Sp
+.Vb 1
+\& options[router1]: bits, growright
+.Ve
+.Sp
+to a hash:
+.Sp
+.Vb 2
+\& $targetcfg{\*(Aqoption\*(Aq}{\*(Aqbits\*(Aq}{\*(Aqrouter1\*(Aq} = 1
+\& $targetcfg{\*(Aqoption\*(Aq}{\*(Aqgrowright\*(Aq}{\*(Aqrouter1\*(Aq} = 1
+.Ve
+.Sp
+This is not done by \f(CW\*(C`readcfg\*(C'\fR so if you don't use \f(CW\*(C`cfgcheck\*(C'\fR you have to
+check the scalar variable \fI\f(CI$targetcfg\fI{'option'}{'router1'}\fR (\s-1MRTG\s0 allows
+options to be separated by space or ',').
+.ie n .IP """ensureSL""" 4
+.el .IP "\f(CWensureSL\fR" 4
+.IX Item "ensureSL"
+\&\f(CW\*(C`ensureSL(\e$pathname)\*(C'\fR
+.Sp
+Checks that the \fIpathname\fR does not contain double path separators and ends
+with a path separator. It uses \f(CW$MRTG_lib::SL\fR as path separator which will be /
+or \e depending on the \s-1OS.\s0
+.ie n .IP """log2rrd""" 4
+.el .IP "\f(CWlog2rrd\fR" 4
+.IX Item "log2rrd"
+\&\f(CW\*(C`log2rrd ($router,\e%globalcfg,\e%targetcfg)\*(C'\fR
+.Sp
+Convert log file to rrd format. Needs rrdtool.
+.ie n .IP """datestr""" 4
+.el .IP "\f(CWdatestr\fR" 4
+.IX Item "datestr"
+\&\f(CW\*(C`datestr(time)\*(C'\fR
+.Sp
+Returns the time given in the argument as a nicely formated date string.
+The argument has to be in \s-1UNIX\s0 time format (seconds since 1970\-1\-1).
+.ie n .IP """timestamp""" 4
+.el .IP "\f(CWtimestamp\fR" 4
+.IX Item "timestamp"
+\&\f(CW\*(C`timestamp()\*(C'\fR
+.Sp
+Return a string representing the current time.
+.ie n .IP """setup_loghandlers""" 4
+.el .IP "\f(CWsetup_loghandlers\fR" 4
+.IX Item "setup_loghandlers"
+\&\f(CW\*(C`setup_loghandlers(filename)\*(C'\fR
+.Sp
+Install signalhandlers for _\|_DIE_\|_ and _\|_WARN_\|_ making the errors
+go the the specified destination. If filename is 'eventlog'
+mrtg will log to the windows event logger.
+.ie n .IP """expistr""" 4
+.el .IP "\f(CWexpistr\fR" 4
+.IX Item "expistr"
+\&\f(CW\*(C`expistr(time)\*(C'\fR
+.Sp
+Returns the time given in the argument formatted suitable for \s-1HTTP\s0
+Expire-Headers.
+.ie n .IP """create_pid""" 4
+.el .IP "\f(CWcreate_pid\fR" 4
+.IX Item "create_pid"
+\&\f(CW\*(C`create_pid()\*(C'\fR
+.Sp
+Creates a pid file for the mrtg daemon
+.ie n .IP """demonize_me""" 4
+.el .IP "\f(CWdemonize_me\fR" 4
+.IX Item "demonize_me"
+\&\f(CW\*(C`demonize_me()\*(C'\fR
+.Sp
+Puts the running program into background, detaching it from the terminal.
+.ie n .IP """populatecache""" 4
+.el .IP "\f(CWpopulatecache\fR" 4
+.IX Item "populatecache"
+\&\f(CW\*(C`populatecache(\e%confcache, $host, $reread, $snmpoptshash)\*(C'\fR
+.Sp
+Reads the \s-1SNMP\s0 variables \fIifDescr\fR, \fIipAdEntIfIndex\fR, \fIifPhysAddress\fR, \fIifName\fR from
+the \fIhost\fR and stores the values in \fI\f(CI%confcache\fI\fR as follows:
+.Sp
+.Vb 5
+\& $confcache{$host}{\*(AqDescr\*(Aq}{ifDescr}{oid} = (ifDescr or \*(AqDup\*(Aq)
+\& $confcache{$host}{\*(AqIP\*(Aq}{ipAdEntIfIndex}{oid} = (ipAdEntIfIndex or \*(AqDup\*(Aq)
+\& $confcache{$host}{\*(AqEth\*(Aq}{ifPhysAddress}{oid} = (ifPhysAddress or \*(AqDup\*(Aq)
+\& $confcache{$host}{\*(AqName\*(Aq}{ifName}{oid} = (ifName or \*(AqDup\*(Aq)
+\& $confcache{$host}{\*(AqType\*(Aq}{ifType}{oid} = (ifType or \*(AqDup\*(Aq)
+.Ve
+.Sp
+The value (at the right side of =) is 'Dup' if a value was retrieved
+muliple times, the retrieved value else.
+.ie n .IP """readconfcache""" 4
+.el .IP "\f(CWreadconfcache\fR" 4
+.IX Item "readconfcache"
+\&\f(CW\*(C`my $confcache = readconfcache($file)\*(C'\fR
+.Sp
+Preload the confcache from a file.
+.ie n .IP """readfromconfcache""" 4
+.el .IP "\f(CWreadfromconfcache\fR" 4
+.IX Item "readfromconfcache"
+\&\f(CW\*(C`writeconfcache($confcache,$file)\*(C'\fR
+.Sp
+Store the current confcache into a file.
+.ie n .IP """writeconfcache""" 4
+.el .IP "\f(CWwriteconfcache\fR" 4
+.IX Item "writeconfcache"
+\&\f(CW\*(C`writeconfcache($confcache,$file)\*(C'\fR
+.Sp
+Store the current confcache into a file.
+.ie n .IP """storeincache""" 4
+.el .IP "\f(CWstoreincache\fR" 4
+.IX Item "storeincache"
+\&\f(CW\*(C`storeincache($confcache,$host,$method,$key,$value)\*(C'\fR
+.ie n .IP """readfromcache""" 4
+.el .IP "\f(CWreadfromcache\fR" 4
+.IX Item "readfromcache"
+\&\f(CW\*(C`readfromcache($confcache,$host,$method,$key)\*(C'\fR
+.ie n .IP """clearfromcache""" 4
+.el .IP "\f(CWclearfromcache\fR" 4
+.IX Item "clearfromcache"
+\&\f(CW\*(C`clearfromcache($confcache,$host)\*(C'\fR
+.ie n .IP """debug""" 4
+.el .IP "\f(CWdebug\fR" 4
+.IX Item "debug"
+\&\f(CW\*(C`debug($type, $message)\*(C'\fR
+.Sp
+Prints the \fImessage\fR on \s-1STDERR\s0 if debugging is enabled for type \fItype\fR.
+A debug type is enabled if \fItype\fR is in array \f(CW@main::DEBUG\fR.
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+Rainer Bawidamann <Rainer.Bawidamann@rz.uni\-ulm.de>
+.PP
+(This Manpage)
diff --git a/doc/mrtglib.pod b/doc/mrtglib.pod
new file mode 120000
index 0000000..62d664f
--- /dev/null
+++ b/doc/mrtglib.pod
@@ -0,0 +1 @@
+../lib/mrtg2/MRTG_lib.pm \ No newline at end of file
diff --git a/doc/mrtglib.txt b/doc/mrtglib.txt
new file mode 100644
index 0000000..dea2fb4
--- /dev/null
+++ b/doc/mrtglib.txt
@@ -0,0 +1,222 @@
+MRTGLIB(1) mrtg MRTGLIB(1)
+
+
+
+NNAAMMEE
+ MRTG_lib.pm - Library for MRTG and support scripts
+
+SSYYNNOOPPSSIISS
+ use MRTG_lib;
+ my ($configfile, @target_names, %globalcfg, %targetcfg);
+ readcfg($configfile, \@target_names, \%globalcfg, \%targetcfg);
+ my (@parsed_targets);
+ cfgcheck(\@target_names, \%globalcfg, \%targetcfg, \@parsed_targets);
+
+DDEESSCCRRIIPPTTIIOONN
+ MRTG_lib is part of MRTG, the Multi Router Traffic Grapher. It was
+ separated from MRTG to allow other programs to easily use the same
+ config files. The main part of MRTG_lib is the config file parser but
+ some other funcions are there too.
+
+ $MRTG_lib::OS
+ Type of OS: WIN, UNIX, VMS
+
+ $MRTG_lib::SL
+ _S_l_a_s_h in the current OS.
+
+ $MRTG_lib::PS
+ Path separator in PATH variable
+
+ "readcfg"
+ "readcfg($file, \@targets, \%globalcfg, \%targetcfg [, $prefix,
+ \%extrules])"
+
+ Reads a config file, parses it and fills some arrays and hashes.
+ The mandatory arguments are: the name of the config file, a ref to
+ an array which will be filled with a list of the target names, a
+ hashref for the global configuration, a hashref for the target
+ configuration.
+
+ The configuration file syntax is:
+
+ globaloption: value
+ targetoption[targetname]: value
+ aprefix*extglobal: value
+ aprefix*exttarget[target2]: value
+
+ E.g.
+
+ workdir: /var/stat/mrtg
+ target[router1]: 2:public@router1.local.net
+ 14all*columns: 2
+
+ The global config hash has the structure
+
+ $globalcfg{configoption} = 'value'
+
+ The target config hash has the structure
+
+ $targetcfg{configoption}{targetname} = 'value'
+
+ See mrtg-reference for more information about the MRTG
+ configuration syntax.
+
+ "readcfg" can take two additional arguments to extend the config
+ file syntax. This allows programs to put their configuration into
+ the mrtg config file. The fifth argument is the prefix of the
+ extension, the sixth argument is a hash with the checkrules for
+ these extension settings. E.g. if the prefix is "14all" "readcfg"
+ will check config lines that begin with "14all*", i.e. all lines
+ like
+
+ 14all*columns: 2
+ 14all*graphsize[target3]: 500 200
+
+ against the rules in %extrules. The format of this hash is:
+
+ $extrules{option} = [sub{$_[0] =~ m/^\d+$/}, sub{"Error message for $_[0]"}]
+ i.e.
+ $extrules{option}[0] -> a test expression
+ $extrules{option}[1] -> error message if test fails
+
+ The first part of the array is a perl expression to test the value
+ of the option. The test can access this value in the variable
+ "$arg". The second part of the array is an error message to display
+ when the test fails. The failed value can be integrated by using
+ the variable "$arg".
+
+ Config settings with an different prefix than the one given in the
+ "readcfg" call are not checked but inserted into _%_g_l_o_b_a_l_c_f_g and
+ _%_t_a_r_g_e_t_c_f_g. Prefixed settings keep their prefix in the config
+ hashes:
+
+ $targetcfg{'14all*graphsize'}{'target3'} = '500 200'
+
+ "cfgcheck"
+ "cfgcheck(\@target_names, \%globalcfg, \%targetcfg,
+ \@parsed_targets)"
+
+ Checks the configuration read by "readcfg". Checks the values in
+ the config for syntactical and/or semantical errors. Sets defaults
+ for some options. Parses the "target[...]" options and filles the
+ array @parsed_targets ready for mrtg functions.
+
+ The first three arguments are the same as for "readcfg". The fourth
+ argument is an arrayref which will be filled with the parsed target
+ defs.
+
+ "cfgcheck" converts the values of target settings _o_p_t_i_o_n_s, e.g.
+
+ options[router1]: bits, growright
+
+ to a hash:
+
+ $targetcfg{'option'}{'bits'}{'router1'} = 1
+ $targetcfg{'option'}{'growright'}{'router1'} = 1
+
+ This is not done by "readcfg" so if you don't use "cfgcheck" you
+ have to check the scalar variable _$_t_a_r_g_e_t_c_f_g_{_'_o_p_t_i_o_n_'_}_{_'_r_o_u_t_e_r_1_'_}
+ (MRTG allows options to be separated by space or ',').
+
+ "ensureSL"
+ "ensureSL(\$pathname)"
+
+ Checks that the _p_a_t_h_n_a_m_e does not contain double path separators
+ and ends with a path separator. It uses $MRTG_lib::SL as path
+ separator which will be / or \ depending on the OS.
+
+ "log2rrd"
+ "log2rrd ($router,\%globalcfg,\%targetcfg)"
+
+ Convert log file to rrd format. Needs rrdtool.
+
+ "datestr"
+ "datestr(time)"
+
+ Returns the time given in the argument as a nicely formated date
+ string. The argument has to be in UNIX time format (seconds since
+ 1970-1-1).
+
+ "timestamp"
+ "timestamp()"
+
+ Return a string representing the current time.
+
+ "setup_loghandlers"
+ "setup_loghandlers(filename)"
+
+ Install signalhandlers for __DIE__ and __WARN__ making the errors
+ go the the specified destination. If filename is 'eventlog' mrtg
+ will log to the windows event logger.
+
+ "expistr"
+ "expistr(time)"
+
+ Returns the time given in the argument formatted suitable for HTTP
+ Expire-Headers.
+
+ "create_pid"
+ "create_pid()"
+
+ Creates a pid file for the mrtg daemon
+
+ "demonize_me"
+ "demonize_me()"
+
+ Puts the running program into background, detaching it from the
+ terminal.
+
+ "populatecache"
+ "populatecache(\%confcache, $host, $reread, $snmpoptshash)"
+
+ Reads the SNMP variables _i_f_D_e_s_c_r, _i_p_A_d_E_n_t_I_f_I_n_d_e_x, _i_f_P_h_y_s_A_d_d_r_e_s_s,
+ _i_f_N_a_m_e from the _h_o_s_t and stores the values in _%_c_o_n_f_c_a_c_h_e as
+ follows:
+
+ $confcache{$host}{'Descr'}{ifDescr}{oid} = (ifDescr or 'Dup')
+ $confcache{$host}{'IP'}{ipAdEntIfIndex}{oid} = (ipAdEntIfIndex or 'Dup')
+ $confcache{$host}{'Eth'}{ifPhysAddress}{oid} = (ifPhysAddress or 'Dup')
+ $confcache{$host}{'Name'}{ifName}{oid} = (ifName or 'Dup')
+ $confcache{$host}{'Type'}{ifType}{oid} = (ifType or 'Dup')
+
+ The value (at the right side of =) is 'Dup' if a value was
+ retrieved muliple times, the retrieved value else.
+
+ "readconfcache"
+ "my $confcache = readconfcache($file)"
+
+ Preload the confcache from a file.
+
+ "readfromconfcache"
+ "writeconfcache($confcache,$file)"
+
+ Store the current confcache into a file.
+
+ "writeconfcache"
+ "writeconfcache($confcache,$file)"
+
+ Store the current confcache into a file.
+
+ "storeincache"
+ "storeincache($confcache,$host,$method,$key,$value)"
+
+ "readfromcache"
+ "readfromcache($confcache,$host,$method,$key)"
+
+ "clearfromcache"
+ "clearfromcache($confcache,$host)"
+
+ "debug"
+ "debug($type, $message)"
+
+ Prints the _m_e_s_s_a_g_e on STDERR if debugging is enabled for type _t_y_p_e.
+ A debug type is enabled if _t_y_p_e is in array @main::DEBUG.
+
+AAUUTTHHOORRSS
+ Rainer Bawidamann <Rainer.Bawidamann@rz.uni-ulm.de>
+
+ (This Manpage)
+
+
+
+2.17.7 2018-07-13 MRTGLIB(1)