Ralat Clamd CentOS 5 LibClamAV Error: mpool_malloc()

Apabila email tidak sampai ke mailbox dan log MailScanner (maillog) terdapat ralat berikut:

Oct 23 22:32:06 email MailScanner[21705]: Virus and Content Scanning: Starting
Oct 23 22:32:06 email MailScanner[21705]: Clamd::ERROR:: COULD NOT CONNECT TO CLAMD, RECOMMEND RESTARTING DAEMON :: .
Oct 23 22:32:07 email MailScanner[21705]: Virus Scanning: Clamd found 1 infections
Oct 23 22:32:07 email MailScanner[21705]: Virus Scanning: No virus scanners worked, so message batch was abandoned and re-tried!

Kemudian cuba restart clamd, ralat berikut pula muncul

LibClamAV Error: mpool_malloc(): Attempt to allocate 8388608 bytes. Please report to http://bugs.clamav.net

Kemaskini clamav untuk selesaikan masalah ini.

yum --disablerepo=\* --enablerepo=rpmforge update clam\*

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Pelayan SNMP CentOS 6

Andaian:

IP = 10.0.0.10
Email support = email@domain

Pasang snmpd net-snmp

yum install -y net-snmp-utils
chkconfig snmpd on

/etc/snmp/snmpd.conf

rocommunity public
syslocation Rack Server IT
syscontact Domain Support <email@domain>
dontLogTCPWrappersConnects yes
rocommunity public default

/etc/sysconfig/snmpd.options (untuk membenarkan akses dari pelayan lain)

# snmpd command line options
OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 127.0.0.1 10.0.0.10"

Mulakan semula snmpd

service snmpd restart

Uji dengan

snmpwalk -v2c -cpublic 127.0.0.1

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Contoh konfigurasi ringkas Nagios pada Debian

monitor-nrpe

Server Nagios: 192.168.1.110
Server DNS: 192.168.1.102

Contoh berikut adalah untuk memantau load, bilangan user yang log in, baki kapasiti root partition, jumlah proses sedang berjalan dengan menggunakan nrpe

    Pada server Nagios (Wheezy):

  1. Install pakej-pakej yang diperlukan:
    apt-get install nagios3 nagios-plugins nagios-nrpe-plugin
  2. Buatkan fail /etc/nagios3/conf.d/dns-mylab.cfg seperti berikut:
    define host{
            use                     generic-host            
            host_name               dns
            alias                   dns-mylab
            address                 192.168.1.102
            }
    define service{
            use                     generic-service
            host_name               dns
            service_description     Current Load
            check_command           check_nrpe_1arg!check_load
    }
    define service{
            use                     generic-service
            host_name               dns
            service_description     Current Users
            check_command           check_nrpe_1arg!check_users
    }
    define service{
            use                     generic-service
            host_name               dns
            service_description     Disk Space
            check_command           check_nrpe_1arg!check_root
    }
    define service{
            use                     generic-service
            host_name               dns
            service_description     Total Processes
            check_command           check_nrpe_1arg!check_total_procs
    }
    
  3. Mulakan semula servis nagios
    /etc/init.d/nagios3 restart

    Pada server DNS (squeeze):

  1. Pasang pakej-pakej yang diperlukan
    apt-get install nagios-nrpe-server nagios-plugins
  2. Edit /etc/nagios/nrpe.cfg seperti dibawah dengan mengambil kira output “df -h”, IP server nagios & IP server DNS
    #server_address=127.0.0.1
    server_address=192.168.1.102
    
    #allowed_hosts=127.0.0.1
    allowed_hosts=192.168.1.110
    
    #command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
    command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/debian-root
    
  3. Mulakan semula servis nrpe
    /etc/init.d/nagios-nrpe-server restart
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

