Compiling zabbix-agent on Raspberry Pi (xbian or debian)

First of all You need to install some software for compilation:

apt-get install build-essential

Now, just get sources of zabbix (in this case the latest version is 2.0.6):

wget ""

Unpack it, go to unpacked sources:

tar zxfv zabbix-2.0.6.tar.gz
cd zabbix-2.0.6

Now You need to specify configuration options, mine was like:

./configure --enable-agent --prefix=

And You are ready to compile and to install zabbix-agent on Your system:

make install

Also if You need startup scripts follow next steps:

cd misc/init.d/debian #in zabbix source's directory
cp zabbix-agent /etc/init.d/
which zabbix_agentd #outup will be needed to edit zabbix-agent startup script

Open /etc/init.d/zabbix-agent file for edit end edit this line:

DAEMON=/usr/local/sbin/${NAME} #put here output of previous command, i.e /sbin/${NAME}

Last thing to do is to add zabbix user, because zabbix cannot run as root user:

adduser --system zabbix

Now You should be able to start zabbix-agent through init scripts, of course You need to configure zabbix-agent in /etc/zabbix_agent.conf and /etc/zabbix_agentd.conf

After configuration is completed You should be able to start zabbix-agent:

/etc/init.d/zabbix-agent start

If You want to start zabbix-agent automaticaly during boot process You need to run this command:

update-rc.d zabbix-agent defaults

And that’s all.

Tagged with: , , , ,

Monitoring ip_conntrack on zabbix

I needed some statistics and triggers on zabbix of ip_conntrack. Here is how to monitor it, of course You can expand it as You wish.

First of all You need to add some configuration to Your zabbix agents. Put those lines at the end of zabbix config (in my case it was:  /etc/zabbix/zabbix_agentd.conf):

UserParameter=ip_conntrack_count,cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
UserParameter=ip_conntrack_max,cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max

And then restart zabbix agent:

/etc/init.d/zabbix-agent restart

Now You can configure zabbix, so let’s login and import this file:

Zabbix template

From now on, You are able to monitor the state of ip_conntrack on Your system.

Tagged with: , , ,

Fedora 19, openvpn and default route

According to one of my latest post (Fedora 19 and override routes with openvpn) I realized that Network Manager applet is not showing the status of VPN connection – icon will not change to this one: network-manager-icon-vpn.

I decide that I need better workaround, so I’ve dig a little bit more and I found out that this issue can be resolved in simple way. Here is another workaround to this issue.

All the connection that are setted up by Network Manager or nm-connection-editor are stored in:


So to set up connection to disable default route through VPN connection, or use VPN connection to resources only on remote network,  simply edit file that is responsible for Your VPN connection. For example: if You’ve created connection VPN1 just edit file VPN1, and put there those lines (of course in appropriate section, in my case it was in [ipv4]):


Save this file and now You can start Your VPN connection through Network Manager applet, also it will change Your icon according to the status of connection.

Tagged with: , ,

Fedora 19 and override routes with openvpn

Lately, I had an issue with routes, because I wanted to use my VPN connection only for resources on network that I wil connect. Unfortunately in Fedora 19 this option: “Use this connection only for resources on its network” doesn’t work. However there is workaround (from RedHat bugzilla):

Just use this tool (of course as root in CLI):


You will find there this option – just activate it, and it will work.

Changing settings to Your VPN connection under nm-connection-editor will couse that this connection will disappear from Network Manager settings, but It will be accessible from Newtork Manager icon in the upper right corner of Your screen. You will be abble to connect to this VPN through Network Manager applet.

Tagged with: , , ,

Running openvpn with SELinux on Fedora 19

Lot of people has the same issue with setting up openvpn with SELinux enabled. Follow steps below and You will get it working.

First of all make directory in Your home (it must be .cert):

mkdir ~/.cert

Now copy Your certs into this directory:

cp [path_co_certs]/private_key.key ~/.cert/private_key.key
cp [path_co_certs]/ca.crt ~/.cert/ca.crt
cp [path_co_certs]/private_cert.crt ~/.cert/private_cert.cert

Finally, just configure new VPN connection through Network Manager, choosing correct settings.
It should start, and work like a charm.

Tagged with: , ,

Fedora 19 and Dell E4300 issues

