|
|
|
September 16th, 2009
04:19 pm - Handy script Copyright Chris Terry BSD license Relies on "nail" on local and "sysstat" on remote
#!/bin/bash
TIMESTAMP=`date +%Y%m%d-%H%M%S` DATESTAMP=`date +%Y%m%d` SUBJECT="FAIL at $TIMESTAMP" SENDER="tuba_man@livejarnal.com" COPIES="myotheraddress@gmail.com" RECEIVER="worried_client@comcast.net" SERVER=`hostname`
#server defined in ~/.ssh/config ssh server "sar -A" > /var/log/server_health/$DATESTAMP ssh server "sar -A" > /var/log/server_health/temp
if [ $? == 0 ]; then cp /var/log/server_health/temp /var/log/server_health/current rm /var/log/server_health/temp if [ -e /var/log/server_health/.mailed ]; then /usr/bin/nail -S smtp=172.17.2.50 -r $SENDER -c $COPIES -s "$TIMESTAMP" $RECEIVER < /var/log/server_health/.mailed rm /var/log/server_health/.mailed fi
else #No need to do anything if system continues to stay down if [ ! -e /var/log/server_health/.mailed ]; then cp /var/log/server_health/current /var/log/server_health/$TIMESTAMP /usr/bin/nail -S smtp=172.17.2.50 -r $SENDER -c $COPIES -s "$SUBJECT" $RECEIVER < /var/log/server_health/current echo "$SERVER is back up" > /var/log/server_health/.mailed fi fi
|
March 12th, 2006
09:34 pm - yucky! Alrighty, so I haven't updated in a long-ass time. Thanks Urban, for the nudge. I'm gonna just use this to pimp my new blog at http://tuba-terry.is-a-geek.net:8880/
|
June 29th, 2005
11:48 pm - www.colorquiz.com Alrighty, so I took this personality quiz from colorquiz.com and it's probably the quickest test I've ever taken on the net. It's also, suprisingly enough, the most accurate.
Quote from my results on the site:
Your Existing Situation Avoids excessive effort and needs roots, security, and peaceful companionship.
Your Stress Sources Delights in the tasteful, the gracious, and the sensitive, but maintains his attitude of critical appraisal and refuses to be swept off his feet unless genuineness and integrity can be absolutely vouched for. Therefore keeps a strict and watchful control on his emotional relationships as he must know exactly where he stands. Demands complete sincerity as a protection against his own tendency to be too trusting.
Your Restrained Characteristics Trying to calm down and unwind after a period of over-agitation which has left him listless and devoid of energy. In need of peace and quiet; becomes irritable if this is denied him. Circumstances are forcing him to compromise, to restrain his demands and hopes, and to forgo for the time being some of the things he wants.
Your Desired Objective Desires release from an unsatisfactory situation and from existing burdens which are both depressing and intolerable. Seeking a way out, but feels there is no solution. Tries to protect himself against becoming involved in arguments and conflict.
Your Actual Problem Needs to protect himself against his tendency to be too trusting, as he finds it is liable to be misunderstood or exploited by others. As a result, he adopts a critical and stand-offish attitude, being willing to participate only where he can be assured of sincerity and trustworthiness.
Interesting, eh?
|
June 22nd, 2005
07:07 pm What the hell happened to free speech?
http://www.usatoday.com/news/washington/2005-06-22-flag-burning_x.htm?POE=NEWISVA
WASHINGTON — A constitutional amendment to ban desecration of the U.S. flag moved closer to reality Wednesday when the House of Representatives passed it 286-130.
Here's my take on it, taken from the article:
Opponents warn the amendment would alter the Bill of Rights to exclude an expression of free speech. It "elevates a symbol of freedom over freedom itself," Rep. John Conyers, D-Mich., said. "Once we decide to limit freedom of speech, limitations on freedom of the press and freedom of religion may not be far behind."
Here's what a friend of mine says, and I agree completely: "Now, I'm all for the peremptory kicking in the arse of those who burn the US flag, but how can *I* use my freedom of speech when they can't?!"
I don't want to say more, because I'd just be ranting and repeating myself. That's all for now. Current Mood: aggravated Current Music: Is an Elegy - Youngblood Brass Band
|
June 12th, 2005
11:37 pm - Rant! Here's a bit of a rant I had in response to somebody trying to censor some extremist right-wing nutcase.
Hmm...I'm gonna go out on a limb here and support this guy's right to say what he wants, but I wouldn't mind seeing him punched in the face. This is not nearly as bad as what I heard about at morning muster yesterday.
Check this out: The sergeant comes in with a few pages of printout from a website, http://www.forsakethetroops.info/ (Formerly Citizens Against the Troops)and reads a bit from it. Now this sort of website is obviously not something I'd like to see, and I'd probably punch the author in the face myself, but the sergeant has the gall to promote the accompanying petition to congress to get this site banned from the internet. (Nevermind the fact that things just don't work like that.)
This is why I lean left. The guys on the right (like my sergeant) would like to see the speech they dislike banned. The guys on the left, although they complain and bitch, would (I hope) still prefer that the option to speak is still there.
As soon as we start putting restrictions on free speech, the "free" part becomes null and void. This is the sort of stuff that makes me glad I'm ready to fight for these rights.
Like I said when I signed the contract: "I do solemnly swear to uphold and defend the Constitution of the United States of America against all enemies, foreign and domestic."
|
11:33 pm - Earthquake! I just experienced my first earthquake! I was sitting on the crapper and everything started to move. I thought "hey, who's stomping around upstairs...waitaminute...we don't have an upstairs!" Definitely an exciting event. That's one more natural disaster that I've seen!
|
May 13th, 2005
09:07 pm Haven't updated in ages. Bwahahhahaha. Chillin' in Twentynine Palms, CA. I'm a member of the Combat Center Band. Entertaining, no?
|
March 8th, 2005
07:13 pm - Updated! http://usmctuba.homelinux.org:8880/ is the place to be. Get it while it's hot.
|
06:31 pm - Too much music! I can't host my music myself anymore! We're too popular for our own good, or at least for my cable modem. Over 6 gigs transferred in less than 2 days. We're looking for hosting at the moment. More info as it's available.
|
March 6th, 2005
10:17 pm - Two Bit Brass Band debut! New Demo CD
 This is our brand new CD. Just came in an hour ago. If you like jazz or anything like that, give it a shot.
