May 022008
 

In order to graph the traffic from Akamai, I used to use MRTG calling a PERL/SOAP script which retrieved and combined the data from multiple cpcodes. This proved to be quite inefficient as each combination meant a separate SOAP call. I had thought about injecting the data into Zenoss, but the nature of that project dealt more with SNMP and simple commands and was not the ideal recipient of a multi-faceted SOAP retrieval mechanism.

I finally got a chance to rewrite it this year as a perl script which connects to Akamai, acquires ALL the cpcodes for a particular login and, based on the cpcode name prefix, organizes the data by creating/updating RRD files and graphing them as PNG images (as well as creating MRTG-like HTML files).

Continue reading “Akamai: Collecting and Graphing” »

Apr 282008
 

#!/usr/bin/perl
# Author: Christopher Hahn, 2006

sub usage {
print STDERR <<EOT;
usage:
$0 <match> [<path> [...]]

Find and edit Apache virtual hosts matching <match>

<path> Path to an Apache conf to edit.
If a directory, equivalent to all files in <path>/
If omitted, "./" is assumed

<match> is a PERL regular expression to match against ServerName or
ServerAlias for the virtual host entry you want to edit.

If <match> is not found and <path> evaluates to a single file (extant or not)
a template is provided to append a VirtualHost to the file.
EOT

die "n";
}

Continue reading “Script to locate, edit Apache VirtualHost entries” »


Warning: fopen(/home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.