You are on page 1of 4

4/25/2014

Adding ICONS to Nagios Map | ScottyP's Blog

ScottyP's Blog

ScottyP's NMIT Course Blog

Adding ICONS to Nagios Map


By default the Nagios map looks confusing, having question marks everywhere doesnt help. as an administrator you should be able to just look at the map and automatically know whats happening. icons can make things easier to understand. by default Nagios comes with some icons and they can do the trick but they are not all that appealing to the eye, so i made my own. the default icon set can be found in: / u s r / l o c a l / n a g i o s / s h a r e / i m a g e s / i c o n s / Here is the icon set that I created for my network:

The Cloud is for internet sources, the server is ESXi physical hosts, the penguin is for Linux servers, printer for printers, the next one is a router then switch and then a windows server. The icons must be 40 X 40 pixels as this is what Nagios uses Because I am using putty with an SSH connection to my server, I can use PSFTP to put the images on to the server, PSFTP is a free FTP client that comes with putty. this will upload the icons to the Nagios server. Open PSFTP Type: o p e n1 0 . 1 0 . 2 1 . 3(this is the IP address of the Nagios server) enter username and password as requested. type: p u t Then in widows explore find the file you want to transfer and drag and drop into the CLI Once this is done move the .png images into the appropriate file location within the Nagios install
http://srparkin.wordpress.com/2011/10/18/adding-icons-to-nagios-map/ 1/4

4/25/2014

Adding ICONS to Nagios Map | ScottyP's Blog

/usr/local/nagios/share/images/logos/ Once this is done the image needs to be converted to GD2 file format as a part of my install I installed the pngtogd2 converter. pngtogd2 /usr/local/nagios/share/images/logos/Windows.png /usr/local/nagios/share/images/logos/WindowsServer.gd2 0 1 Nagios uses the gd2 image for its status maps and the png image everywhere else. To add the images to the map, in each Template file that was made two lines need to be added n a n o/ u s r / l o c a l / n a g i o s / e t c / o b j e c t s / t a l o s / E S X i S e r v e r s / _ E S X i S e r v e r s . c f g define host{ name ESXi-server use generic-host check_period 247 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check-host-alive notification_period 247 notification_interval 30 notification_options d,u,r contact_groups admins hostgroups ESXi-servers register 0 icon_image ESXiServer.png statusmap_image ESXiServer.gd2

Add those two lines on each of the template files with the appropriate icons and all of the icons should appear. then the map is much easier to see whats going on.

http://srparkin.wordpress.com/2011/10/18/adding-icons-to-nagios-map/

2/4

4/25/2014

Adding ICONS to Nagios Map | ScottyP's Blog

You May Like


1.

About these ads

Write comment Comments RSS Trackback ( 0 ) Comments ( 1 ) 1. Mark September 20th, 2013 REPLY QUOTE great stuff

2011 10/18 CATEGORY Instruction Manual's NMIT PRJ300 Write comment

Create a free website or blog at WordPress.com. | The monochrome Theme. Follow


http://srparkin.wordpress.com/2011/10/18/adding-icons-to-nagios-map/ 3/4

4/25/2014

Adding ICONS to Nagios Map | ScottyP's Blog

Follow ScottyP's Blog


Powered by WordPress.com

http://srparkin.wordpress.com/2011/10/18/adding-icons-to-nagios-map/

4/4

You might also like