[mrtg] Three intervals in same graph

Edwin A. Epstein III ed at rhinobee.com
Sat Jul 23 23:24:32 CEST 2016


Hi Thomaz,

As Tobi said, indexmkr can build some HTML pages that you can serve with HTTPD. I recommend reviewing the manual: http://oss.oetiker.ch/mrtg/doc/indexmaker.en.html

"Now can I have 3 intervals in the same graph?
Month at top, week in the middle and day in the bottom ?"

I understood this question as not a request for real time specifically, but custom graphs? If so, I'm not sure this is something that RRDTOOL/Routers2 can help you with. I don't use the routers2.cgi frontend myself (built my own), but the book says Routers2 has additional graph types, of which I think one of them integrates multiple graphs into one.... or just places multiple selections on a single page. I dunno, never used it, and the book isn't that clear on what it does.

However, I would first ask yourself if the HTML file generated by MRTG (summary page not requiring RRDTOOL) wouldn't fit your use case. It's structured as follows:

-> Title (Hostname)
-> Host Details
-> Statistics and Timestamps
-> Daily Graph
-> Daily Stats
-> Weekly Graph
-> Weekly Stats
-> Monthly Graph
-> Monthly Stats

If none that works for you, and you must have an image, I think you could get it done fairly easily with ImageMagick. It's an open source (FOSS actually, IIRC) image manipulation platform. I've used it before to automatically create content based on updated databases, which isn't to terribly different than what you're doing. I highly recommend you looking into this graphics package as it can also overlay all the above text on the graph. My automated content was quite sophisticated with video effects using it, and all I had to work with was some fields and a few images. You would create all 3 graphs as normal throughout the process with MRTG, and then execute an ImageMagick script to create {targetIP}_{interface}-custom.png combined from the 3 images. You can have that one overwrite the daily graph, or modify the summary page HTML to use/include it. See Target configuration in MRTG and the manual for more info on how you create your own custom HTML for the summary page. 

Sincerely, 

Edwin A Epstein, III 
Rhinobee Internet Services 
707.237.7504 ext 209 
707.737.0288 Mobile

----- Original Message -----
From: "mrtg-request" <mrtg-request at lists.oetiker.ch>
To: "mrtg" <mrtg at lists.oetiker.ch>
Sent: Friday, July 22, 2016 3:00:03 AM
Subject: mrtg Digest, Vol 112, Issue 34

Send mrtg mailing list submissions to
	mrtg at lists.oetiker.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
or, via email, send a message with subject or body 'help' to
	mrtg-request at lists.oetiker.ch

You can reach the person managing the list at
	mrtg-owner at lists.oetiker.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mrtg digest..."


Today's Topics:

   1. Another way to analyze ? (Possible?) (thomaz portella)
   2. Three intervals in same graph ? (thomaz portella)
   3. Re: Three intervals in same graph ? (McDonald, Daniel (Dan))


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

Message: 1
Date: Thu, 21 Jul 2016 13:41:18 -0300
From: thomaz portella <thomazp at gmail.com>
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Another way to analyze ? (Possible?)
Message-ID:
	<CAEd1yBPx1r2-vsafiwQXqU=F3D6B7keJoo5yvD9ZgHKAomsnXQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I installed and could run mrtg to analyze my routers.
I start the application, and some time later I access the html, PNG,...
files inside the location I had appointed.
A person here asked me because had listen Could analyze in real time only
inserting the router address in the browser address.
Is it possible ?
Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160721/5406326b/attachment-0001.html>

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

Message: 2
Date: Thu, 21 Jul 2016 16:21:54 -0300
From: thomaz portella <thomazp at gmail.com>
To: Tobias Oetiker <tobi at oetiker.ch>
Cc: mrtg at lists.oetiker.ch
Subject: [mrtg] Three intervals in same graph ?
Message-ID:
	<CAEd1yBPaqBG2KakmjJtCXMMAbMwZiTB7GRVb7dBRPbqA0ckpgw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Now can I have 3 intervals in the same graph?
Month at top, week in the middle and day in the bottom ?
Other question is, the Mrtg sends graph files to a machine directory.
How can visualize this graph using a web service (httpd) ?
To avoid needing to login the mrtg machine ?

On Jul 21, 2016 4:01 PM, "Tobias Oetiker" <tobi at oetiker.ch> wrote:

thomaz,

mrtg has no live view feature ...

cheers
tobi


----- On 21 Jul, 2016, at 20:26, thomaz portella <thomazp at gmail.com> wrote:

I could install and configure mrtg to monitor my routers, but someone
listen Could be possible to run mrtg and monitore in real time, only
putting the router address + some option in the browser.
Is it possible?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160721/0ecddd3d/attachment-0001.html>

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

Message: 3
Date: Thu, 21 Jul 2016 21:58:43 +0000
From: "McDonald, Daniel (Dan)" <Dan.McDonald at austinenergy.com>
To: "mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
Subject: Re: [mrtg] Three intervals in same graph ?
Message-ID: <B019ED22-5E82-46DC-A371-8FAB200D41C1 at austinenergy.com>
Content-Type: text/plain; charset="utf-8"

If you want more flexibility with the graphing system, you should use RRDTOOL as the backend database and a good front-end like routers2.cgi

Yes, you can certainly use rateup based graphs via a web browser.  See indexmaker for a tool to create a reasonable index.


From: mrtg <mrtg-bounces+dan.mcdonald=austinenergy.com at lists.oetiker.ch> on behalf of thomaz portella <thomazp at gmail.com>
Date: Thursday, July 21, 2016 at 14:21
To: Tobias Oetiker <tobi at oetiker.ch>
Cc: "mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
Subject: [mrtg] Three intervals in same graph ?


Now can I have 3 intervals in the same graph?
Month at top, week in the middle and day in the bottom ?
Other question is, the Mrtg sends graph files to a machine directory.
How can visualize this graph using a web service (httpd) ?
To avoid needing to login the mrtg machine ?

On Jul 21, 2016 4:01 PM, "Tobias Oetiker" <tobi at oetiker.ch<mailto:tobi at oetiker.ch>> wrote:
thomaz,

mrtg has no live view feature ...

cheers
tobi


----- On 21 Jul, 2016, at 20:26, thomaz portella <thomazp at gmail.com<mailto:thomazp at gmail.com>> wrote:

I could install and configure mrtg to monitor my routers, but someone listen Could be possible to run mrtg and monitore in real time, only putting the router address + some option in the browser.
Is it possible?
Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160721/04ca6454/attachment-0001.html>

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

Subject: Digest Footer

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


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

End of mrtg Digest, Vol 112, Issue 34
*************************************
(null)



More information about the mrtg mailing list