Isnin, 28 Februari 2011

Nagios..


aku baru lepas setup nagios untuk monitor printers dan servers aku di office. Later, aku akan add kan switch, router & segala IP device yang ada dalam nagios ni.

aku sebenarnya berangan nak buat DIY sensor yang boleh talk dgn nagios mcm ni http://www.finnie.org/2010/03/07/external-temperature-monitoring-with-linux/. tapi entah bila aku nak buat pun tatau.. howto setup aku akan add bila aku siap add switch

sila ignore server name aku yang tak ikot standard piawaian :P

Selasa, 22 Februari 2011

how to figure out the size in MB for an informix database

acutal_size = free * 4096 = bytes

/ 1024 = Kbytes
/ 1024 = Mbytes
/ 1024 = GBytes.

Thats makes the total size of a chunk at 0.9gb

Free:

692mb
944mb
621mb
194mb

Do these numbers seem familiar? Plug them into a spread sheet for more accurate results.

Plus, be very careful when changing the disk allocations of logical volumes underneath Informix' nose. If you screw up, Informix won't like it and a level 0 archive/restore might not cut it either. Do a dbexport to disk or tape. It may take a while, and the restoration, with dbimport, may be a bit trickier with large tables. The benefit would be that the format (dbschema + unload files) is simple and does not rely on the underlying instance configuration on being exactly the same.

Rabu, 2 Februari 2011

SARG Problem

Error message:-
*** buffer overflow detected ***: /usr/bin/sarg terminated

past few week i have setup my sarg (squid addon) reporting module... unfortunately it cannot work until i found the solutions. below are the steps how to solve my sarg problem.

wget http://ufpr.dl.sourceforge.net/sourceforge/sarg/sarg-2.2.3.1.tar.gz

tar -xvzf sarg-2.2.3.1.tar.gz
cd sarg-2.2.3.1
./configure --enable-sysconfdir=/etc/sarg
make
make install

done!