We have various scripts on a server that process files that are uploaded to a specific directory so we needed a way to monitor these directories and verify that all files are being processed. Once they are processed on our server they are moved to different directory so the file count should never get over a certain amount of files. The below script assumes that you have NRPE installed on the server so you can reference the bash script locally. Follow the directions below with some monitor modifications and you can monitor directories for the number of files with Nagios very easily.
A friend of mine let me know about a vulnerability in Redmine today so I decided to upgrade to the latest stable release. Upgrading Redmine is easy but figured I would log the exact steps I took to upgrade from Redmine 0.8.3 to Redmine 0.8.7. The installation of Redmine I upgraded is running off of a MySQL database. Also the upgrade is easier since it was a minor version upgrade and didn’t require upgrading Rails, MySQL, or Ruby. The requirements for each Redmine version are located here in case you aren’t sure if you have the correct versions of Rails, Ruby, and MySQL installed.
When upgrading web applications it can make life much easier to get a list of files that have changed since the last version. This way you only have to overwrite a small number of files so if you won’t have to make all of your customizations again. The best application to use on Windows to do this is WinDiff. WinDiff is a very lightweight application that does not require installation to run. Below are some screenshots of WinDiff, where to download WinDiff, and instructions on how to compare two directories of like files.
I haven’t done a ton of testing with Windows Search but the goal is to rival Google Desktop application that allows you to easily search directories and files on your computer. I have installed and tested each of these on my laptop and quickly uninstalled each. Currently my laptop has 2GB of RAM and a 1.2GHz processor and at this point just not enough power to handle either application. I have yet to try it on one of my desktops with a more powerful processor and more RAM however I still don’t think it would be worth the processing and memory cost. After uninstalling Windows Search my Outlook and Internet Explorer applications were immediately much faster.
By default in Windows Vista all system files and folders are hidden as in previous versions of Windows. The difference is the typical menu is not at the top of Windows Explorer so how you might be used to turning on hidden files and folders might seem harder than it was before. Actually its exactly the same and if you follow the instructions below you will see all files and folders in no time.
- Open My Computer: Click the Windows icon in the lower left hand corner of Vista, scroll up to the right, and click Computer.