You need to delete the already created RRD file. Once the RRD file was written, you can't change it anymore (at least not easily).<br>Find the rrd file for your disk service and delete it, e.g. in  /usr/local/nagiosgraph/rrd <br>
You can find the path to your rrd files in the nagiosgraph.conf file or you search for the rrd files on your system.<br>The rrd file should then be recreated with the new map configuration.<br><br>Oh just one more thing: You need to remove the old map entry for check_disk from your map file. Otherwise this one will continue to write the rrd instead of the new map entry.<br>
<br><div class="gmail_quote">On Wed, Dec 14, 2011 at 11:26 AM, James Osbourn <span dir="ltr"><<a href="mailto:james.osbourn@citrix.com">james.osbourn@citrix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I tried adding this map but it did not remove the orginal values from the graph and I could not find where they are stored.  I do not think that the problem is related to 100 vs 1024 as some manual calculations do not match again the value that I am seeing on the graph.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It has been a while since I have played with RRD and I would of expected a standard check command from Nagios to graph correctly.  It just seems to be the RRD interpolation of the performance data as the check command is outputting the correct performance data values.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">James<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Claudio Kuenzler [mailto:<a href="mailto:ck@claudiokuenzler.com" target="_blank">ck@claudiokuenzler.com</a>] <br>
<b>Sent:</b> 13 December 2011 15:43<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Nagios Graph not displaying correct values<u></u><u></u></span></p></div></div><div class="im"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Some of the default Nagiosgraph map entries are strange and behave not as expected.<br>I basically replaced all the existing entries by own ones.<br><br>
If you like you can use the following one:<br><br># Service Type: check_disk<br># Nagiosgraph regex by Claudio Kuenzler<br># Check: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /<br># Output: DISK OK - free space: / 235120 MB (66% inode=95%):<br>
# Perfdata: /=119211MB;298635;335964;0;373294<br>/perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/<br>#/perfdata:(\W)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ # only / partition<br>and push @s, [diskusage,<br>        ['used', GAUGE, $2*1000**2 ],<br>
        ['total', GAUGE, $6*1000**2 ] ];<br><br>Note that this is a very basic graph which shows the total and current partition usage. Feel free to modify it :-)<u></u><u></u></p></div><div><div class="im"><p class="MsoNormal">
On Tue, Dec 13, 2011 at 11:41 AM, James Osbourn <<a href="mailto:james.osbourn@citrix.com" target="_blank">james.osbourn@citrix.com</a>> wrote:<u></u><u></u></p></div><div><div class="im"><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">I have a weird situation where the Nagios Graph values are not the actual values for a filesystem<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Eg I have a filesystem and if I run a df I get<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">$ df -h .</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">Filesystem            Size  Used Avail Use% Mounted on</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">filer01:/vol/data1    443G  400G   44G  91% /mnt/filer01_data1</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">If I run the Nagios check_disk command I get the correct values<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New""># ../libexec/check_disk -w 10% -c 5% -p /usr/groups/sources</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Courier New"">DISK WARNING - free space: /usr/groups/sources 44073 MB (9% inode=48%);| /usr/groups/sources=409354MB;408084;430755;0;453427</span><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">But when you look at the graph the figures are all wrong<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""><u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Has anyone else seen this?  I was going to look at the usage to try and forecast usage but it will now be very hard.  I have just installed Nagios Graph based on the default installation and using the default check_disk plugin.<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif""> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif"">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p>
</div><span class="HOEnZb"><font color="#888888"><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:#888888"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:#888888">James<u></u><u></u></span></p>
</div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:#888888"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:#888888"> <u></u><u></u></span></p>
</div></font></span></div><div class="im"><p class="MsoNormal"><br>------------------------------------------------------------------------------<br>Systems Optimization Self Assessment<br>Improve efficiency and utilization of IT resources. Drive out cost and<br>
improve service delivery. Take 5 minutes to use this Systems Optimization<br>Self Assessment. <a href="http://www.accelacomm.com/jaw/sdnl/114/51450054/" target="_blank">http://www.accelacomm.com/jaw/sdnl/114/51450054/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p>
</div></div></div><br>------------------------------------------------------------------------------<br>
Cloud Computing - Latest Buzzword or a Glimpse of the Future?<br>
This paper surveys cloud computing today: What are the benefits?<br>
Why are businesses embracing it? What are its payoffs and pitfalls?<br>
<a href="http://www.accelacomm.com/jaw/sdnl/114/51425149/" target="_blank">http://www.accelacomm.com/jaw/sdnl/114/51425149/</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>