by damonp on October 13, 2005
in Snippets
Mutt defaults to the mbox format. Tell it to use the Maildir format by adding the following to ~/.muttrc
set mbox_type=Maildir
These will set the default folders:
set folder=”~/Maildir/”
set mask=”!^\.[^.]”
set record=”+.Sent”
set postponed=”+.Drafts”
To open a specific Maildir:
mutt -f /full/path/to/Maildir
Popularity: 1%
by damonp on October 13, 2005
in Snippets
Nagios defaults to running check via supplied IP address instead of the hostname. If virtual hosting with thttpd using only the IP address will give 404 because it doesn’t make it into the virtual hosting subdirectories. Below is a check command that can be added to the Nagios configuration to correct this.
This should also be good for directly checking the status of Apache virtual hosts instead of just checking the default IP as the Nagios check_http command.
# ‘check_vhost’ command definition
define command{
command_name check_vhost
command_line $USER1$/check_http -H $HOSTALIAS$
}
Popularity: 1%