hcartiaux / nagioschecker

Automatically exported from code.google.com/p/nagioschecker
0 stars 0 forks source link

Problem with nagioschecker and display_name in Icinga host definition #191

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.set attribute display_name in host object definition to another name than the 
host_name 
2. Click on a related service in the nagioschecker- window
3. Nagios Checker opens an error-page in icinga

What is the expected output? What do you see instead?

Example:
define host{
use lnx-tmpl-host
host_name lin0086
alias lin0086
display_name other_name
address 10.139.96.86
contact_groups ib1
}

Nagios Checker opens
http://icinga.rz.lsv.de/icinga/cgi-bin/extinfo.cgi?type=2&host=other_name&servic
e=fs_/root

The result is "Error: Service not found"

Has to be:
http://icinga.rz.lsv.de/icinga/cgi-bin/extinfo.cgi?type=2&host=lin0086&service=f
s_/root

Any chance to change the search to use the host_name?

What version of the product are you using (Nagios Checker and Nagios)? On what 
operating system?
Nagios Checker 0.15.3 and Icinga, OS: Open Suse 

Kind regards,

Lara Berdelsmann

Original issue reported on code.google.com by berdelsm...@arcor.de on 9 Aug 2012 at 9:52

GoogleCodeExporter commented 8 years ago
Statement from Michael Friedrich, Icinga- Development: "well, in html this is a 
real display name, used for the purpose of "shadowing" the real name. those 
addons probably parse the pure html output, rather than using the csv or json 
attributes.

my advice - tell the addon devs to use proper export functionality. html is not 
a valid choice anymore given the json and csv capabailities. and afaik anag in 
the newest version also supports icinga json."

Any chance to support icinga?

Kind regards,
Lara

Original comment by berdelsm...@arcor.de on 10 Aug 2012 at 2:08