Bardgett, Jim | 26 Mar 17:57 2015

mtrg install -> libgd install

It’s been some time since I’ve installed MRTG and libgd appears to be using CMAKE. Glad to see Dr. O and you are still here!

 

Anyone installed libgd with cmake or any method which 2.1.1 will install with? I’m not able to use yum or apt. The target system is centos/rhel. I  know this is an mrtg list, but I was hoping someone had done this recently, after all this feeds into the process. My apologies to people or the monitors if this is not the appropriate way to place to ask.

 

Thanks!

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
ITheodoridis | 18 Mar 12:55 2015
Picon

Pages for multiple devices + Example of rrdtool config

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 {  <at> 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
************************************
==============================================================================================================
Με την επιφύλαξη παντός νομίμου δικαιώματός μας.
Κάθε μήνυμα ηλεκτρονικού ταχυδρομείου από την
Τράπεζα της Ελλάδος (ΤτΕ) αποστέλλεται καλόπιστα
αλλά δεν τη δεσμεύει ούτε ερμηνεύεται ως να
συνιστούσε ή επηρέαζε συμβατική ή άλλη δέσμευση της ΤτΕ.

Το μήνυμα ηλεκτρονικού ταχυδρομείου προορίζεται
προς αποκλειστική χρήση του προσώπου, του οποίου η
διεύθυνση αναγράφεται στην επικεφαλίδα του
μηνύματος. Ο αποστολέας και η ΤτΕ δεν αναλαμβάνουν
καμμία ευθύνη για ανακριβειες, παραβίαση της
ακεραιότητας, απώλεια ή καθυστερημένη διαβίβαση
του μηνύματος, για αστοχία, διακοπή ή υποβάθμιση της
υπηρεσίας ή του μηνύματος καθώς και για κάθε εξ αυτού
του λόγου απώλεια ή ζημία καθόλη την υπό του νόμου
προβλεπόμενη έκταση.

Εάν λάβατε κατά λάθος το παρόν μήνυμα ηλεκτρονικού
ταχυδρομείου, παρακαλούμε να ειδοποιήσετε αμέσως
μέσω ηλεκτρονικού ταχυδρομείου τον αποστολέα και
να διαγράψετε το μήνυμα. Οποιαδήποτε ανακοίνωση,
διάδοση ή χρήση μέρους ή ολόκληρου του μηνύματος
χωρίς άδεια απαγορεύεται αυστηρά και μπορεί να
επιφέρει ποινική και αστική ευθύνη.

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.
==============================================================================================================

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 17 Mar 23:11 2015
Picon

Does anyone have an example of a rrdtool config file

For multiple devices?

 

 

 

Rick Silacci

Velociter Wireless

1525 Second Street

Escalon, CA

O 209.838.1221

F 209.838.1800

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 17 Mar 20:30 2015
Picon

Adding devices to mrtg.cfg

I'm only able to add 5 IP's. Indexmaker is not creating the html file for anything after that. Also, now when I open any of the html file I get this:

WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).
pbu_isWindowPrivate <at> resource://gre/modules/PrivateBrowsingUtils.jsm:25:14
pbs< <at> resource://unity/observer.js:38:71
Observer.prototype.observe <at> resource://unity/observer.js:77:24
<at> chrome://browser/content/content.js:35:5
addTab <at> chrome://browser/content/tabbrowser.xml:1654:13
loadOneTab <at> chrome://browser/content/tabbrowser.xml:1385:23
openLinkIn <at> chrome://browser/content/utilityOverlay.js:331:14
openUILinkIn <at> chrome://browser/content/utilityOverlay.js:200:3
BrowserOpenTab <at> chrome://browser/content/browser.js:11213:3
BrowserOpenNewTabOrWindow <at> chrome://browser/content/browser.js:16738:5
oncommand <at> chrome://browser/content/browser.xul:1:1

 

Rick Silacci

Velociter Wireless

1525 Second Street

Escalon, CA

O 209.838.1221

F 209.838.1800

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
ryandmilton | 17 Mar 14:13 2015

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 


_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 13 Mar 19:48 2015
Picon

Monitoring multiple devices with MRTG

Is there a way to do this without making a separate cfg file?  I have 2000 devices I need to monitor.

 

Thanks

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 11 Mar 17:48 2015
Picon

Trying to run: cp -av /var/www/html/mrtg/*.png /var/www/html/mrtg/

Error message:  cp: cannot stat ‘var/www/html/mrtg/*png /var/www/html/mrtg

 

Hope you can help

 

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 11 Mar 17:09 2015
Picon

Trying to run: indexmaker --output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg

Error message: 

 

ERROR: CFG Error in “workdir”, file /etc/mrtg/mrtg.cfg line 23: Working directory var/www/html/ does not exist

 

 

All these directories do exist.

 

Thanks for any help

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 10 Mar 23:09 2015
Picon

ERROR: unable to open config file: Also CP: Cannot Stat No such file or directory

Getting this error message when I try to do this: indexmaker --output=/var/www/html/mymrtg/index.html /etc/mrtg/mymrtg.cfg

 

 

Getting the CP error when trying to run this:  cp -av /var/www/html/mrtg/*.png /var/www/html/mymrtg/

 

 

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 10 Mar 16:38 2015
Picon

MRTG graphs - "In" is constantly <at> 4000 k and out is constant <at> about 20k

And MRTG doesn’t run constant.  It only runs for a second after I run the startup command.  Any ideas?

 

Thanks

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

_______________________________________________
mrtg mailing list
mrtg <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Rick Silacci | 9 Mar 23:52 2015
Picon

http://your-ip-here/mymrtg/

Step # 6 First test run for mrtg

(a) Run mrtg command from command line with your configuration file, enter:

# mrtg /etc/mrtg/mymrtg.cfg

Note: You may get few warning message for the first time; please ignore them.

(b) Fire your favorite web browser (like FireFox ) and type the url http://www.your-name.com/mymrtg/ or http://your-ip-here/mymrtg/

 

Can someone explain step B to me?

 

Thanks

 

 

Rick Silacci

Velociter Wireless

209.838.1221 x107

 

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

Gmane