WIP netclass editor
Former-commit-id: 2c7dffb63e4f9c587c3cdcbf8f87f134a82c1299
This commit is contained in:
parent
97b53db82b
commit
1b99c5db49
File diff suppressed because it is too large
Load Diff
|
@ -195,6 +195,14 @@ define('AGENT_STATUS_UNKNOWN', 3);
|
|||
define('AGENT_STATUS_ALERT_FIRED', 4);
|
||||
define('AGENT_STATUS_WARNING', 2);
|
||||
|
||||
// Pseudo criticity analysis.
|
||||
define('NO_CRIT', -1);
|
||||
define('CRIT_0', 0);
|
||||
define('CRIT_1', 1);
|
||||
define('CRIT_2', 2);
|
||||
define('CRIT_3', 3);
|
||||
define('CRIT_4', 4);
|
||||
define('CRIT_5', 5);
|
||||
|
||||
// Visual maps contants.
|
||||
// The items kind.
|
||||
|
|
|
@ -1889,8 +1889,8 @@ function networkmap_links_to_js_links(
|
|||
}
|
||||
}
|
||||
}
|
||||
} else if (($relation['parent_type'] == NODE_GENERIC)
|
||||
&& ($relation['child_type'] == NODE_GENERIC)
|
||||
} else if (($relation['parent_type'] == NODE_PANDORA)
|
||||
&& ($relation['child_type'] == NODE_PANDORA)
|
||||
) {
|
||||
foreach ($nodes_graph as $key2 => $node) {
|
||||
if ($relation['id_parent'] == $node['id_db']) {
|
||||
|
@ -1903,10 +1903,10 @@ function networkmap_links_to_js_links(
|
|||
$agent2 = $node['id_db'];
|
||||
}
|
||||
}
|
||||
} else if (($relation['parent_type'] == NODE_GENERIC)
|
||||
|| ($relation['child_type'] == NODE_GENERIC)
|
||||
} else if (($relation['parent_type'] == NODE_PANDORA)
|
||||
|| ($relation['child_type'] == NODE_PANDORA)
|
||||
) {
|
||||
if ($relation['parent_type'] == NODE_GENERIC) {
|
||||
if ($relation['parent_type'] == NODE_PANDORA) {
|
||||
foreach ($nodes_graph as $key2 => $node) {
|
||||
if ($relation['id_parent'] == $node['id_db']) {
|
||||
$agent = $node['id_db'];
|
||||
|
@ -1914,7 +1914,7 @@ function networkmap_links_to_js_links(
|
|||
$agent2 = $node['id_db'];
|
||||
}
|
||||
}
|
||||
} else if ($relation['child_type'] == NODE_GENERIC) {
|
||||
} else if ($relation['child_type'] == NODE_PANDORA) {
|
||||
foreach ($nodes_graph as $key2 => $node) {
|
||||
if ($relation['id_child'] == $node['id_db']) {
|
||||
$agent2 = $node['id_db'];
|
||||
|
|
Loading…
Reference in New Issue