OK. I am trying to graph data that comes from a windows performance counter that continually increments until the process restarts. I am trying to get the graph to show 0 when the counter remains unchanged from the last polling cycle. And only show the difference between the current and last polling cycle. Like the way the Interface Traffic graphs do. When I create the data template and set the Data Source Type on the Data Source Item as GUAGE I get what I expect. The graph continually increments right along with the performance counter. There was no surprises for me there. Here is what is in the RRD:
Code: Select all
1176992700: nan nan nan nan
1176993000: 2.2000000000e+01 1.0000000000e+00 0.0000000000e+00 2.1000000000e+01
1176993300: 2.2000000000e+01 1.0000000000e+00 0.0000000000e+00 2.1000000000e+01
1176993600: nan nan nan nan
However when I change the Data Source Type to COUNTER and create a new data source I see odd data when I fetch it out of the RRD.
It looks like this:
Code: Select all
1176990900: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
1176991200: 2.4858757062e-03 0.0000000000e+00 0.0000000000e+00 2.4858757062e-03
1176991500: 8.4745762712e-04 0.0000000000e+00 0.0000000000e+00 8.4745762712e-04
1176991800: 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
I am not sure how to make this happen. Are CDEFs the answer to my problem? I did some research and RPN is over my head so I hope not.
I would be grateful for any help or point in the right direction.