qmailanalog-web installation

1. get the files needed:

$ wget http://www.jptrainings.de/qmailanalog-web/INSTALL
$ wget http://www.jptrainings.de/qmailanalog-web/FGA
$ wget http://www.jptrainings.de/qmailanalog-web/qmail-savelog
$ wget http://www.jptrainings.de/qmailanalog-web/qmail-splitlog
$ wget http://www.jptrainings.de/qmailanalog-web/qmailanalog-web

2. read and follow instructions in INSTALL and FGA file

3. get and compile tai64nfrac :

$ wget http://archives.eyrie.org/software/system/tai64nfrac-1.4.tar.gz
$ tar xzfv tai64nfrac-1.4.tar.gz
$ cd
$ su –
$ make install

4. get and install qmailanalog from http://cr.yp.to/qmailanalog.html. if runnig RHEL or fedora you might need :

$ vi err-patch

and paste this :

— error.h.orig 2003-03-05 15:42:51.000000000 -0500
+++ error.h 2003-03-05 15:43:00.000000000 -0500
@@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H

-extern int errno;

extern int error_intr;
extern int error_nomem;

and then:

$ tar zxvf qmailanalog-0.70.tar.gz
$ cd qmailanalog-0.70
$ patch < /path/to/err-patch
$ make && make setup check

5. follow instruction from INSTALL file. cron job in /etc/crontab for qmail-splitlog is like these :

15 4,7,10,13,16,19,22 * * * root /usr/local/bin/qmail-splitlog /var/log/qmailanalogweb
06 2 * * * root /bin/chmod -R 755 /var/log/qmailanalogweb

6. don’t forget to chmod 755 qmail-splitlog and qmail-savelog and qmailanalog-web

database server informix 7.2 change ip on mandrake 10

i’ve never play with informix before. but today i have to help my friend to change the ip of the informix server to comply our new network regulation. the informix server is currently listening on ip, the same ip as the eth0.

we have to change the eth0 ip to according to the new regulation. as the ussual way to do the change, i edit what’s needed in file /etc/sysconfig/network-scripts/ifcfg-eth0 and restart the network service. ip changes work fine.
to make the informix listen on the new ip, i also restart the informix services. but it doesn’t work as expected….:(

i try google for some times to find answers about changing ip for informix server but no good result comes up. so i try look for some documentation in informix home dir and finally find some clue in file /home/informix/release/en_us/0333/SE_7.2. it has something to do with sqlhosts file. so i try:

$ locate sqlhosts

result is /home/informix/etc/sqlhosts, then i look into the file with vi and the answer was there.
here’s the contain of the file :

#demo_on onipcshm on_hostname on_servername
#demo_se seipcpip se_hostname sqlexec
dbserver sesoctcp db.domain.co.id sqlexec

then i do :

$ dig db.domain.co.id

the answer is so i add this line in /etc/hosts file to tell informix to use the new ip db.domain.co.id

then i tell the server to reboot. informix is now listening on the new ip and works fine as it was with the old ip.

Reblog this post [with Zemanta]