Monitoring disk drives via collectd

I’ve made two simple (but useful) disk drive monitoring scripts for collectd exec plugin. You can find them on http://devel.dob.sk/collectd-scripts/. smartmon.sh This script monitors SMART attributes of given disks using smartctl (smartmontools). megamon.sh This one monitors some interesting values of MegaRaid adapter physical drives using MegaCli tool.   Description how to use them can be […]

log-malloc2 v0.2 released

I’ve actually released log-malloc2 library for linux, that logs calls to memory allocation functions and should be very helpful when trying to locate memory leaks. It can be used without recompiling application, simply by preloading it using LD_PRELOAD . Logged functions: malloc realloc calloc free memalign Every function callĀ  is logged with their parameters, amount […]

gentoo + xen compilation problems

If you get following compilation error while emerging xen (resp. xen-tools): arch/i386/core/cpu.c: In function ‘get_cpuinfo’: arch/i386/include/bits/cpu.h:79:2: error: can’t find a register in class ‘BREG’ while reloading ‘asm’ arch/i386/include/bits/cpu.h:79:2: error: can’t find a register in class ‘BREG’ while reloading ‘asm’ arch/i386/include/bits/cpu.h:79:2: error: can’t find a register in class ‘BREG’ while reloading ‘asm’ arch/i386/include/bits/cpu.h:79:2: error: can’t find […]

Oracle VARNUM/NUMBER encoding in C

Just a short example C implementation of Oracle VARNUM/NUMBER type encoding, in case you could not use library functions. I didn’t found it anywhere when needed (and afterwards I found it doesn’t helps me at all due to little ‘problem’ in ora :() and Oracle documentation is pretty unclear about how-to do it.   typedef […]

perl utf8 and using Digest functions

I’ve implemented new neat feature (to store unique content only once in cache) to my perl based etl tool and suddenly it started to print sometimes ‘Wide character in subroutine entry‘ perl warning in sha1_hex call. As if this was not enough processed content after being stored in cacheĀ  started to be utf-8 corrupted in […]

Back to life

Hurray, after a longer period of no new posts, my blog comes back to life. Because of migration to new hardware, different virtualization platform (Xen), replacing Debian with Gento and whole system philosophy upgrade I’ve had no spare time to write new posts (to be true, it was big problem for me to find some […]