Blame doc/indexmaker.1

Packit 667938
.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29)
Packit 667938
.\"
Packit 667938
.\" Standard preamble:
Packit 667938
.\" ========================================================================
Packit 667938
.de Sp \" Vertical space (when we can't use .PP)
Packit 667938
.if t .sp .5v
Packit 667938
.if n .sp
Packit 667938
..
Packit 667938
.de Vb \" Begin verbatim text
Packit 667938
.ft CW
Packit 667938
.nf
Packit 667938
.ne \\$1
Packit 667938
..
Packit 667938
.de Ve \" End verbatim text
Packit 667938
.ft R
Packit 667938
.fi
Packit 667938
..
Packit 667938
.\" Set up some character translations and predefined strings.  \*(-- will
Packit 667938
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
Packit 667938
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
Packit 667938
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
Packit 667938
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
Packit 667938
.\" nothing in troff, for use with C<>.
Packit 667938
.tr \(*W-
Packit 667938
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
Packit 667938
.ie n \{\
Packit 667938
.    ds -- \(*W-
Packit 667938
.    ds PI pi
Packit 667938
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
Packit 667938
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
Packit 667938
.    ds L" ""
Packit 667938
.    ds R" ""
Packit 667938
.    ds C` ""
Packit 667938
.    ds C' ""
Packit 667938
'br\}
Packit 667938
.el\{\
Packit 667938
.    ds -- \|\(em\|
Packit 667938
.    ds PI \(*p
Packit 667938
.    ds L" ``
Packit 667938
.    ds R" ''
Packit 667938
.    ds C`
Packit 667938
.    ds C'
Packit 667938
'br\}
Packit 667938
.\"
Packit 667938
.\" Escape single quotes in literal strings from groff's Unicode transform.
Packit 667938
.ie \n(.g .ds Aq \(aq
Packit 667938
.el       .ds Aq '
Packit 667938
.\"
Packit 667938
.\" If the F register is turned on, we'll generate index entries on stderr for
Packit 667938
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
Packit 667938
.\" entries marked with X<> in POD.  Of course, you'll have to process the
Packit 667938
.\" output yourself in some meaningful fashion.
Packit 667938
.\"
Packit 667938
.\" Avoid warning from groff about undefined register 'F'.
Packit 667938
.de IX
Packit 667938
..
Packit 667938
.nr rF 0
Packit 667938
.if \n(.g .if rF .nr rF 1
Packit 667938
.if (\n(rF:(\n(.g==0)) \{
Packit 667938
.    if \nF \{
Packit 667938
.        de IX
Packit 667938
.        tm Index:\\$1\t\\n%\t"\\$2"
Packit 667938
..
Packit 667938
.        if !\nF==2 \{
Packit 667938
.            nr % 0
Packit 667938
.            nr F 2
Packit 667938
.        \}
Packit 667938
.    \}
Packit 667938
.\}
Packit 667938
.rr rF
Packit 667938
.\"
Packit 667938
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
Packit 667938
.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
Packit 667938
.    \" fudge factors for nroff and troff
Packit 667938
.if n \{\
Packit 667938
.    ds #H 0
Packit 667938
.    ds #V .8m
Packit 667938
.    ds #F .3m
Packit 667938
.    ds #[ \f1
Packit 667938
.    ds #] \fP
Packit 667938
.\}
Packit 667938
.if t \{\
Packit 667938
.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
Packit 667938
.    ds #V .6m
Packit 667938
.    ds #F 0
Packit 667938
.    ds #[ \&
Packit 667938
.    ds #] \&
Packit 667938
.\}
Packit 667938
.    \" simple accents for nroff and troff
Packit 667938
.if n \{\
Packit 667938
.    ds ' \&
Packit 667938
.    ds ` \&
Packit 667938
.    ds ^ \&
Packit 667938
.    ds , \&
Packit 667938
.    ds ~ ~
Packit 667938
.    ds /
Packit 667938
.\}
Packit 667938
.if t \{\
Packit 667938
.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
Packit 667938
.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
Packit 667938
.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
Packit 667938
.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
Packit 667938
.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
Packit 667938
.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
Packit 667938
.\}
Packit 667938
.    \" troff and (daisy-wheel) nroff accents
Packit 667938
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
Packit 667938
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
Packit 667938
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
Packit 667938
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
Packit 667938
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
Packit 667938
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
Packit 667938
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
Packit 667938
.ds ae a\h'-(\w'a'u*4/10)'e
Packit 667938
.ds Ae A\h'-(\w'A'u*4/10)'E
Packit 667938
.    \" corrections for vroff
Packit 667938
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
Packit 667938
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
Packit 667938
.    \" for low resolution devices (crt and lpr)
Packit 667938
.if \n(.H>23 .if \n(.V>19 \
Packit 667938
\{\
Packit 667938
.    ds : e
Packit 667938
.    ds 8 ss
Packit 667938
.    ds o a
Packit 667938
.    ds d- d\h'-1'\(ga
Packit 667938
.    ds D- D\h'-1'\(hy
Packit 667938
.    ds th \o'bp'
Packit 667938
.    ds Th \o'LP'
Packit 667938
.    ds ae ae
Packit 667938
.    ds Ae AE
Packit 667938
.\}
Packit 667938
.rm #[ #] #H #V #F C
Packit 667938
.\" ========================================================================
Packit 667938
.\"
Packit 667938
.IX Title "INDEXMAKER 1"
Packit 667938
.TH INDEXMAKER 1 "2018-07-13" "2.17.7" "mrtg"
Packit 667938
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
Packit 667938
.\" way too many mistakes in technical documents.
Packit 667938
.if n .ad l
Packit 667938
.nh
Packit 667938
.SH "NAME"
Packit 667938
indexmaker \- Creates index files for mrtg web sites (mrtg\-2.17.7)
Packit 667938
.SH "SYNOPSIS"
Packit 667938
.IX Header "SYNOPSIS"
Packit 667938
indexmaker [options] mrtg.cfg [other.cfg ...]
Packit 667938
.SH "OPTIONS"
Packit 667938
.IX Header "OPTIONS"
Packit 667938
.Vb 1
Packit 667938
\& \-\-output=filename   set output filename (default: stdout)
Packit 667938
\&
Packit 667938
\& \-\-filter title=~regexp  select targets by matching regexp against titles
Packit 667938
\& \-\-filter pagetop=~regexp  select targets by matching regexp against pagetop
Packit 667938
\& \-\-filter name=~regexp  select targets by matchin regexp against name
Packit 667938
\&
Packit 667938
\& \-\-addhead=text      insert this text between </TITLE> and </HEAD>
Packit 667938
\& \-\-title=text        set title of generated index file
Packit 667938
\& \-\-subtitle=text     add a subtitle to the generated index file
Packit 667938
\& \-\-bodyopt=text      set body tag options
Packit 667938
\& \-\-headlevel=number  use <Hnumber> at top of page (default: 1)
Packit 667938
\& \-\-pagetop=text      insert this text between <BODY> and 

...

Packit 667938
\& \-\-pageend=text      insert this text after the main body
Packit 667938
\& \-\-pagetopend=text   use this text for pagetop or pageend if undefined
Packit 667938
\& \-\-nolegend          do not add the Mrtg legend at the end of the page
Packit 667938
\&
Packit 667938
\& \-\-columns=number    show graphs in a table with x columns (default: 2)
Packit 667938
\& \-\-perhost           show graphs of the same host on a row
Packit 667938
\& \-\-compact           try to make a vertically more compact page
Packit 667938
\& \-\-optlog            log the used command line in the page (default: log)
Packit 667938
\&
Packit 667938
\& \-\-sort=title        sort graphs by title
Packit 667938
\& \-\-sort=name         sort graphs by their name
Packit 667938
\& \-\-sort=descr        sort graphs by their description
Packit 667938
\& \-\-sort=original     leave as is (default)
Packit 667938
\&
Packit 667938
\& \-\-enumerate         add a sequence number to the title of each graph
Packit 667938
\&
Packit 667938
\& \-\-picfirst          place pictures before text (default: text first)
Packit 667938
\& \-\-width=number      set width of graphs (default: not set)
Packit 667938
\& \-\-height=number
Packit 667938
\& \-\-sidebyside        place text / pictures side by side (default: above/below)
Packit 667938
\& \-\-bold              use bold text (default: bold)
Packit 667938
\& \-\-clicktext         make the text link to the inner page (like the image)
Packit 667938
\&
Packit 667938
\& \-\-show=day          pick which graph to show in the index (default)
Packit 667938
\& \-\-show=week
Packit 667938
\& \-\-show=month
Packit 667938
\& \-\-show=year
Packit 667938
\& \-\-show=none
Packit 667938
\&
Packit 667938
\& \-\-section=h1        h1 tag from pagetop as section heading (default)
Packit 667938
\& \-\-section=title     title as section headings for graphs
Packit 667938
\& \-\-section=name      graph name as section heading
Packit 667938
\& \-\-section=descr     graph description as section heading
Packit 667938
\& \-\-section=ifname    interface name (ifName) as section heading
Packit 667938
\& \-\-section=portname  port name entry in pagetop as section heading
Packit 667938
\& \-\-sectionhost       Try to prepend the host to the section heading if missing
Packit 667938
\&
Packit 667938
\& \-\-rrdviewer=path    path to rrdviewer (default: /cgi\-bin/14all.cgi)
Packit 667938
\& \-\-icondir=path      path to icondir
Packit 667938
\& \-\-prefix=path       path from the location of the index.html to the graphs
Packit 667938
\& \-\-headeradd=string  add string to the html page header
Packit 667938
\& \-\-autoprefix        try to set prefix automatically
Packit 667938
\& 
Packit 667938
\& \-\-<opt>\-file=file   read string argument for option <opt> from file
Packit 667938
.Ve
Packit 667938
.SH "DESCRIPTION"
Packit 667938
.IX Header "DESCRIPTION"
Packit 667938
\&\fBIndexmaker\fR can create web pages which display the status of an
Packit 667938
array of mrtg interface status pages.
Packit 667938
.IP "\fB\-\-output\fR \fIfilename\fR" 4
Packit 667938
.IX Item "--output filename"
Packit 667938
set output filename (default: stdout)
Packit 667938
.IP "\fB\-\-filter\fR (\fBtitle\fR|\fBpagetop\fR|\fBname\fR)(\fB=~\fR|\fB!~\fR)\fIregexp\fR" 4
Packit 667938
.IX Item "--filter (title|pagetop|name)(=~|!~)regexp"
Packit 667938
Several filters may get set.  Each filter can match agains the contents
Packit 667938
of a specific section of the mrtg config file. \fBName\fR refers to the
Packit 667938
bit in square brackets (option[name]: bla).
Packit 667938
.Sp
Packit 667938
Depending on the match operator chosen (\fB=~\fR or \fB!~\fR) the match will be
Packit 667938
positive or negative.
Packit 667938
.Sp
Packit 667938
Note that some shells consider \fB!\fR a special character.  It may be
Packit 667938
necessary to type \fB\e!~\fR instead.
Packit 667938
.IP "\fB\-\-title\fR \fItext\fR" 4
Packit 667938
.IX Item "--title text"
Packit 667938
Set title of generated index file (default: regexp)
Packit 667938
.IP "\fB\-\-bodyopt\fR \fItext\fR" 4
Packit 667938
.IX Item "--bodyopt text"
Packit 667938
The value of this argument gets appended to
Packit 667938
the <\s-1BODY\s0> tag. This allows you to set document colors.
Packit 667938
By default this option is set to
Packit 667938
.Sp
Packit 667938
.Vb 1
Packit 667938
\& bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000" alink="#000000"
Packit 667938
.Ve
Packit 667938
.IP "\fB\-\-columns\fR \fInumber\fR" 4
Packit 667938
.IX Item "--columns number"
Packit 667938
Display graphs in a table with \fInumber\fR columns (default: 2)
Packit 667938
.IP "\fB\-\-sort\fR \fBtitle\fR|\fBname\fR|\fBdescr\fR|\fBoriginal\fR" 4
Packit 667938
.IX Item "--sort title|name|descr|original"
Packit 667938
Sort the graphs in the page either by \fBtitle\fR, by \fBname\fR, by interface
Packit 667938
\&\fBdescr\fRiption, or leave them as is.
Packit 667938
.IP "\fB\-\-enumerate\fR" 4
Packit 667938
.IX Item "--enumerate"
Packit 667938
Add a sequence number to the title of each graph
Packit 667938
.IP "\fB\-\-width\fR \fInumber\fR" 4
Packit 667938
.IX Item "--width number"
Packit 667938
Set width of graphs
Packit 667938
.IP "\fB\-\-height\fR \fInumber\fR" 4
Packit 667938
.IX Item "--height number"
Packit 667938
Set the height of the graphs
Packit 667938
.IP "\fB\-\-show\fR \fBday\fR|\fBweek\fR|\fBmonth\fR|\fByear\fR|\fBnone\fR" 4
Packit 667938
.IX Item "--show day|week|month|year|none"
Packit 667938
Select which graph to show in the index page. You can supress images
Packit 667938
completely with \fB\-\-show=none\fR.
Packit 667938
.IP "\fB\-\-section\fR \fBh1\fR|\fBtitle\fR|\fBname\fR|\fBdescription\fR|\fBportname\fR" 4
Packit 667938
.IX Item "--section h1|title|name|description|portname"
Packit 667938
Select what to use as the title for each graph in the page.  \fBh1\fR is
Packit 667938
the H1 section from pagetop, \fBtitle\fR is the graph title, \fBname\fR is
Packit 667938
the bit in square brackets (option[name]: bla), and \fBdescr\fR or
Packit 667938
\&\fBdescription\fR is the text from the Description field of the PageTop
Packit 667938
(the Cisco description text if it's available, otherwise just the
Packit 667938
interface description). \fBportname\fR is the \f(CW\*(C`Port Name:\*(C'\fR from pagetop.
Packit 667938
.IP "\fB\-\-sectionhost\fR" 4
Packit 667938
.IX Item "--sectionhost"
Packit 667938
Extract the hostname from the target line (this does not work if the 
Packit 667938
target is a mathematial expression). Prepend the hostname (and a colon)
Packit 667938
to the section if not already present.
Packit 667938
.IP "\fB\-\-rrdviewer\fR \fIpath\fR" 4
Packit 667938
.IX Item "--rrdviewer path"
Packit 667938
If you have set the \fBLogFormat: rrdtool\fR property in the mrtg.cfg
Packit 667938
file, the index will take this into account. The only thing you must
Packit 667938
tell it is the path to your grapher cgi. (default: /cgi\-bin/14all.cgi)
Packit 667938
.IP "\fB\-\-prefix\fR \fIpath\fR" 4
Packit 667938
.IX Item "--prefix path"
Packit 667938
By  default we assume    that  the file generated by indexmaker is stored in
Packit 667938
\&\fIWorkDir\fR.  If you want to  store it somewhere   else, specify how to reach
Packit 667938
\&\fIWorkDir\fR  from  the place where the Index is stored. Note that you have to
Packit 667938
use '/' as path separator as this will be used in urls. Speaking of which,
Packit 667938
you can even enter a whole url.
Packit 667938
.IP "\fB\-\-autoprefix\fR \fIpath\fR" 4
Packit 667938
.IX Item "--autoprefix path"
Packit 667938
Requires \-\-output.
Packit 667938
Try to generate the prefix automatically by comparision of the path to the
Packit 667938
output file set with \-\-output and the Htmldir set in the configuration files.
Packit 667938
Particulary useful when multiple configuration files are specified, with
Packit 667938
different Htmldir settings.
Packit 667938
.IP "\fB\-\-optlog\fR" 4
Packit 667938
.IX Item "--optlog"
Packit 667938
Default is logging in the generated page the command line, suppress with
Packit 667938
\&\-\-nooptlog . Useful if the commandline contains a complex \-\-pagetop=string
Packit 667938
which could confuse simple browsers.
Packit 667938
.IP "\fB\-\-someoption\-file\fR \fIfilename\fR" 4
Packit 667938
.IX Item "--someoption-file filename"
Packit 667938
For any someoption which takes a \fIstring\fR as parameter you can read the
Packit 667938
string from a file by adding <\-file> to the option keyword. The whole 
Packit 667938
content of the file will be read and used as the \fIstring\fR. The file must
Packit 667938
exist.
Packit 667938
.SH "AUTHOR"
Packit 667938
.IX Header "AUTHOR"
Packit 667938
Tobias Oetiker <tobi@oetiker.ch>
Packit 667938
.SH "LICENSE"
Packit 667938
.IX Header "LICENSE"
Packit 667938
\&\s-1GNU\s0 General Public License
Packit 667938
.SH "COPYRIGHT"
Packit 667938
.IX Header "COPYRIGHT"
Packit 667938
2000\-2001 Tobias Oetiker <tobi@oetiker.ch>