On 13/04/07, <b class="gmail_sendername">Eric Brander</b> <<a href="mailto:mailinglists@rednarb.com">mailinglists@rednarb.com</a>> wrote:<div><span class="gmail_quote"></span><div><br>First - thanks for taking the time to answer my questions.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="q"><span class="gmail_quote">On 4/12/07, <b class="gmail_sendername">
Amos Shapira</b> <<a href="mailto:amos.shapira@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">amos.shapira@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I've setup MRTG to graph the throuput of some internal software using an external program and it worked well for a few weeks.<br><br>Yesterday we took down all the monitored services for a major database overhaul and since then MRTG records the service's throughput as zero even though the external program continue to show increasing counters of work done.
</blockquote></span><div><br>Unknownaszero handles this.</div></div></blockquote><div><br>It's not set in my configuration. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">For instance running the external program outputs:
<br><br>5990344<br>5990344<br>0<br><br>And a few seconds later it will show:<br>
<br>
5990414<br>5990414<br>0</blockquote></span></div></blockquote><div><br>Here are new samples, taken exactly 10 seconds apart:<br><br>6588843<br>6588843<br>0<br><br>6588904<br>6588904<br>0<br><br>The difference is 61, which suggest to me
6.1 per second.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Nothing has changed in the program or the MRTG configuration during that time.</blockquote><div><br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here is the relevant part from that counter's config file:<br><br>Target[total]: `total-ti-counter /mnt/monitored/*/total.txt`
<br>MaxBytes[total]: 50<br>Directory[total]: total<br>Title[total]: Total</blockquote></span><div><br>There should me a lot more relevant info in your config file. This doesn't show the whole picture.<br> </div></div>
</blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
MaxBytes is way more than the expected throughput (the throughput based on the numbers above are 7.8 per second) but even setting it to 1000 instead of 50 doesn't help change the situation.
<br><br>What could be wrong?<br><br></blockquote></span></div><br>What does your .log file look like? Does MRTG error when it runs against this config and if so what is the error? What polling interval are you running? Any options such as perminute, perhour, etc. Bits or Bytes?
</blockquote><div><br>Here is the top of the log file:<br><br>1176419402 6585458 6585458<br>1176419402 0 0 0 0<br><br></div>Then these are zero's all the way back to just before the monitored services were taken down, where it gives normal looking numbers.
<br>I executed MRTG manually many times, also with --debug. No errors are given.<br>The polling interval is set to 5 minutes through cron job.<br>No other options are set. What you see there is all there is (the only field I dropped from the e-mail was the "PageTop" setting).
<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From the sample output you gave it looks like its more than 50, heck in the 2 samples over only a "few seconds" the difference is 70. And depending on that interval, you could easily exceed 1000 over a 5-minute polling cycle. Without knowing more I'd think your maxbytes setting is wrong by a handful of zeros. Your
total.log file will show 2 entries and a bunch of zeros if the maxbytes is too low.</blockquote><div><br>I though that MaxBytes is about the maximum expected speed of change, not the total absolute counter value. (for instance when monitoring a LAN card - MAxBytes will be about the maximum expected number of bytes the card can transfer PER SECOND, not how many bytes the card can send or receive in a 5 minute interval) For instance at the above sample of 61 in 10 seconds, MaxBytes would be compared to
6.1 for one second, not the absolute increase of 1830 in 5 seconds, would it?<br><br>I'll try to increase MaxBytes to 5000 and see what happens.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-- <br><span class="sg">Eric Brander
</span></blockquote></div><br><br>Thanks,<br><br>--Amos<br><br>