[dev.icinga.com #2520] statusmap: multiple parents not possible, only last one drawn #747
Comments
Updated by mfriedrich on 2012-04-13 12:31:02 +00:00
english please. is this an icinga-web or classic ui issue (already asked that on the portal)? |
Updated by bjwahl on 2012-04-13 12:47:36 +00:00 Ok, english should be possible. It is the icinga-web interface. Classic and status.cgi is not installed. |
Updated by mfriedrich on 2012-04-17 07:20:32 +00:00
|
Updated by mhein on 2012-04-18 09:16:18 +00:00
|
Updated by QIONIS on 2012-07-26 10:23:31 +00:00 Hello, I have the same problem... Only the last parent in "parents" is selected. Thanks |
Updated by mfriedrich on 2012-07-26 11:17:18 +00:00
see http://www.monitoring-portal.org/wbb/index.php?page=Thread&postID=175051#post175051 as well as a possible fix in #2816 |
Updated by mfriedrich on 2012-09-23 11:21:32 +00:00
can you check back with the current git master please? there have been plenty of fixes applied for statusmap now. |
Updated by mfriedrich on 2012-10-04 14:12:41 +00:00
finally, i understood the topic, which is pretty much misleading. so icinga web does not draw all parents, but only the last one, while icinga classic ui. attached is a config file (also on core git) to reflect that. |
Updated by QIONIS on 2012-10-04 14:26:05 +00:00 Thanks for follow the topic.. So, for the moment isn't exist solution for my problem..? |
Updated by mfriedrich on 2012-10-05 10:42:50 +00:00
i've only debugged it, though i am not sure where the logic on the drawing happens, or likewise, what did change. |
Updated by mfriedrich on 2012-10-05 13:53:36 +00:00 ok, short guess - with 1.5 the newly written doctrine api was introduced, so probably the queries changed on that backend, returning faulty information overall. |
Updated by mfriedrich on 2012-10-06 10:48:17 +00:00 there was a recent change of attaching the reference of the child to the array.
though, i don't think that this is entirely incorrect, rather the functionality of how to fetch multiple parents is possibly wrong. going into the backend, the parenthosts will be determined by this table.
within app/modules/Cronks/models/System/StatusMapModel.class.php there the selection of the HOST_PARENT_OBJECT_ID which is a single id (or row). my guess is that the underlaying doctrine api could possibly return multiple rows on that exact host. even more, the loop will possible have multiple hosts with different parents matched being put into the $hostWithParents[$objectId] array.
so, $hostWithParents[$objectId] is being processed again within a loop below. question remains - are there multiple hosts with parents already in the array, or does the children array get populated wrong?
conclusion - web devs should have a look. |
Updated by mfriedrich on 2012-10-06 11:12:38 +00:00 ok, there can't be multiple hosts in $hostWithParents[$objectId] array, as $objectId (HOST_OBJECT_ID) is a unique identifier to the host. though, a host can have multiple parents, which is totally leftout here
even if this is a combined query, with all relations fetched, only the last HOST_PARENT_OBJECT_ID wins due to the fact that $objectId is unique, and the rest will be overridden. proposal
sort of
which then gets questioned of not only a single parent, but multiple, and reversed - more childs. |
Updated by jmosshammer on 2012-10-06 11:26:50 +00:00 This would require a rewrite of the structure, instead of a parent~~child construction we need to use a node~~>adjacencies structure, see http://thejit.org/static/v20/Jit/Examples/RGraph/example2.html This is a bug for a long time, but I don't know if we want to change this in 1.8, as changing the data format of the statusmap provider is a bigger change |
Updated by mfriedrich on 2012-10-06 12:10:01 +00:00
Ok, thanks for the explaination. I kind of feared that the dataset would require more changes on that. Let's stick with - first resolve the other open issues of the 1.8 roadmap, and then provide final feedback here. My guess is, that 1.9 should give us more time on that. |
Updated by jmosshammer on 2012-10-09 14:38:47 +00:00
1.9, there were major changes in the statusmap, so I think it's too risky to change the data structure a week before the release |
Updated by mfrosch on 2013-03-11 12:12:43 +00:00
This is considered a feature, which would require a patch to the jit component. Delayed for a future release. |
Updated by mfrosch on 2013-09-10 15:27:33 +00:00
I'm afraid we can't provide such a feature as of now. Jit graphs doesn't support this linking. |
Updated by mfriedrich on 2014-07-19 13:58:30 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2520
Created by bjwahl on 2012-04-13 12:20:00 +00:00
Assignee: (none)
Status: Closed (closed on 2014-07-19 13:58:30 +00:00)
Target Version: (none)
Last Update: 2014-07-19 13:58:30 +00:00 (in Redmine)
Nach Update von der Version 1.4.0 auf 1.6.1 werden in der Statusmap wenn beim Host mehrere Parents eingetragen sind nur jeweils der letzte Eintrag genommen.
Ändere ich z.B. die Reihenfolge zieht wieder der letzte aber kein anderer.
define host {
use tpl_windows
host_name xxxxxxxx
alias xxxxxxxx
address xxxxxxxx
notes_url https://xxxxxxxxHOSTNAME$
parents hosta,hostb,hostc,hostd,hoste
hostgroups +,rdp
register 1
}
Die cfg ist unter 1.4 und 1.6.1 die gleiche. Update auf 1.6.2 hat auch zu keinen Erfolg geführt.
Attachments
Relations:
The text was updated successfully, but these errors were encountered: