| 1 | < | <? | 
 
 
 
 
 
 
 
 
 | 1 | > | <?php | 
 
 
 
 
 
 
 
 
 
 
 | 2 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 |  | # The rrd directory containing the images | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | $imgdir = "/home/pkg/iscream/public_html/graphs"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 66 |  | $hex_lbracket = "_29"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 67 |  | # + converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 68 |  | $hex_plus = "_2B"; | 
 
 
 
 
 
 
 
 | 69 | + | # # converted to a decimal then hex'd | 
 
 
 
 
 
 
 
 | 70 | + | $hex_hash = "_23"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 72 |  | # The name Disk information should be displayed as | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 73 |  | if(preg_match("/^disk-(\S+)$/", $string, $matches)) { | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 99 |  | $string = preg_replace("/$hex_lbracket/", "(", $string); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 100 |  | $string = preg_replace("/$hex_rbracket/", ")", $string); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 101 |  | $string = preg_replace("/$hex_plus/", "+", $string); | 
 
 
 
 
 
 
 
 | 102 | + | $string = preg_replace("/$hex_hash/", "#", $string); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 103 |  | return "Network IO: $string"; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 104 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 105 |  |  |