zeldor.biz

Linux, programming and more

Copyright © 2023
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