| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Display unwanted graph when monitor active calls on voice gw http://www.steveshipway.org/forum/viewtopic.php?f=2&t=1162 |
Page 1 of 1 |
| Author: | duyd [ Wed Jul 04, 2007 6:32 pm ] |
| Post subject: | Display unwanted graph when monitor active calls on voice gw |
Dear Steve, Thanks alot for your software routers2.cgi. It's great. I'm using it to monitor active calls on our voice gateway but I got problem with graph. Active calls is alway interger number but I found that all value in graph is non-interger number. It seem an average value. I guess you use current value to draw graph. Pls explain me how did you calculate this value or you get it direct from OID value? Help me fix this issue. Thanks, duyd |
|
| Author: | stevesh [ Thu Jul 05, 2007 10:38 am ] |
| Post subject: | |
MRTG and RRD will normalise retrieved values depending on query time, and will produce averages in the graph based on this. If you set the 'integer' option then they will be rounded to the closest integer (probably what you want). Options[xxxx]: integer You can also set the 'fixunit' option to prevent a 'k' prefix when the number is over 1000. routers.cgi*Options[xxxx]: fixunit |
|
| Author: | duyd [ Thu Jul 05, 2007 9:57 pm ] |
| Post subject: | |
Hi Steve, I configure interval = 1 and step = 60. In your reply, you mean (example) at 8:50 rrd got value of current calls = 40 and at 8:51 rrd got that value = 41 then in the graph, current value at 8:51 is (40+41)/2=40.5 ? Can I show in the graph, current value at 8:50 is 40 and at 8:51 is 41? If yes, pls guide me how to do that. Thanks. duyd. |
|
| Author: | stevesh [ Fri Jul 06, 2007 10:58 am ] |
| Post subject: | |
It is more that, if your interval is 5min, and you store a value of 40 at 12:01, then it will store against 12:00 the value of 40 modified slightly line line with the value at 11:55. This is because it normalises the values to fit in with the RRD granularity. More details are on the RRD website. EG: 11:55 value is 10. At 12:01 you store a value of 16. However, the granularity is 5min, and so a straight line is drawn between these points and the value at 12:00 is determined to be 15. Therefore, 15 is stored for 12:00. I picked interges in the example but in real lift you'll end up with awkward decimals. A similar thing happens if your granularity is 1min since it works to the second. If you set the 'integer' option then it will store integers and display integers, probably what you want. If you have an interval of 1min set (and you have to do this BEFORE the .rrd file is created otherwise it has no effect) and enable the 6hour graphs in the routers2.conf then you will be able to see the 1-min granularity graphs, and RRD will normalise to the 1-min boundaries, not to the 5-min boundaries. |
|
| Author: | duyd [ Fri Jul 06, 2007 4:36 pm ] |
| Post subject: | |
Thanks for your clearly explaination. It seem the real problem here is the granularity is still 5 mins although interval is 1 min and view in 6-hours graph. I read carefully all post relate to this problem in our forum but still can not solve it as your guide. I install MRTG in windows. |
|
| Author: | stevesh [ Mon Jul 09, 2007 12:52 pm ] |
| Post subject: | |
The easiest way to fix this, then, is to delete the .rrd file for this target, and allow MRTG to re-create it with a 1-min interval. Unfortunately this will result in your losing all your data history. To keep the data history would require a lot of work to dump the data, convert it, and reload. You'd need to be fluent in some sort of scripting to do this and it is a bit complex. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|