<DIV>Sorry about the confusion. Actually I was talking about pnp graphics. </DIV>
<DIV> </DIV>
<DIV>The check_mrtgtraf plugin got the correct traffic value from the mrtg log file -- e.g., 2 KB/s or 800 B/s. I just want the 800B/s to automatically convert to 0.8KB/s via the check_mrtgtraf plugin (OR via pnp).<BR></DIV>
<DIV>Today with my colleague's help, I edited and recompiled check_mrtgtraf.c, removed the "report in/outgoing traffic in Bytes/sec" parts and "report in/outgoing traffic in MBytes/sec" parts. Now the output for the plugin is 0.8KB/s. And the pnp graphics look good, too. It's great! </DIV>
<DIV> </DIV>
<DIV>Anyway, thanks for your help, guys!</DIV>
<DIV> </DIV>
<DIV><includetail>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="COLOR: #000">
<DIV style="PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: Arial Narrow; FONT-SIZE: 12px; PADDING-TOP: 2px">------------------ Original ------------------</DIV>
<DIV style="FONT-SIZE: 12px">
<DIV id=menu_sender><B>From: </B> "Marc Powell"<marc@ena.com>;</DIV>
<DIV><B>Date: </B> Mon, Nov 9, 2009 11:38 PM</DIV>
<DIV><B>To: </B> "Nagios-Users Mailinglist"<nagios-users@lists.sourceforge.net>; </DIV>
<DIV></DIV>
<DIV><B>Subject: </B> Re: [Nagios-users] problem with check_mrtgtraf</DIV></DIV>
<DIV> </DIV><BR>On Nov 8, 2009, at 10:19 PM, AJay wrote:<BR><BR>> hi, all<BR>>       My nagios is 3.2.0 with pnp-0.4.14 and I installed  <BR>> mrtg-2.14.5-2. I use the default plugin check_mrtgtraf to monitor  <BR>> interface traffic. Our system is not online yet, so the traffic is  <BR>> very low -- sometime 2 KB/s, sometime 800 B/s. Everything works fine  <BR>> except for the graphics. When the traffic is 2 KB/s, the graphics  <BR>> records 2 and unit is KB/s. When the traffic is 800 B/s, the  <BR>> graphics records 800 and the unit changes to B/s. It seems like the  <BR>> graphics only cares about the numbers and ignores the unit, so that  <BR>> makes my MAX traffic 800 KB/s. This is definitely not right. My  <BR>> questions is, how can I set the unit to fixed KB/s and let the  <BR>> plugin convert 800B/s to 0.8KB/s automatically? Thanks in advance!<BR>><BR>> ps: My mrtg.cfg: Options[_]: growright, bit<BR><BR>Your question is not clear, at least to me, nor is it apparent how  <BR>this is related to nagios. PNP4nagios and mrtg are two different  <BR>things, getting data from two different places. Both use their own RRD  <BR>databases for backends.<BR><BR>RRD files are units-agnostic. They just store a number and it's up to  <BR>the presentation layer to determine what units that number is (bits,  <BR>Kb, Mb, apples falling/second, etc).<BR><BR>If you're having a problem with MRTG graphs, the proper forum would be  <BR>the mrtg listserv.<BR><BR>If you're having a problem with pnp4nagios graphs, the proper forum  <BR>would be pnp4nagios-users.<BR><BR>--<BR>Marc<BR><BR><BR>------------------------------------------------------------------------------<BR>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day <BR>trial. Simplify your report design, integration and deployment - and focus on <BR>what you do best, core application coding. Discover what's new with<BR>Crystal Reports now.  http://p.sf.net/sfu/bobj-july<BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<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></DIV></includetail></DIV>