<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
.hmmessage p
{margin:0px;
padding:0px}
body.hmmessage
{font-size:12pt;
font-family:Calibri}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" class="hmmessage">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Have you considered using rrdcached? This gives a similar improvement in response times. In your case, where you are not so interested in the history, only Nagios checking the
latest value, you can set the rrdcached time to be fairly large and effectively keep everything in memory...<br>
<br>
Steve<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><strong>Steve Shipway</strong></div>
<div style="font-family:Tahoma; font-size:13px">University of Auckland ITS</div>
<div style="font-family:Tahoma; font-size:13px"><em>UNIX Systems Design Lead</em></div>
<div style="font-family:Tahoma; font-size:13px"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family:Tahoma; font-size:13px">Ph: +64 9 373 7599 ext 86487</div>
<div style="font-family:Tahoma; font-size:13px"><em></em> </div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF140777"><font color="#000000" size="2" face="Tahoma"><b>From:</b> mrtg [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Troy Lea [troy_lea@hotmail.com]<br>
<b>Sent:</b> Friday, 30 January 2015 6:13 p.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] MRTG and RAM Disk<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">I've been playing around with the idea of having MRTG use a RAM Disk.<br>
<br>
Specifically on Nagios XI and CentOS.<br>
<br>
I've been successfully able to define the current settings and it does work well.
<br>
<br>
LogDir: /var/nagiosramdisk/mrtg<br>
ThreshDir: /var/nagiosramdisk/mrtg<br>
WorkDir: /var/nagiosramdisk/mrtg<br>
<br>
Using the RAM Disk improves performance, especially once you get into 4000+ ports being queried.<br>
<br>
The only problem I have is when I reboot the server the port files don't exist until the MRTG has run the first time. For example these files:<br>
<br>
ub04_93.rrd<br>
ub04_94.rrd<br>
ub04_95.rrd<br>
ub04_96.rrd<br>
ub04_97.rrd<br>
ub04_98.rrd<br>
<br>
This causes a problem with the check_rrdtraf program that looks for these files. The problem is overcome once MRTG runs the first time.<br>
<br>
I'm wondering if MRTG has an option which will generate all these files without actually doing an SNMP query to all the devices.
<br>
<br>
Does anyone have any thoughts or suggestions on this topic?<br>
<br>
Cheers<br>
<br>
Troy<br>
</div>
</div>
</div>
</div>
</body>
</html>