[mrtg] MRTG - RRD & Routers2 - 4 objects per graph
McDonald, Dan
Dan.McDonald at austinenergy.com
Wed May 27 16:22:35 CEST 2009
On Wed, 2009-05-27 at 03:36 -0700, IamQ wrote:
> All,
>
> This feels like asking a bit of a dumb question... Google in this case has
> not been my friend : \
>
> I'm trying to plot 4 (or 6) items onto 1 graph but don't see any obvious
> examples of how its done.
collect your items in normal 2-plot rrds, then combine them using
routers.cgi*Graph. Here is an example of the number of concurrent voip
calls from multiple devices:
$ grep ALL_CALLS *
1-voip.cfg:routers.cgi*Graph[1-voip.example.net.call]: ALL_CALLS
2-voip.cfg:routers.cgi*Graph[2-voip.example.net.call]: ALL_CALLS
3-voip.cfg:routers.cgi*Graph[3-voip-example.net.call]: ALL_CALLS
4-voip.cfg:routers.cgi*Graph[4-voip.example.net.call]: ALL_CALLS
5-voip.cfg:routers.cgi*Graph[5-voip.example.net.call]: ALL_CALLS
$cat 1-voip.cfg
Target[1-voip.example.net.call]: CnTWaLKcvCommonDcCallActiveCoderTypeRate&PseudoZero:public:foo at 811-voip-vg-2.austin-energy.net::3:1:1:3
SnmpOptions[1-voip.example.net.call]: authkey=>'0xbf',authprotocol=>'sha',privprotocol=>'aescfb128',username=>'bar',privkey=>'0x4f'
MaxBytes[1-voip.example.net.call]: 24
routers.cgi*Graph[1-voip.example.net.call]: ALL_CALLS
Options[1-voip.example.net.call]: gauge, noo
$ cat all.cfg
routers.cgi*InMenu[_]:no
routers.cgi*InOut[_]:no
routers.cgi*InSummary[_]:no
include: /var/mrtg/cfg/voip/1-voip.cfg
include: /var/mrtg/cfg/voip/2-voip.cfg
include: /var/mrtg/cfg/voip/3-voip.cfg
include: /var/mrtg/cfg/voip/4-voip.cfg
include: /var/mrtg/cfg/voip/5-voip.cfg
routers.cgi*InMenu[ALL_CALLS]: yes
Then, when I select the all.cfg file, I get a graph named ALL_CALLS with
5 lines
--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090527/ae4336ba/attachment.bin
More information about the mrtg
mailing list