INDEXMAKER(1)

πŸ“¦
version 2.17.10 Β· 2 versions
  • 2.17.10 Β· alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 2.17.7 Β· centos-stream 9
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

indexmaker β€” creates index files for mrtg web sites (this is the mrtg-2.17.10 manual, bestie πŸ’–)


πŸ¦‹ SYNOPSIS πŸ¦‹

indexmaker [options] mrtg.cfg [other.cfg ...]

✨ OPTIONS ✨

  • --output=filename β€” sets the output filename (default: stdout). no file? it just screams into your terminal πŸ’…
  • --filter title=~regexp β€” hand-pick targets by matching a regexp against their titles
  • --filter pagetop=~regexp β€” hand-pick targets by matching a regexp against pagetop
  • --filter name=~regexp β€” hand-pick targets by matching a regexp against name
  • --addhead=text β€” drops this text in between </TITLE> and </HEAD>
  • --title=text β€” sets the title of the generated index file
  • --subtitle=text β€” adds a subtitle to the generated index file, cute
  • --bodyopt=text β€” sets the body tag options
  • --headlevel=number β€” uses <Hnumber> at the top of the page (default: 1)
  • --pagetop=text β€” inserts this text between <BODY> and <H1>...</H1>
  • --pageend=text β€” inserts this text after the main body
  • --pagetopend=text β€” uses this text for pagetop or pageend if undefined
  • --nolegend β€” do not add the Mrtg legend at the end of the page
  • --columns=number β€” shows graphs in a table with x columns (default: 2)
  • --perhost β€” shows graphs of the same host on a row
  • --compact β€” tries to make a vertically more compact page
  • --optlog β€” logs the used command line in the page (default: log)
  • --sort=title β€” sorts graphs by title
  • --sort=name β€” sorts graphs by their name
  • --sort=descr β€” sorts graphs by their description
  • --sort=original β€” leaves them as is (default)
  • --enumerate β€” adds a sequence number to the title of each graph
  • --picfirst β€” places pictures before text (default: text first)
  • --width=number β€” sets the width of graphs (default: not set)
  • --height=number β€” sets the height of graphs
  • --sidebyside β€” places text / pictures side by side (default: above/below)
  • --bold β€” uses bold text (default: bold)
  • --clicktext β€” makes the text link to the inner page (like the image)
  • --show=day β€” picks which graph to show in the index (default)
  • --show=week β€” same but the week one
  • --show=month β€” same but the month one
  • --show=year β€” same but the year one
  • --show=none β€” shows literally no graph, images fully suppressed
  • --section=h1 β€” uses the h1 tag from pagetop as the section heading (default)
  • --section=title β€” uses the title as section headings for graphs
  • --section=name β€” uses the graph name as section heading
  • --section=descr β€” uses the graph description as section heading
  • --section=ifname β€” uses the interface name (ifName) as section heading
  • --section=portname β€” uses the port name entry in pagetop as section heading
  • --sectionhost β€” tries to prepend the host to the section heading if it's 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 β€” adds string to the html page header
  • --autoprefix β€” tries to set the prefix automatically
  • --<opt>-file=file β€” reads the string argument for option <opt> from a file

πŸ’« DESCRIPTION πŸ’«

okay so the whole vibe here is: Indexmaker can create web pages which display the status of an array of mrtg interface status pages. iconic behavior honestly πŸ‘‘

  • --output filename β€” sets the output filename (default: stdout)
  • --filter (title|pagetop|name)(=~|!~)regexp β€” you can set several filters, like stack them up. each filter can match against the contents of a specific section of the mrtg config file. name refers to the bit in square brackets (option[name]: bla).

depending on the match operator you pick (=~ or !~), the match will be positive or negative.

heads up bestie: some shells treat ! as a special character 😭 you may need to type \!~ instead.
  • --title text β€” sets the title of the generated index file (default: regexp)
  • --bodyopt text β€” the value of this argument gets appended to the <BODY> tag. this lets you set document colors. by default this option is set to:
bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000" alink="#000000"
  • --columns number β€” displays graphs in a table with number columns (default: 2)
  • --sort title|name|descr|original β€” sorts the graphs in the page either by title, by name, by interface description, or leaves them as is.
  • --enumerate β€” adds a sequence number to the title of each graph
  • --width number β€” sets the width of graphs
  • --height number β€” sets the height of the graphs
  • --show day|week|month|year|none β€” selects which graph to show in the index page. you can suppress images completely with --show=none. periodt.
  • --section h1|title|name|description|portname β€” selects what to use as the title for each graph in the page. h1 is the H1 section from pagetop, title is the graph title, name is the bit in square brackets (option[name]: bla), and descr or description is the text from the Description field of the PageTop (the Cisco description text if it's available, otherwise just the interface description). portname is the "Port Name:" from pagetop.
  • --sectionhost β€” extracts the hostname from the target line (this does not work if the target is a mathematical expression). prepends the hostname (and a colon) to the section if it's not already there.
  • --rrdviewer path β€” if you've set the LogFormat: rrdtool property in the mrtg.cfg file, the index will take that into account. the only thing you have to tell it is the path to your grapher cgi. (default: /cgi-bin/14all.cgi)
  • --prefix path β€” by default we assume that the file generated by indexmaker is stored in WorkDir. if you want to store it somewhere else, specify how to reach WorkDir from the place where the Index is stored. note that you have to use / as the path separator, since this will be used in urls. speaking of which β€” you can even enter a whole url. slay 🌈
  • --autoprefix path β€” requires --output. tries to generate the prefix automatically by comparison of the path to the output file set with --output and the Htmldir set in the configuration files. particularly useful when multiple configuration files are specified, with different Htmldir settings.
  • --optlog β€” default is logging the command line in the generated page; suppress it with --nooptlog. useful if the commandline contains a complex --pagetop=string which could confuse simple browsers.
  • --someoption-file filename β€” for any someoption which takes a string 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 string. the file must exist.

πŸ‘‘ AUTHOR πŸ‘‘

Tobias Oetiker <tobi@oetiker.ch> β€” the main character who wrote this fr fr


πŸ“œ LICENSE πŸ“œ

GNU General Public License


2000-2001 Tobias Oetiker <tobi@oetiker.ch>


and that's the whole thing bestie πŸ’– this was INDEXMAKER(1) from mrtg 2.17.10, dated 2022-01-19 β€” go make some index files, you got this 🫢✨