As some of you might have noticed, I have just recently moved my WordPress installation into a subdirectory of arfore.com.
There are several reasons for this, the main one being that I would like for my blog to become a component of my website rather than the blog being the entire site.
Moving the WordPress installation itself was quite simple, and there are many pages out there describing the process as well as the pitfalls of doing it incorrectly, so I won’t repeat them here.
What was less easy to find was the proper changes to put in the
file to ensure that any existing links would get redirected to the proper location in the moved WordPress setup.
I have my permalinks configured to create a URL like follows:
http://arfore.com/blog/2008/10/12/foo-bar-baz/
In order to add the subdirectory blog to the front of the URL I used the following rule in my
file:
RewriteRule ^([0-9](.*))$ http://arfore.com/blog/$1 [R=301,L]
Similarly, to redirect the categories I used the following:
RewriteRule ^category/(.*)$ http://arfore.com/blog/category/$1 [R=301,L]
Now this may not be the most correct method to accomplish the goal, so if it needs correcting by all means let me know.
My last two posts, Starting NRPE via launchd and Nagios NRPE on OS X Server 10.5, concerned getting NRPE to run on OS X Server 10.5 and having it startup at system boot.
However, this is only part of the battle. Once you have Nagios monitoring setup on your server you also need to have some nice options for checking the availability of your running services.
Tim Wilson from the Savvy Technologist, wrote an NRPE plugin that helps out with this. The plugin check_osx_services does an excellent job of checking on the status for many services running on 10.5 Server.
The documentation on the plugin at the NagiosExchange site is pretty thorough. One thing that is not mentioned is that you will need to run the check_osx_services script as superuser since it calls the system level command serveradmin which must be run as root.