Unknown values, Averages, missing data points

"James Tutton" <[email protected]>
Newsgroups gmane.network.cacti.user
Message-ID <061513ED8ADA274E855F9ED3A9A0F42BB677BC@MAX-ELS-EX01.azurgroup.net>
Hi All,

 

Got a little issue trying to make availability from an RRD datasource.
Basically have a ping latency rrd and using the Unknown values to
signify downtime.  That bit is fine.

 

And is using 

        cdef=CURRENT_DATA_SOURCE,UN,INF,0,IF

if anybody else wants it.  Then just graph that as red  area or whatever
on the graphs.

 

 

The bit I am having issue with is the total % availability as such. This
currently uses a CDEF of

          cdef=CURRENT_DATA_SOURCE,UN,0,100,IF

and in most cases I get an AVERAGE of 100 for a day for a device that
was available.  

 

The issue I have in cacti if I view a graph on the tree for last day @
12:03 for example I get an average back of 99.65 

 

What I think is happening is as there isn't data for 12:03 so I am
getting an unknown value back which is being converted to 0 by the CDEF.


 

(86400 Seconds-300 Seconds / 86400 Seconds =99.65% ~ (Full Day - 1
DataPoint) / Full Day

 

So what I effectively need is some way of say if first/last value in
dataset is UNKNOWN then set it to 100 not 0 otherwise its safe to assume
device was down.  Any help would be appreciated.

 

Regards

 

James Tutton



 

 

 



DISCLAIMER:This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. It may contain information which is privileged, proprietary and/or confidential within the meaning of applicable law. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender of this message as soon as possible. The views or opinions expressed in this message are those of the author and may not necessarily be the views held by Maxima Holdings plc. Maxima Holdings plc trading as Redstone. Registered office: Newton House, Cambridge Bu
 siness Park, Cowley Road, Cambridge CB4 0WZ. Registered in England. 5043538. VAT Number - 728778184

This message has been scanned for malware by Websense. www.websense.com
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.