Skip to content

Instantly share code, notes, and snippets.

<?
// Helper Functions for cucm_cdr files
// Convert the signed IP to a long which can be used by ip2long later on
function cucm_cdr_ip_to_long( $signed_int_ip ) {
$hex = dechex($signed_int_ip);
$pad = 8 - strlen($hex);
for ($i = 1; $i <= $pad; $i++)
{
$hex = "0".$hex;
@uck9
uck9 / graphite.md
Created February 19, 2016 05:06 — forked from ashrithr/graphite.md
Installing graphite 0.10, collectd and grafana on centos 6

Installing Graphite:

Graphite does two things:

  1. Store numeric time-series data
  2. Render graphs of this data on demand

What Graphite does not do is collect data for you, however there are some tools out there that know