[mrtg] Pages for multiple devices + Example of rrdtool config

ITheodoridis at bankofgreece.gr ITheodoridis at bankofgreece.gr
Wed Mar 18 12:55:27 CET 2015


About both issues (1&2)
Steve is the man. He has worked so much on the subject, I have his book
(on MRG with Routers2) and enormous respect for him. 
I am monitoring a few thousands of ports with mrtg. I am not using
Routers2 (because I don't understand it enough to transform the ui the
way I need to).
Instead I have created an hierarchical traditional html 4 based website
(in fact it's spread between 5 mrtg servers to handle the load of the
metrics) that is used for navigation among the different equipment
pages. I had my own reasons in doing so as well as some that have to do
with who is using the site inside the company network. That of course
induces a lot of administrative cost. If you want to do it, keep in mind
that the tag you use in the mrtg config inside the brackets is the name
of the page that is to be created. For example:
######################################################################
# System: LARISSA-133
# Description: Cisco IOS Software, 2801 Software
(C2801-ADVENTERPRISEK9-M), Version 12.4(24)T3, RELEASE SOFTWARE (fc2)
#          Technical Support: http://www.cisco.com/techsupport
#          Copyright (c) 1986-2010 by Cisco Systems, Inc.
#          Compiled Tue 23-Mar-10 08:14 by prod_rel_team
# Contact:
# Location: YPOKATASTHMA-133
######################################################################

### Interface 1 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip:
'x.y.133.z' | Eth: '30-78-30-30-31-61-61-31-35-30-38-39-38-61' ###

Target[LARISSA-133_Fa0_0]: #Fa0/0:bog at x.y.z.133:::::2

That means that a web page named LARISSA-133 will be created if you use
the native mrtg mode (the same filename base will be used for your image
files and log). If you are using mrtg with rrd it depends on what cgi
script you are basing it. If you use Steve's work (Routers2) it's a
whole framework, follow his instructions. If you are using the
mrtg-rrd.cgi script then you basically have to understand that the url
you are using will be dependent on the hierarchy described by the mrtg
cfg files you are using. Also the mrtg-rrd.cgi file has to contain the
list of all mrtg config files you are using so it can be aware of what
calls to make.
For example, I am using this url to access the web page I described
above 
http://mksusemrtg03/cgi-bin/mrtg-rrd.cgi/ypokblue/larissa-133_fa0_0.html
mksusemrtg03 is the name of the server, ypokblue is the working
directory defined in the relative mrtg file and larissa-133_fa0_0.html
is the web page filename as dictated by the tag in brackets like I
explained above.
If I was using native mrtg (without the relative options in the mrtg
config file for rrdtool format) then the url would be 
http://mksusemrtg03/ypokblue/larissa-133_fa0_0.html where this is a
relative path for my page, related to the webroot directory on my mrtg
webserver.
Here is what the mrtg-rrd.cgi file looks like in the part where you
declare your config files (or it can't figure out what your hierarchy
is):
# EDIT THIS to reflect all your MRTG config files
BEGIN { @config_files = qw(/usr/mrtg/ypokblue.cfg
/usr/mrtg/ypokyellow.cfg); }
I have removed the totality of the paths for all the config files I am
using except these two.

My setup is based on Open SuSE machines (most of them now are on 13.2
the rest on 13.1) and I am using the packaged versions (not compiling
from source code).
I hope I have helped some.
All are welcome to comment and provide
corrections/suggestions/criticism.
Big Thanks to the community, Tobie and Steve.
Ioannis Theodoridis


-----Original Message-----


Today's Topics:

   1. Re: Device per Web page (Steve Shipway)
   2. Does anyone have an example of a rrdtool config file
      (Rick Silacci)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Mar 2015 20:54:38 +0000
From: Steve Shipway <s.shipway at auckland.ac.nz>
To: "ryandmilton at outlook.com" <ryandmilton at outlook.com>,
	"mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
Subject: Re: [mrtg] Device per Web page
Message-ID:
	
<5820DC553954E44FA1A36C78323AD14859F3850F at uxcn10-6.UoA.auckland.ac.nz>
Content-Type: text/plain; charset="utf-8"

You should make a separate cfg file for each device, so that you can
have a separate web page for them.  This works whether you use the
Routers2 frontend, 14all, or even native mode.

 

