Do you think I should do it this way?
host_name               Link from one place-\>to another

This does not work and creates linke like this:
https://our.server/icinga/cgi-bin/extinfo.cgi?type=1&host=Link+from+one+place-%5C%3Eto+another

Tomas


On Thu, 16 May 2013, mikael.schm...@ixx.se wrote:

I've never personally used an unrecommended character in host_name or
alias, but in command argument I have been forced to this from time to
time. For that to work I had to escape the character, have you tried this?

Kind Regards

Mikael Schmidt
Vice Tjänstechef, Presale



Certified MCITP Enterprise Administrator & Enterprise Messaging
Administrator 2010

IXX IT-partner AB
Adress: Helsingborgsvägen 60, 262 72 Ängelholm
Tel: 0431-44 51 00 Direktnr: 0709 ­ 51 81 20
Web: www.ixx.se <http://www.ixx.se/> Mail: mikael.schm...@ixx.se
<http://blogg.ixx.se/>





On 5/16/13 10:13 AM, "Tomas Macek" <ma...@fortech.cz> 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+pl
ace-%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+pl
ace-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.

Regards, Tomas


--------------------------------------------------------------------------
----
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


------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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

Reply via email to