Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #2681] Confusing use of display_name in JSON and CSV output #1002
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2681
Created by trehn on 2012-06-12 21:28:28 +00:00
Currently the host and service names provided via JSON/CSV come from display_name (if it is defined) or the internal name (if display_name is not defined). This is bad because a client cannot be sure if they're seeing a display_name or a normal name. Furthermore, the display_name cannot be used to submit commands and does not appear in the JSON/CSV output for host and service groups.
I will attach a patch that removes the abiguous behavior and (in JSON) exposes the display_name explicitly in a separate attribute. This way clients using JSON can issue commands to the correct hostnames, link hosts to hostgroups and still display pretty names.
2012-06-12 23:12:59 +00:00 by (unknown) 985bd5a
2012-06-12 23:26:17 +00:00 by ricardo 9d21426
2012-06-15 15:17:25 +00:00 by mfriedrich 7ee849e
Updated by mfriedrich on 2012-06-12 21:40:44 +00:00
thanks. sounds rather logical to expose that a bit different in an export, than the gui layer shows it. for what it's worth it might be worth discussing to explicitely export that within csv as well, as seperated column. though i am not sure if that will existing parsers.
@ricardo - please have a look into.