On 16.05.2013 10:13, Tomas Macek wrote: > Hello, I have here Icinga 1.7.2 and have a problem with links in classic > UI when host is named in certain way. I allowed to use ">" char in Icinga > using "illegal_object_name_chars=`~!$%^&*|'"<?,()=" option in icinga.cfg > (just removed the ">" char). > Now I have host definition like this: > > define host { > use generic-host > host_name Link from one place->to another > alias Link from one place->to another > address 10.0.1.2 > parents > check_command check-host-alive > contact_groups g.mailALL,g.smsALL > max_check_attempts 3 > notification_interval 60 > notification_period 24x7 > notification_options d,r > } > > In the UI Icinga creates a link, that does not work and leads to > red message "Error: host not found" (or similar). This is the link itself: > https://our.server/icinga/cgi-bin/extinfo.cgi?type=1&host=Link+from+one+place-%3Eto+another > But IMHO it looks fine (the ">" is well converted to "%3E"), but I'm not a > web guru. > > But when I remove the ">" from the host_name, it works. The working link > is here: > https://our.server/icinga/cgi-bin/extinfo.cgi?type=1&host=Link+from+one+place-to+another > > I know, that these characters are not recommended for using, because of > some possible cmd line issues, but I'm pretty sure I can use it this way > in our environment, so there should be no problem with that. > > Is that bug or feature? If it's bug - was this solved in some newer > version of Icinga? - I was unable find this in changelog.
you really should you display_name for proper gui representation (or use the according macro for notification commands), and let object names be unique (e.g. as host service pairs) based on non-special characters. for details, see my comment on the issue itsself. https://dev.icinga.org/issues/4195 kind regards, michael -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users