Then, either call MRTG multiple times (once per cfg file) or else create
a ?master? cfg file that uses ?Include: devices/*.cfg? or similar to
include all the components (note that you need the latest MRTG to be
able to use wildcards in the Include statement)

 

If using Native mode MRTG (IE, not with RRDTool) you can then use
indexmaker to build an index page over the multiple device web pages.

 

Steve

 

Steve Shipway

s.shipway at auckland.ac.nz

(GNU Terry Pratchett)

 

From: mrtg
[mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of ryandmilton at outlook.com
Sent: Wednesday, 18 March 2015 2:13 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Device per Web page

 


I have set up a functional mrtg, with two test devices, both Juniper. My
mrtg is running on Ubuntu 14.04.2 LTS, and I installed using the
packages. 

 

What I can't figure out is how I can separate each device to a different
Web page..

 

Thanks, 

 

Ryan 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.oetiker.ch/pipermail/mrtg/attachments/20150317/a0bfd0fc/at
tachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 10311 bytes
Desc: not available
URL:
<http://lists.oetiker.ch/pipermail/mrtg/attachments/20150317/a0bfd0fc/at
tachment-0001.bin>

------------------------------

Message: 2
Date: Tue, 17 Mar 2015 22:11:22 +0000
From: Rick Silacci <rick at velociter.net>
To: "mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
Subject: [mrtg] Does anyone have an example of a rrdtool config file
Message-ID: <A056EA2F870AA84C9358C81276D941A001F09D at vwdc.vw.local>
Content-Type: text/plain; charset="us-ascii"

For multiple devices?



Rick Silacci
Velociter Wireless
1525 Second Street
Escalon, CA
O 209.838.1221
F 209.838.1800
[VWTwitter]

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.oetiker.ch/pipermail/mrtg/attachments/20150317/3ed9f284/at
tachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3715 bytes
Desc: image001.jpg
URL:
<http://lists.oetiker.ch/pipermail/mrtg/attachments/20150317/3ed9f284/at
tachment.jpg>

------------------------------

Subject: Digest Footer

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


------------------------------

End of mrtg Digest, Vol 98, Issue 12
************************************
-------------- next part --------------
==============================================================================================================
?? ??? ????????? ?????? ??????? ??????????? ???. ???? ?????? ???????????? ???????????? ??? ??? ??????? ??? ??????? (???) ???????????? ????????? ???? ??? ?? ???????? ???? ??????????? ?? ?? ?????????? ? ???????? ????????? ? ???? ???????? ??? ???.

?? ?????? ???????????? ???????????? ??????????? ???? ???????????? ????? ??? ????????, ??? ?????? ? ????????? ??????????? ???? ??????????? ??? ?????????. ? ?????????? ??? ? ??? ??? ???????????? ?????? ?????? ??? ???????????, ????????? ??? ????????????, ??????? ? ????????????? ????????? ??? ?????????, ??? ???????, ??????? ? ?????????? ??? ????????? ? ??? ????????? ????? ??? ??? ???? ?? ????? ??? ????? ??????? ? ????? ?????? ??? ??? ??? ????? ???????????? ??????.

??? ?????? ???? ????? ?? ????? ?????? ???????????? ????????????, ??????????? ?? ???????????? ?????? ???? ???????????? ???????????? ??? ????????? ??? ?? ?????????? ?? ??????. ??????????? ??????????, ??????? ? ????? ?????? ? ????????? ??? ????????? ????? ????? ???????????? ??????? ??? ?????? ?? ???????? ??????? ??? ?????? ??????.


Any e-mail message from the Bank of Greece (BoG) is sent in good faith but shall neither be binding nor construed as constituting or affecting a contractual arrangement or other commitment by the BoG.

The e-mail is intended for the exclusive use of the person whose e-mail address appears in caption as recipient. The sender and the BoG decline liability for inaccuracy, breach of integrity, loss or delayed delivery of the message, for any failure in, interruption to or degradation of either the service or the message, as well as for any loss or damage sustained thereof to the fullest extent provided by law.

If this e-mail was not intended for you, please notify the sender immediately via e-mail and delete it at once. Any unauthorized disclosure, dissemination or use, either in whole or in part is strictly prohibited and may give rise to both criminal and civil liability. All rights reserved.
==============================================================================================================




More information about the mrtg mailing list