Routers2 multi line graph example
From Ye Ole Stash
- What to add to individual graphs you want added to larger graphs:
- routers.cgi*Graph[$name_of_existing_targer]: $new_graph_name
- New cfg file
routers.cgi*InMenu[_]:no routers.cgi*InOut[_]:no routers.cgi*InSummary[_]:no include: /path/to/your/cfg/file/example1.cfg include: /path/to/your/cfg/file/example2.cfg routers.cgi*InMenu[]$new_graph_name: yes
Examples
- Quick Ping Example:
ping.cfg (Individual Graphs)
Target[ping-kernel]: `ping -c 1 -n kernel.org | grep avg | awk '{print $4}'| cut -d / -f1,2 | sed 's/\//\n\r/g'`
Title[ping-kernel]: Ping timesto Kernel.org (TimeWarner)
routers.cgi*ShortName[ping-kernel]: Kernel.org
routers.cgi*Graph[ping-kernel]: ALL_PING
Target[ping-googledns01]: `ping -c 1 -n 8.8.8.8 | grep avg | awk '{print $4}'| cut -d / -f1,2 | sed 's/\//\n\r/g'`
Title[ping-googledns01]: Ping times to Googles Primary DNS Server (XO)
routers.cgi*ShortName[ping-googledns01]: Googles Primary DNS Server (XO)
routers.cgi*Graph[ping-googledns01]: ALL_PING
Target[ping-facebook]: `ping -c 1 -n 204.74.66.132 | grep avg | awk '{print $4}'| cut -d / -f1,2 | sed 's/\//\n\r/g'`
Title[ping-facebook]: Ping times to Facebook (TimeWarner)
routers.cgi*ShortName[ping-facebook]: Facebook (Timewarner)
routers.cgi*Graph[ping-facebook]: ALL_PING
Target[ping-ST_MonMouth]: `ping -c 1 -n 209.191.58.2 | grep avg | awk '{print $4}'| cut -d / -f1,2 | sed 's/\//\n\r/g'`
Title[ping-ST_MonMouth]: MonMouth.com Speedtest.net site (TimeWarner)
routers.cgi*ShortName[ping-ST_MonMouth]: MonMouth.com Speedtest.net site (TimeWarner)
routers.cgi*Graph[ping-ST_MonMouth]: ALL_PING
allping.cfg (Shows all graphs)
routers.cgi*InMenu[_]:no
routers.cgi*InOut[_]:no
routers.cgi*InSummary[_]:no
include: /etc/mrtg/mrtg-config/Network/ping.cfg
routers.cgi*InMenu[ALL_PING]: yesNotes
- Use &PseudoZero if you want only 1 graph per rrd