Adding ICONS To Nagios Map - ScottyP's Blog
Adding ICONS To Nagios Map - ScottyP's Blog
ScottyP's Blog
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
/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
Write comment Comments RSS Trackback ( 0 ) Comments ( 1 ) 1. Mark September 20th, 2013 REPLY QUOTE great stuff
4/25/2014
http://srparkin.wordpress.com/2011/10/18/adding-icons-to-nagios-map/
4/4