1. Install the following package:
apt-get install netpbm
2. Create your converter file:
pathtoconverter="/usr/bin"
for arg
do
if [ -f "$arg" ]; then
echo converting $arg
arg="$(echo $arg | sed 's/\.gif$//')"
$pathtoconverter/giftopnm $arg.gif > $arg.pnm
$pathtoconverter/pnmtopng -transparent rgb:ff/ff/ff $arg.pnm > $arg.png
$pathtoconverter/pnmtojpeg -quality=100 -optimize -smooth=0 $arg.pnm > $arg.jpg
$pathtoconverter/pngtogd2 $arg.png $arg.gd2 0 1
fi
done
rm -f *.pnm
3. Make your converter script executable.
chmod +x yourconverterscript.sh
4. Copy the .gif file into the same directory as your converter script.
The .gif should be 40*40 pixel in size. The white background (FFFFFF) will be converted
to transparent during the process.
5. Convert your .gif file.
./yourconverterscript.sh yourgif.gif
The scrip will generate following files for you:
.gd2
.png
.jpg
6. Copy the images into the correct Nagios directory
cp yourgif.* /usr/local/nagios/share/images/logos/
7. Use them in your host.cfg files
define host{
use elastix-server
host_name elastix-server
alias Aterisk(Elastix) Lab server
address 108.104.10.202
icon_image elastix.png
icon_image_alt Elastix
vrml_image elastix.png
statusmap_image elastix.gd2
}
Hope that helps.
Cheers
Daniel
Come and join us at the Communicasia 2009 and Asterconference next week in Singapore at the
Asterisk-Pavillion:

I'm looking forward to meet all our Asterisk friends again and finally welcome Mark Warren (CEO of Redfone) in SG and Malaysia... the BBQ is ready...
Daniel
Good Morning!
I wrote a small flexible Python SNMP plugin for Nagios which you can easily change for your needs.
It monitors HP SAN-Switches but you can just change the OID and use for your own SNMP needs and parse
the result sets according to your requirements.
The plugin returns performance data for graphing and monitors things like temperatures, fan, power supply.
Download-Plugin: check_hp_sanswitch.py
Cheers
Daniel

We had a good time at the Open Source Conference in Malaysia. Here are some pictures
(and yes Digium should sponsor us next time.... :-) )




Here the presentation slide of our speech at the OSCONF: osconf.odp
Wish you all a great weekend
Cheers
Daniel
Intuit is official a MSC-Status company! We continue our journey and are well on the way to be a public listed company in the near future (we give us 2-3 years) smile.
Thanks to all of you guys, especially Frank with his patience for documents!
Cheers
Dnaiel
:: Next Page >>
You can reach me via:
MSM:dkraehenbuehl@hotmail.com E-mail: daniel@intuitinnovations.com| Next >
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |