<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Awesome thank you! I finally got the images to show and it the routers2.cgi is looking much better than 14all in my opinion. The issue was due to having incorrect permissions for my webserver to read those files.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am currently viewing the 6hr graph on Routers2 and it is working fine but it is only updating every 1 minute. My mrtg.cfg file has the interval set at 0:30 for thirty seconds but the cgi is not updating on
 that interval which was what I was hoping to accomplish. Is there something that I have to change in the routers2.conf file to make the statistics and graphs be updated every 30 seconds rather than one minute for the 6hr graph?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jimmy Patel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Steve Shipway [<a href="mailto:s.shipway@auckland.ac.nz">mailto:s.shipway@auckland.ac.nz</a>]
<br>
<b>Sent:</b> Tuesday, August 18, 2015 4:43 PM<br>
<b>To:</b> Jimmy Patel<br>
<b>Subject:</b> RE: MRTG-RRD PNG update interval<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">In the routers2.conf, you need to make sure that graphurl=/graphs and graphpath=/var/www/graphs  (so that one is the URL and one is the actual filesystem path)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">If you are still unable to see the graphs (you get a ‘broken image’ in the browser) then this will indicate that either the graphs are not being created, or the web server cannot access them.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">Since you have confirmed that the graphs do exist in the directory, check the permissions in the web server.  Have you granted access to the files in this path?  Make sure you do not have htaccess
 files or other configurations restricting it – maybe you have a stricter web server setup that only grants access to specific locations?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">Routers2 has a config test page --  /cgi-bin/routers2.cgi?page=verify  -- and this will try to identify common errors.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">Also, check if you have SELinux enabled – this can sometimes deny read to certain locations, though in general it really doesn’t like RRDTool at all unless you make a lot of settings.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">I suspect that the issue with 14all is that it was written when the smallest interval possible with MRTG was 1 minute.  Since you are using 0:30 (30s) it may take that as being 30minutes and set
 the update frequency accordingly.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-NZ" style="color:#1F497D">Steve Shipway<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:10.0pt;color:#1F497D"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:1.0pt;color:#1F497D">(GNU Terry Pratchett)<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Jimmy Patel [<a href="mailto:jimmy@Brocade.com">mailto:jimmy@Brocade.com</a>]
<br>
<b>Sent:</b> Wednesday, 19 August 2015 11:25 a.m.<br>
<b>To:</b> Steve Shipway; <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<b>Subject:</b> RE: MRTG-RRD PNG update interval<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you for the response. After testing 14all, I noticed that any interval less than 1min caused the png update to be prolonged. When I keep the 14all graphing interval to be 1min, everything works fine. I
 would like to get finer intervals so I am now using Routers2.cgi. Unfortunately, I am not able to get the png images of my graphs to show on my browser. I can see the graphs in my /var/www/graphs directory and they are being updated but for some reason these
 graphs are not showing on the browser. I have checked the routers2.conf file and the graphpath matches the directory. The graphurl is /graphs but if I change it to /var/www/graphs nothing happens. I have also checked the permissions on the .png’s and the browser
 should be able to get the images so I am not quite sure on what the issue is.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jimmy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Steve Shipway [<a href="mailto:s.shipway@auckland.ac.nz">mailto:s.shipway@auckland.ac.nz</a>]
<br>
<b>Sent:</b> Monday, August 17, 2015 2:58 PM<br>
<b>To:</b> Jimmy Patel; <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<b>Subject:</b> RE: MRTG-RRD PNG update interval<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">The 14all script will normally give you a ‘daily’ graph, which will have the stats rolled up to 5min intervals, and so will update every 5min.   All MRTG-created RRD files support the standard daily(5min),
 weekly (30min), monthly (2h) and yearly(1d) RRA granularities, though you can set the interval itself lower or higher.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">If you want to have the stats at a higher granularity – such as the 30s granularity you have configured your RRD for and are running MRTG at – you will need to customise it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">The Routers2 frontend will spot a shorter interval, and will enable an additional graph called ‘6 hourly’, which uses a 1minute interval.  I;ve not tested how RRDTool behaves with a 30s RRD, but
 RRDTool may well use the 30s interval as this is what is available and so your ‘6h’ graph would have the higher granularity in this case.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">If you want to use 14all, you may be forced to modify the code in order to support this more detailed graph, or write custom rrdcgi scripts.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-NZ" style="color:#1F497D">Steve Shipway<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:10.0pt;color:#1F497D"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:1.0pt;color:#1F497D">(GNU Terry Pratchett)<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-NZ" style="color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> rrd-users [<a href="mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch">mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</a>]
<b>On Behalf Of </b>Jimmy Patel<br>
<b>Sent:</b> Tuesday, 18 August 2015 4:49 a.m.<br>
<b>To:</b> <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<b>Subject:</b> [rrd-users] MRTG-RRD PNG update interval<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-NZ"><o:p> </o:p></span></p>
<p class="MsoNormal">Hello, I am using MRTG with RRD tools to view my network statistics. My Interval for MRTG is “:30” and my script is running every 30seconds. I know that my RRD is being updated every 30sec but my statistics on the 14all.cgi are not being
 updated on that interval. I want the .png graphs to be updated on the interval but it is taking 3-5minutes to show the plots on the graphs. Any help would be tremendous.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Jimmy<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>