mrtg and apache

Yes, I’m a stats freak. So, here’s how you get mrtg to plot your Apache server activity. (Note, I’ve been told that mod_watch also does this, but I have not looked at it yet.)

Here’s /usr/local/bin/apache-stats :

#!/usr/bin/perl
#
# apache-stats 
use LWP::Simple;

my $stats=get("http://servername/server-status?auto");
$stats =~ s/.*BusyServers: (d+)//;
my $b = $1;
print "$bn";
$stats =~ s/.*IdleServers: (d+)//;
print $b + $1 . "n";
print "nn";

Note that in Apache 2.0, you want “BusyThreads” rather than “BusyServers”, and similarly for IdleThreads.

Then, in your mrtg.cfg,

Target[apache_child]: `/usr/local/bin/apache-stats`
MaxBytes[apache_child]: 100000
Options[apache_child]: growright,gauge,nopercent,dorelpercent
Title[apache_child]: Apache Statistics
PageTop[apache_child]: <h1>Active Apache child processes</h1>
XSize[apache_child]: 500
YSize[apache_child]: 200
WithPeak[apache_child]: dwmy
YLegend[apache_child]: No. of child processes
ShortLegend[apache_child]: processes
LegendI[apache_child]:  active:
LegendO[apache_child]:  total: 

Tweak as needed. That should get you started.

Investigating war deaths

CNN.com – U.S. investigates checkpoint shooting – Apr. 1, 2003

I’m finding myself continually comparing the events of the last few weeks to World War II. One of the things I’ve found interesting is stories like the one above. People died in a war, and we are conducting an investigation. Had this happened in WWII, it would have been noted as casualties of war, and that would be it.

The other area in which the comparison is interesting is our (the public’s) attitude towards the enemy. In WWII, the enemy were barely human, and things I’ve read from the time speak of them in terms that would be considered deeply politically incorrect today, even among people strongly supporting the war.

I suppose the story above really is about our attitude about the enemy. Saddam Hussein is the enemy, and the people in his nation are merely victims. And while this was at least as much the case in 1940’s Germany, we certainly did not view it that way.

I heard a fascinating quote on the news today, from an Iraqi soldier who had defected. It was something like “Why are the Americans bombing innocent Iraqi soldiers?” Huh?

Back from vacation

As is always the case, the frustrations that the vacation was supposed to get me away from, were all here waiting for me as soon as I got back. Note to self: Nap first, then check mail. Dummy.

Vacation

03-3-26 19:59

This morning, I drove down to Gatlinburg, and this afternoon was spend hiking. I’ve come to an important conclusion. I need new hiking boots.

The boots that I have were bought at a Salvation Army sale. they are Nike hiking boots, which usually go for about $80. I got them much cheaper than that, for two reasons. First of all, for strange unscrutable tax reasons, the Salvation Army can’t charge more than $5 for any item at a sale like that. And, secondly, the reason that Nike had given them to the army in the first place was that they were mismatched by a half size. this did not seem to matter much at the time, but apparently my feet have grown a little since then, and, while the left one still fits nicely, the right one squnches my toes just enough to make it painful after a long hike.

So, why an I in Tennessee? Well, the oficial reason is “no apparent reason.” I needed to get away, and I needed to do something fun. Life is getting me down, and I would like to spend a few days not thinking about it.

On the way here, I stopped at the Smoky Mountain Knife Showroom, which is apparently the largest knife store in the world. Having had my entire knife collection stolen last summer, I decided to drop in and start with the basics, and got a Swiss Army Knife, which I used to have about 6 of.

After finding my tent site – $14 a night for a spot to pitch a tent – I went hiking. I started up Laurel Falls, but when I got there I kept going, and went all the way up to Coves Mountain. I presume that there is supposed to be a nice view from there, but I just could not say, since I had about 10 yards of visibility the whole way, having climbed into the cloud cover immediately after passing the falls. The hike was 4 miles each way, so I am quite tired.

There is no cell phone signal at the camp site, so I had to drive 6 miles down to the main road to call Sarah to say good night. For the most part, I like being unreachable. I am typing this on my Visor with my StowAway keyboard, because I know that if I tried to write it on paper, it would take me 7 times as long, and my hands would start hurting. The only other technology I brought with me was my GPS, with which I hope to find come caches, if I have the time tomorrow. I really have not decided what I’m going to do tomorrow. I’ll sort of play it by ear, except that I would like to go to Chimney Rock, or whatever it is called, where we used to go all the time in College.

