[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Display unwanted graph when monitor active calls on voice gw

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 8:21 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Jul 04, 2007 6:32 pm 
Offline
User

Joined: Wed Jul 04, 2007 5:53 pm
Posts: 3
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


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 10:38 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 9:57 pm 
Offline
User

Joined: Wed Jul 04, 2007 5:53 pm
Posts: 3
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.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 10:58 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 4:36 pm 
Offline
User

Joined: Wed Jul 04, 2007 5:53 pm
Posts: 3
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.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Jul 09, 2007 12:52 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group