Category Devel

EeePC synchronization with unison

Sometimes I use my EeePC during a meeting, or when I don't want to use my bigger Dell laptop. But of course I'd like to be able to synchronize one folder on both machines to transfer documents that I should update on both laptops.

unison is my friend for this task, but as I'd like to test some avahi and libnotify code to automate and integrate this solution on my gnome desktop, I wrote the following python script : EeepcSync

Instructions on how to use it are present in the script.

Somes screen captures :



of course the code should be reviewed as I'm very newbie in python ;-)

OTRS

The operation of my knee is a success, but now I've 2 weeks at home.

During that time I'd like to start the analyse of a rma module for OTRS that I've to develop soon.

I've already checked ITSM and SIRIOS modules but none of them fill my needs.

If you have some experience, howto's, example let me know by posting a comment on my post.

Thanks.

Nagios JBoss Check

As I had to monitor some JBoss servers and as there are some memory leaks in the program, the monitoring in Nagios of the Garbage Collector is very important. I've found some jmx script on JBoss wiki, but I was not happy with it. So I rewrite it to use twiddle.sh with the attributes I needed.

I had also to modify twiddle.sh to remove the logging capability (that was causing permission error) :

# diff twiddle.sh twiddleFred.sh
58c58
< JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/client/log4j.jar"
---
> # removed to avoid log file JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_HOME/client/log4j.jar"

Those are the nrpe test I implemented :

# check Perm Gen
command[check_jbosspem]=/usr/lib/nagios/plugins/check_jbosspem 127.0.0.1 4 jboss.system:type=ServerInfo listMemoryPools "Perm Gen" 70 90

# check Old Gen (Heap Memory)
command[check_jbossoldgen]=/usr/lib/nagios/plugins/check_jbosspem 127.0.0.1 4 jboss.system:type=ServerInfo listMemoryPools "Old Gen" 85 95

wascii add-on

Since the beginning of the week I'm using wascii from Dag Wieers, I'm very happy with it but something was really missing for a power daily use : a search function !

So yesterday night I wrote that search add-on using Zend Framework. It perfroms a fulltext search using Lucene.

This is a screenshot :

Perl Binary

Raskas asked me a question about the creation off a binary Perl script.

The goal of this was to run a Perl script on a machine where Perl is not installed.

perlcc should be our friend... but some dependencies were still giving troubles, so I tried to find another solution, here is a summary of my small research :

first, the Perl script's source (Copyright fred... but in GPL !) :

As MySQL Community Manager, I am an employee of Oracle and the views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

You can find articles I wrote on Oracle’s blog.