From my tent, I can hear the stream. That’s about all I can hear. It is very nice. When I was up on the mountain, I stopped to listen, and it was almost entirely silent. It is so hard to find anywhere that is silent. When I climbed Mount Kenya, we stopped about an hour below the summit, and listened, and it was absolutely silent. No birds. No machines. Not even any insects. I don’t think I have ever heard absolute silence since then. I suspect that most people will go through their entire lives and never experience complete silence.

Anyways, it is getting rather cold, so I think that I will get in my sleeping bag and read a while before I go to sleep. I’ll probably stay up until some of the camp noises stop. There’s an occasional vehicle, and the sounds of people getting ready for the night. And some joker just beeped their horn.

03-3-27 18:01

Today I made the rather alarming discovery that I am not 19 anymore. I think that I must have been 19 the last time I went up the Chimney Tops trail, and I remember that it was a pleasant stroll. Perhaps I remember it a little better than it was, but it was certainly not the painful ordeal that today’s hike was.

The original plan was to do Chimneys in the morning, and Clingman’s Dome in the afternoon. the former is just 2 miles, the latter about 4. However, after the 8 miles yesterday, my legs were screaming this morning, and the 2 was quite enough. I’ll need to come back some other time to do Clingman’s. Perhaps come down some Saturday, camp the night, and then hike it Sunday morning.

Anyways, I made it to the top of Chimneys, and got some good pictures (I think) before my batteries died. We’ll see, when I get home, if they are really any good. And as I forgot that I had spare batteries in the camera case, I did not take any more pictures today.

I went down to Pigeon Forge for lunch, and, presumably, to get some groceries for dinner. But I decided to save myself the trouble, and just had dinner in town. I spent most of the aftnoon napping and reading, rather than hiking. So apparently I’m getting old.

I also discovered today that it is impossible to really get away. There’s always someobody that needs to track me down, and it is seldom pleasant.

I remember, in College, getting into Bill’s Dad’s car, and seeing the mobile phone. It was huge. And I was amazed by it. Could he really make calls from his car, while driving down the road? And, of course, they were called mobile, not cellular, because nobody knew what cellular meant. Every American adult today knows more about cellular technology than just about anybody did 15 years ago. So, from just a few years ago, when it was a luxury item, the cell phone has become a standard, almost expected, accessory, for everyone to carry. And when I fail to return a phone message within 12 hours, it becomes a crisis. This strikes me as silly, and profoundly annoying. Most of the point of this vacation was to get away from exactly those annoyances.

I received one phone call on Wednesday, but the caller, upon discovering that I was on vacation, immediately said goodbye and that he’d talk to me later. That was fine. The other call left no fewer than 7 messages, in increasing degrees of consternation, as though my failure to answer somehow constituted a personal insult. And, upon finally speaking to this person, it was to answer a question which was immediately obvious, given 12 seconds of thought. There are times when I profoundly loathe technology

</rant>

This evening I had dinner at Huck Finn’s, where I had more catfish than I could possibly have eaten, along with ENORMOUS frog legs and gator tail. Yummy. There was at least as much left as I had eaten, but, alas, as I told Shannon, my lovely waitress, I don’t have a fridge in my tent.

Tomorrow, I will go back home. I brought information ffor a number of geocaches, but I really don’t think that I’m going to take the time to look for them. I think I’ll just go home,take a long hot shower, and get a nice long nap. I managed to sleep OK last night, but it was rather cold, and the floor is very hard. I expect I’ll be a little worn out by the time I get home.

Today’s quote

“You can go out, you can take a ride, and when you get out on your own you get all smoothed out inside, and it’s good to be alone.” (face up, rush, 1991)

Wolf Blass Yellow Label Cab

I’m finishing up the Wolf Blass Yellow Label Cabernet Sauvignon (2001) that we opened on Sunday. It is still pretty yummy, although not as good as it was on Sunday. I find it interesting that the President’s Selection, which is always a few dollars more, is invariably not as good. What’s up with that? This is slightly tannic, with jammy, smoky aromas and plum and cherry in the mouth. Good with bread and oil, or by itself. Would also be great with a nice hearty steak, I expect – it always has been in the past.