|
January 27th, 2005
11:49 am - WOOHOO. (Vague Sims2 reference) Yee haw, I get to see my girlfriend for the first time in nearly 5 months tomorrow! YAHOO. Current Mood: elated
|
November 29th, 2004
11:07 pm - Getting into the spirit of things Well, I had fun. I have christmas-lighted my computer. Here is a picture: (I suck at getting reasonable image hosting, so please excuse the ads on the side of the page). http://www.imagedump.com/index.cgi?pick=get&tp=177979 Current Mood: Christmassy Current Music: Groove Salad on SomaFM
|
12:03 am - Hollywood Christmas Parade! wooooo. I was on TV! So fun. For those of you watching WGN earlier this evening (sunday after thanksgiving), I was the center tuba for the Marine Corps Air Ground Combat Center Band. Very fun stuff. Current Mood: excited Current Music: Marine's Hymn
|
November 27th, 2004
07:38 am - UPDATE, I'M NOT DEAD Damn, been a long time since I updated this thing. Just a quick post. Enjoying the place, Hollywood Christmas Parade tomorrow. (We've got 2:30 of airtime!) Got a Nintendo DS (WOOOOOT). Want to get back to my geekdom, damnit! I'm progressing back slowly, but this place is not optimal for that sort of thing.
|
October 16th, 2004
October 4th, 2004
12:34 am - Attempt number two! Well, since the last one didn't quite work, we'll do it this way. Also, my sincerest apologies for the crude advertisements on the side of the image pages. I don't own that site.
First we have me, waiting for muster before graduation day. Very early, I blame the wind for the blur.
Then we've got my sweet darlin' and me, engaging in "unauthorized activity." (Get yer mind out of the gutter, you! It's just a picture). Also, honey, you can smack Green for the blur on this one. ;)
Ah, next up, You and the Cap'n make it happen...or in this case, the Lt. Commander. This is in the Commander's office. Good way to end six-ish months of training, if I do say so myself. Not too much blur in this one, but I think a handshake is a reasonable excuse.
And afterwards, the day's graduates. Look at me, being different again. Damn, I'm tall. Once again, blur continues to be the theme of the day.
TO CALIFORNIA!
Here's the view from the Barracks.
And here's my roommate, with the Platoon Sergeant's dog. What an odd one.
The band, jamming out as we await the latest arrival of troops, returning from Iraq.
And finally, cleaning up, having too much fun, and being the geekiest Marine on the planet. Current Mood: persistent
|
12:27 am - Pictures from my transition Alrighty. Nobody really asked, but the idea was presented, so here are a few pictures from the School of Music and Twentynine Palms!
First we have me, waiting for muster before graduation day. Very early, I blame the wind for the blur.
Then we've got my sweet darlin' and me, engaging in "unauthorized activity." (Get yer mind out of the gutter, you! It's just a picture). Also, honey, you can smack Green for the blur on this one. ;)
Ah, next up, You and the Cap'n make it happen...or in this case, the Lt. Commander. This is in the Commander's office. Good way to end six-ish months of training, if I do say so myself. Not too much blur in this one, but I think a handshake is a reasonable excuse.
And afterwards, the day's graduates. Look at me, being different again. Damn, I'm tall. Once again, blur continues to be the theme of the day.
TO CALIFORNIA!
Here's the view from the Barracks.
And here's my roommate, with the Platoon Sergeant's dog. What an odd one.
The band, jamming out as we await the latest arrival of troops, returning from Iraq.
And finally, cleaning up, having too much fun, and being the geekiest Marine on the planet.
And that is today's trip through recent history. Enjoy! Current Mood: excited
|
October 1st, 2004
09:57 am - Argh! Damn, I'm in 29 Palms, CA. Finally got here and it's all desert! Yes, DRY AIR! Yee haw. Gotta go buy some stuff for the room tho, so I'll post more later, if I remember. In the mean time, here's my mailling address:
Lcpl Christopher Terry HQBN A Co Band Box 788200 Twentynine Palms, CA 92278 Current Mood: Fun
|
|
|