Monthly Archives: February 2010

Nagios and dpt-i2o-raidutils, raidutil check

We do check our production boxes with hardware raid cards on raid status. We are using our script to call raidutil, which is running fine, but not under nagios user. Permissions for the files are as follows: -rwxr-xr-x 1 root root 254708 Aug 20 2008 raideng -rwxr-xr-x 1 root root 255880 Aug 20 2008 raidutil [...]

Posted in Uncategorized | 1 Comment

Sed to correct path lines

Sed one-liner to change correct paths. Before: php_admin_value open_basedir /srv/www/www.domena.tld/www After: php_admin_value open_basedir /srv/www/www.domena.tld Sed script: sed -i "s/\(.*\)php_admin_value open_basedir \(.*\)\/www$/\1php_admin_value open_basedir \2/g" /etc/httpd/conf/httpd.conf

Posted in regular expressions, sed | Leave a comment

Upgrade DAViCal 0.9.7.2 to 0.9.8

DAViCal upgrade is quite easy: [root@fs12 html] wget http://debian.mcmillan.net.nz/packages/davical/davical_0.9.8.orig.tar.gz [root@fs12 html] tar xvzf davical_0.9.8.orig.tar.gz [root@fs12 html] cd davical-0.9.8.orig/dba [root@fs12 dba] su postgres bash-3.00$ ./update-davical-database The database is version 8.1 currently at revision 1.2.5. Applying patch 1.2.6.sql … succeeded. Applying patch 1.2.7.sql … succeeded. Successfully applied 2 patches. Supported locales updated. Updated view: dav_principal.sql applied. CalDAV [...]

Posted in CentOS | Leave a comment

Zoner Antivirus with Amavisd-new

Today I have decided to test Amavisd-new with free Zoner Antivirus for Linux. First of all you have to download the package, (test it), install, and change the ownership. Then edit the configuration. wget http://update.zonerantivirus.com/download/zav-1.2.2-redhat-i586.rpm –nodeps rpm -Uhv zav-1.2.2-redhat-i586.rpm –test rpm -Uhv zav-1.2.2-redhat-i586.rpm chown amavis: /opt/zav -R chown amavis: /var/run/zav -R vi /etc/zav/zavd.conf So, we [...]

Posted in mailing | Leave a comment