Recently I’ve installed Fedora 19 on my Dell E4300 laptop. There are some issues with this setup and I will try to reseolve them in this post:

  • scrolling on touchpad doesn’t work

Just paste it in command line:

gsettings set org.gnome.settings-daemon.peripherals.touchpad scroll-method 'edge-scrolling'

After that You should be able to scroll on Your touchpad, however I noticed that scrolling is inverted. So here is next issue:

  • scrolling on touchpad is inverted

Paste it in command line:

gsettings set org.gnome.settings-daemon.peripherals.touchpad natural-scroll 'false'


I will update this post with issues I will find, so stay tuned.

Tagged with: , , ,

Charging iPad connected to USB port on Fedora

When I bought iPad I was confused that it will not charge when connected to USB port in my desktop. Recently I found this software: ipad_charge. As it is said on github it will charge almost all portable apple devices. So I gave it a try and I found out that this software is doing it in the way that I wanted. All You need to install this software on Fedora 18 x86_64 is to compile it. I will show below all the steps to use this software.
First of all You need sources of ipod_charge:


Now we need to unpack it:


And compile it:

cd ipad_charge-master
sudo make install

And that’s all. Now when You will connect iPad to Your desktop it will start to charge.

Of course You can turn off charging while connected to USB:

ipad_charge --off

And enable charging again:


I also found out that You can access Your iPad’s (and other apple portable devices) data while charging. So it is very useful software.

Tagged with: , , ,

iOS jailbreak tool evasi0n on Fedora 18 x86_64

I just wanted to do jailbreak on my iPad3. I’ve grabbed latest version of jailbreak software from website. Unpacked it, and run, but I’ve got error:

./evasi0n.x86_64: error while loading shared libraries: cannot open shared object file: No such file or directory

So I’ve digged for a while, and find out that I do not have some libraries, however I’ve installed libssl and libcrypt that are necessary to run this jailbreak software. Unfortunatelly Fedora 18 only have openssl in version 1.0.1. So I had to compile openssl v. 1.0.0. Here are the steps:

tar -zxfv openssl-1.0.0j.tar.gz
cd openssl-1.0.0j
./config -t

After that You will have and files in this directory. Now You need to copy those files into proper directory in Your system:

cp /usr/lib64/
cp /usr/lib64/

And now evansi0n software is running wihtout any problems.

Tagged with: , , , , ,

Openvpn revoke / unrevoke certificates

Sometimes You need to revoke access of a client in openvpn. The simpliest way to do this is to revoke certificate. Revoking certificate is almost as simple as clicking enter on a keyboard. To revoke certifikate just go to Your easy_rsa directory and enter following:

source ./vars
./revoke-all [certificate name]

Sometimes You need to revoke access of a client in openvpn only temporarily. Revoking access is done in the same way as above. But we need to unrevoke access. Here are the steps to do this.
First of all You need to go to Your easy_rsa directory (or where do You keep Your keys). You will find there index.txt file. Open it with Your favourite text editor. You will find there index of all certificates. Some lines begins with R and some with V. The ones that begins with R are pointing to revoked certificates. To unrevoke certificate just change R to V at the beggining of the line, and remove third column. After that just do:

source ./vars
openssl ca -gencrl -out "crl.pem" -config "$KEY_CONFIG"

After that client should connect to openvpn with no problem.

If You have any questions please leave a comment. I will answer asap.

Tagged with: , , , , ,

Fedora 18, chrome and jnlp file association

Every time I’ve upgrade or reinstall fedora I have the same issue. Downloaded *.jnlp file with chrome browser will not open (from the bottom of browser) in java. While this file is clicked it will open new tab and will download this file again. I’ve modified a little bit my system so from now on it will open *.jnlp files with oracle javaws. So here are the steps how to do it.

Open terminal and login as root. Then just go to /usr/share/applications and create there a file javaws.desktop. Put those lines in this file:

[Desktop Entry]
Exec=/usr/bin/javaws %U 

Save file and go to chrome to download some sample jnlp file. Download it but do not open via browser. Go to place where this file was downloaded and do right click. Then “Open with” -> “Another program” -> “Display another programs” and then just choose Javaws.

From now on You will be able to open *.jnlp files directly from google chrome browser.

Tagged with: , , , , ,