Archive for August 23rd, 2008

It is possible to run into an issue with ar_sendmail if you are calling it from a Ruby application and using its verbose output. You may be calling it similar to the below:

arsendmail = ActionMailer::ARSendmail.new(:Once => true,
:Verbose => true)

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , ,

Comments No Comments »

The below code snipet was created to check the number of rows in a PostgreSQL database, log the output to a file, and warn if the number of rows is over a certain number. There are numerous variables in the code snipet below that will need to be modified for it to work properly including message, notify, dbuser, and logfile. This code was created on CentOS some other items could be different including the location of the date command.

This script can be run as follows: checkrows $host $database

 

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , ,

Comments No Comments »