primaryMessage volume Zimbra pada filesystem ZFS

  1. Tambah repo ppa ZFS untuk Ubuntu & pasang

    $ sudo add-apt-repository ppa:zfs-native/stable
    $ sudo apt-get update
    $ sudo apt-get install ubuntu-zfs

  2. Kenal pasti nama device. Dalam situasi ini, yang belum pernah dibuat partition

    $ sudo fdisk -l | grep valid
    Disk /dev/xvdc doesn't contain a valid partition table
    Disk /dev/xvde doesn't contain a valid partition table
    Disk /dev/xvdb doesn't contain a valid partition table
    Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table
    Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table

    $ sudo zpool create zfsPool1 raidz /dev/xvdb /dev/xvdc /dev/xvde -f
    $ sudo zpool status zfsPool1

      pool: zfsPool1
     state: ONLINE
      scan: none requested
    config:
    
            NAME        STATE     READ WRITE CKSUM
            zfsPool1    ONLINE       0     0     0
              raidz1-0  ONLINE       0     0     0
                xvdb    ONLINE       0     0     0
                xvdc    ONLINE       0     0     0
                xvde    ONLINE       0     0     0
    
    errors: No known data errors
    

    $ sudo zfs create zfsPool1/zimbraStore
    $ sudo zfs list

    NAME                        USED  AVAIL  REFER  MOUNTPOINT
    zfsPool1                    196K  9.75G  40.0K  /zfsPool1
    zfsPool1/zimbraStore       38.6K  9.75G  38.6K  /zfsPool1/zimbraStore
    

    $ host -t mx mylab.lab
    mylab.lab mail is handled by 10 mail.mylab.lab.

    $ hostname -f
    mail.mylab.lab

  3. Pastikan installer & installer yang digunakan adalah sesuai

    $ md5sum -c zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631.tgz.md5
    zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631.tgz: OK

    $ uname -p
    x86_64

    $ lsb_release -r
    Release: 12.04

  4. Ekstrak & install

    $ tar -xvf zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631.tgz
    $ cd zcs-8.0.0_GA_5434.UBUNTU12_64.20120907144631/
    $ sudo apt-get install libgmp3c2 libperl5.14 sysstat sqlite3
    $ sudo ./install.sh

  5. Pindah volum primaryMessage ke /zfsPool1/zimbraStore/

    $ chown zimbra:zimbra /zfsPool1/zimbraStore/

    $ zmvolume -a -n zfsStore -p /zfsPool1/zimbraStore/ -t primaryMessage
    Volume 3 is created

    $ zmvolume -sc -id 3
    Volume 3 is now the current primaryMessage volume.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Zimbra LDAP: error code 49 – Invalid Credentials

ERROR: service.FAILURE (system failure: unable to lookup server by name: webmail.mydomain.com message: [LDAP: error code 49 – Invalid Credentials]) (cause: javax.naming.AuthenticationException [LDAP: error code 49 – Invalid Credentials])

Sebab ralat:
-ingin migrate ZCS ke server baru yang berlainan versi OS. Jika sama, cuma rsync
-restore backup ldap dari server asal selepas install ZCS pada server baru
-gagal mulakan servis zimbra dengan ralat seperti diatas

Penyelesaian:
-pastikan output zmhostname = webmail.mydomain.com
-pastikan webmail.mydomain.com adalah MX record untuk domain mydomain.com (periksa dengan “nslookup -t mx domain.com”)
-pastikan IP webmail.mydomain.com disenaraikan didalam /etc/hosts
-salin localconfig.xml dari server zimbra lama ke server baru & edit password berkaitan mysql supaya sama dengan setting kat server baru
-restart servis zimbra

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Pasang Firefox/Iceweasel terbaharu pada Debian Wheezy

Edit /etc/apt/sources.list, tambah baris berikut
deb http://mozilla.debian.net/ wheezy-backports iceweasel-release

Muaturun dan pasang pkg-mozilla-archive-keyring
wget http://mozilla.debian.net/pkg-mozilla-archive-keyring_1.1_all.deb
dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb

Pasang Firefox/Iceweasel terbaharu
apt-get update
apt-get install -t wheezy-backports iceweasel

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)