Strange behavious when using unknaszero

3 messages Options
Embed this post
Permalink
jayashree () Strange behavious when using unknaszero
Reply Threaded More More options
Print post
Permalink
Hi All,

I am using the unknaszero option while displaying certain graphs.

I am using 14all.cgi in the front end to create the pngs.

The funny thing is when I look at the legend at the bottom of the graph, even if there is data on my graph,
The current In value is '0', when there is a data of 2M being plotted in the graph.

When I remove the option from the router config file, and regenerate the pngs, the data is correctly displayed.

I cannot do away with the use of 'unknaszero' option. So is there any fix for this problem or am I doing something incorrectly.
14all version - 14all.cgi,v 2.23 2002/07/13
MRTG version - 2.100015

Appreciate any inputs.

Thanks & regards
jayashree
S Shipway () RE: [mrtg-developers] Strange behavious when using unknaszero
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

This is a known race condition caused by the update time window when using RRDTool.  The Routers2 frontend contains some special code to avoid this problem.

 

Basically, if your updates occur at 12:04 and you are generating the graph at 12:01, you are in the 12:00-12:05 ‘bucket’ but the update has not yet occurred.  Therefore, the last value in the graph is Unknown.  14all may hop back to the previous bucket when its unknown and so you get the correct value…  however with unknaszero this unknown is translated to zero, and so the Last value is displayed as zero.

 

There is no fix for this without updating the 14all code to check for the condition and add a backskip, as Routers2 does.

 

Steve

 


From: jayashree (via Nabble) [mailto:[hidden email]]
Sent: Thursday, 8 October 2009 6:15 p.m.
To: Steve Shipway
Subject: [mrtg-developers] Strange behavious when using unknaszero

 

Hi All,

I am using the unknaszero option while displaying certain graphs.

I am using 14all.cgi in the front end to create the pngs.

The funny thing is when I look at the legend at the bottom of the graph, even if there is data on my graph,
The current In value is '0', when there is a data of 2M being plotted in the graph.

When I remove the option from the router config file, and regenerate the pngs, the data is correctly displayed.

I cannot do away with the use of 'unknaszero' option. So is there any fix for this problem or am I doing something incorrectly.
14all version - 14all.cgi,v 2.23 2002/07/13
MRTG version - 2.100015

Appreciate any inputs.

Thanks & regards
jayashree


View message @ http://n2.nabble.com/Strange-behavious-when-using-unknaszero-tp3786031p3786031.html
To start a new topic under MRTG Developers Mailinglist, email [hidden email]
To unsubscribe from MRTG Developers Mailinglist, click here.

 

jayashree () Re: [mrtg-developers] Strange behavious when using unknaszero
Reply Threaded More More options
Print post
Permalink
Hi Steve,
 
Thanks a lot for your input. I have managed to achieve the backskip in 14all as well thanks to the much needed pointer about routers2.cgi.
 
Thank you once again.
 
Cheers,
jayashree