UG I just upgraded to , 1.4 and lost my icons.
I am still not sure how to assign objects icons to types of map items.
For the time being, check to ensure that the custom_hosts.php and host_icons.php exist.
The custom_hosts.php defines the type identifier. The case number corresponds to the template ID that is stored in your cacti database.
case 1: // <-- This is the number that corresponds to your template ID number in the host_template table
$type = "Server"; //<-- common name ID. This is displayed on the map pop-up.
Then use that common name ID in your host_icons.php
//Define a google map Icon, you can copy one of the existing and modify or use one of the preset one I have given.
var iconYellow = new GIcon();
iconYellow.image = 'http://labs.google.com/ridefinder/images/mm_20_yellow.png';
iconYellow.shadow = 'http://labs.google.com/ridefinder/images/mm_20_shadow.png';
iconYellow.iconSize = new GSize(12, 20);
iconYellow.shadowSize = new GSize(22, 20);
iconYellow.iconAnchor = new GPoint(6, 20);
iconYellow.infoWindowAnchor = new GPoint(5, 1);
//Add the Icon into the customIcons array and define the Icon type, Use the common name you set earlier.
customIcons["Server"] = iconYellow;
Hopefully that clears things up a little bit. I do hope to eventually make this a much easier process and utilize a GUI for these. But I need that inspiration on how to do it effectively and efficiently.
Maybe it could be set in the settings that templates groups have map icons assigned to them.
Yes, this is a feature I am looking into. Personally I don't like messing with code when there is a GUI, I jest need to find a way to perform those customizations efficiently.
Also, as Caracarn stated earlier with the Up/Recovering/Down colors, would it be necessary to still continue implementing custom icons?[/code]