February 2006 Archives

Apache Virtual Host Wildcard

| | Comments (0)
This is something I've always wondered about but never bothered to try...
ServerName mail.cthought.com ServerAlias mail.*
Basically as we have been providing more and more virtual hosting for email I have been looking for a better way to manage the webmail virtual hosting. Adding a server configuration directive every time I needed to insert a new company name is a little cumbersome. Thankfully Apache does support wildcard records in the serveralias field. Time to play around with this more.

Graph 10 GigE Links with Cacti

| | Comments (0)
I recently ran into a problem where Cacti was not graphing 10 GigE links on a Cisco 6509 Chassis. A friend of mine recommended a workaround of creating a 64bit graph and then switching the graph to a 95th Percentile after the fact. No matter what I did the system just did not want to properly collect the information. Thanks to the Cacti Forums I was able to resolve the problem by manually altering the rrd file to allow for more data. First you want to check the settings for the rrd file:
# rrdtool info file.rrd ds[traffic_in].max = 1.0000000000e+08 ds[traffic_in].last_ds = "649239500934920" ds[traffic_out].max = 1.0000000000e+08 ds[traffic_out].last_ds = "1154119467695233"
Notice that the last_ds values are larger than what the max supports. I increased this to unlimited with the following command:
# rrdtool tune file.rrd -a traffic_in:U # rrdtool tune file.rrd -a traffic_out:U
And the system is graphing exactly as it should. I need to look into the code and change the default rrd creation from 32bit to 64bit - is there really any reason why you would want it the other way?

Difficult Choices

| | Comments (0)
# uptime
 6:08AM  up 349 days,  6:17, 2 users, load averages: 2.04, 1.33, 0.69
This machine is running FreeBSD 4.11-Stable, as much as I am tempted to run a make world I just really don't want to reboot it.

About this Archive

This page is an archive of entries from February 2006 listed from newest to oldest.

January 2006 is the previous archive.

March 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

View Max Clark's profile on LinkedIn
Powered by Movable Type 4.1