Category Archives: sysadmin
I got tired of updating Asterisk’s externip setting every time my IP address changed, so I wrote this quick script, saved as /usr/local/bin/asterisk_update_externip: #!/bin/bash ip_url=”http://automation.whatismyip.com/n09230945.asp” oldip=`grep externip /etc/asterisk/sip.conf |sed ‘s/;.*//’ |grep -v ^$ |sed s/.*=\ *//` ip=`curl -s “$ip_url” |head … Continue reading
After a search for a check_memory plugin for Nagios turned up only a Korn shell script, I quickly wrote the following in Ruby for Linux, which I hereby release into the public domain. Why? All my servers have Ruby, … Continue reading
Getting text out of your SSH sessions can be annoying. If it fits in a screen, I usually just select the text in PuTTY to copy it– no big deal. Otherwise, I have to either email it to myself or … Continue reading
I was getting some messages from my daily apt-get upgrade script telling me some of my ffmpeg debs needed to be upgraded.
After enabling SSL on a couple of apps, I got an email from one of my cron jobs telling me my SOAP API was no longer working. (This is why you always want to have an entry in /etc/aliases forwarding … Continue reading
Tonight I decided to set up SSL on two internal web apps I’ve been running for a while. I have a wildcard certificate *.stockpr.com just for this purpose. Each app was originally running on a separate hostname on a single … Continue reading
Tonight I spent two hours banging on an EC2 instance that suddenly went awry. I was adding SSL to a couple of internal applications we host on this instance when my “apache2ctl configtest” command hung. I tried all sorts of … Continue reading