Wine tasting: Barbera and Ruffino

I started doing this earlier, but my laptop battery ran out before I could get things properly shut down. I hate it when that happens.

So, anyways, The Wine Shop, in Nicholasville, had a wine tasting yesterday, in which they poured two italian wines:

Ruffino 2001 Orvieto Classico (d.o.c.)

Orvieto Classico is a white wine from italy – specifically from Umbria – and is composed of Grechetto, Drupreggio, Procanico and Trebbiano Toscano. Ruffino is an estate in Tuscany, and has a wonderful web site contaning a lot of information about their wines.

Although I caught a little bit of a nutty aroma, mostly I detected pear and tangerine, which was pretty cool. The taste was light, somewhat sweet, and bright (if that makes any sense – like a mouthfull of light – interesting sensation) and in the taste I found more of the nuts I had been told to expect. I suppose, for the most part, I’d rather people not tell me what to expect, because then I wonder if it is just the power of suggestion, or if it is really there.

The color is a wonderful straw color, reminiscent of summer.

This would be really good with an herbed chicken, or perhaps a baked fish – but then I tend to think that everything is good with baked fish, so you might want to discount that one! 🙂 Not everyone would agree with me on this, but I actually think that this would make a great sipping wine while sitting on the deck with a good book. It has enough sweetness to stand on its own, but also enough character and body to work with a meal.

Next, we tasted the:

Michele Chiarlo 2000 Barbera d’Asti (d.o.c.)

Barbera is red wine, made from the Barbera grape. Asti is a region in Italy. You can read more about Barbera d’Asti wines here.

If you have not had many (or any) Barberas, this is a good one to start with, as it has all the characteristics that I expect in a Barbera. It has a lovely dark ruby color, and the smoky, dark berry aromas that I want from a Barbera.

I felt, at the tasting, that this really would be a lot better with a meal – perhaps something simple, yet flavorful – like, say, spaghetti. So I got a bottle and brought it home, and made some spaghetti. Fortunately, I was right. The meal brought out the wonderful smoky flavor, as well as the plums and, perhaps, a little bit of strawberry (?) to go along with the rich berry flavors that just kept getting better as the wine opened up (having been just a little tart and acidic immediately after opening.)

Highly recommended, particularly if you like big, bold reds.

Additional notes: Italian wine labels can be hard to read – figuring out which is the producer, which is the appelation, and what the other stuff is, can be a little hard, particularly if you don’t speak any italian. There’s a good guide to reading wine labels at LeesMarket.com, including information about Italian labels.

upside-down flag

This morning I drove past a house where the flag was flying upside down. While I assume that this is in protest against the war, I did a little research on the reason, if any, for flying the flag upside down under correct flag etiquette.

“The flag should never be displayed with the union down, except as a signal of dire distress in instances of extreme danger to life or property.”

Now, having read this, I presume that this could be done for a number of reasons, and it is not clear, on the face of it, whether this is done as a protest against the actions of our nation, or in support of them. I guess this would largely depend on the age of the person occupying the house, and how old they were during WWII. But I could be way off base.

It is worthwhile, however, looking at the variety of web sites out there about flying the flag upside down, and the reasons given for it. Most of them are astonishingly shallow and narrow-minded, but a number of them are well thought out. I’ll leave it ambiguous which ones I think are which, and likewise will leave my opinions on our military action ambiguous.

God bless our men and women at the front, and God bless America.

Boycot Domain Registry of America

Today I received a bill from Domain Registry of America. (I won’t give them the satisfaction of providing a link to their web site, but if you care, it is droa dot com.) It was for the renewal of my domain name, rcbowen.com, which, they claim, is to expire on May 24, 2003. Two things are important here. First, the domain is not scheduled to expire on the stated date. Secondly, it is not registered with, nor has it ever been registered with, this registrar. This tactic is intentionally designed to mislead busy people into thinking that it is merely a bill, missing the fine print, and transferring their domain to these swindlers. Not only are they being unethical, but their prices are outlandish – $25 for a year, $40 for two years.

I encourage you to boycot this den of thieves, and, if you have any domains registered there, to transfer them to Dotster, or any of the other registrars that actually conduct themselves ethically.

The Margin Is Too Narrow