Saturday, November 24, 2012

Gimp 2.8.2 for Ubuntu 10.04

This is a standalone 64-bit build for nocona processor.

hxxp://xvi.academ.org:5081/gimp-2.8.2-64bit.tar.bz2
hxxp://xvi.academ.org:5081/gimp-2.8.2-32bit.tar.bz2

Download and unpack it to /opt/gimp-2.8, then use the following bash script to launch:



#!/bin/bash

export PATH=/opt/gimp-2.8/bin:$PATH;
export PKG_CONFIG_PATH=/opt/gimp-2.8/lib/pkgconfig;
export LD_LIBRARY_PATH=/opt/gimp-2.8/lib;

/opt/gimp-2.8/bin/gimp-2.8;
The icon file, copy to /usr/share/applications/gimp-2.8.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Gimp 2.8.2
GenericName=Image Editor
Comment=Create images and edit photographs
Exec=/opt/gimp-2.8/bin/gimp-2.8 %U
TryExec=/opt/gimp-2.8/bin/gimp-2.8
Icon=gimp
Terminal=false
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=GIMP
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=2.8.2
X-GNOME-Bugzilla-OtherBinaries=gimp-2.8
StartupNotify=true
MimeType=application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/tiff;image/jpeg;image/x-psp;image/png;image/x-icon;image/x-xpixmap;application/pdf;image/x-wmf;image/x-xcursor;

Saturday, November 10, 2012

Using arping in Zabbix

This is a quick recipe how to make Zabbix 2.x use arping instead of simple ICMP check with fping utility. Following method is more a proof of concept then a complete solution. Consider modify for your needs. Instead of messing with zabbix internals I chose to substitute fping utility (in zabbix_server.conf)

FpingLocation=/usr/sbin/fping.sh

The script parses input from Zabbix. Checks for some of arguments are hardcoded (-C3), thus if you change parameters of a simple check in Zabbix web interface it may failure.


#!/bin/bash
# /usr/sbin/fping.sh
#
export PATH=/root/bin:/sbin:/usr/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/default/bin/:/usr/local/bin/:/usr/local/sbin/:

while IFS=$'\n' read -r LINE || [[ -n "$LINE" ]];
do
    IP="$LINE";

if [[ "$1" == "-q" && "$2" == "-C3" ]];
then

    DEV=`ip route get $IP | cut -d' ' -f3|tr -d '\n'`
    # local
    if [[ $DEV == "local0" ]];
    then
        ARPING=`/sbin/arping -I local0 -c 3 $IP 2>&1|grep Unicast`;
        if [[ $ARPING == "" ]];
        then
            echo "$IP : - - -";
        else
            echo "$IP : 1.10 1.10 1.10";
        fi
    else
    # not local
         /usr/sbin/fping -q -C3 $IP 2>&1;
    fi
else
    # something else
    /usr/sbin/fping $1 $2 $3 $4 $IP 2>&1;
fi