zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Create Nagios Icons

December 2, 2010 by Igor Drobot Leave a Comment

Nagios

If you ever tried to make Nagios Status-Map a little nicer by adding some dependencies and some pretty icons, you have probably came across some little collections/packs of icons at NagiosExchange.
But if you need a special one, you must do it by yourself.
And you probably noticed that you need images with .gd2 extension
Here is how to convert a PNG image into .gd2 (GD Graphics Library format)

Solution one:

1
aptitude install netpbm

aptitude install netpbm

1
pngtopnm example.png | pnmtopng -transparent =rgb:00/00/00 2>/dev/null | pngtogd2 /proc/self/fd/0 example.gd2 0 1

pngtopnm example.png | pnmtopng -transparent =rgb:00/00/00 2>/dev/null | pngtogd2 /proc/self/fd/0 example.gd2 0 1

Solution two:

1
aptitude install libgd-tools

aptitude install libgd-tools

1
pngtogd2 phone.png phone.gd2 0

pngtogd2 phone.png phone.gd2 0

Filed Under: Bash, Linux, Monitoring Tagged With: Monitoring, Nagios, Nagios convert gd2, Nagios3

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok