@if (!dependenciesTree) { } @if (dependenciesTree) { @if (dependenciesTree.hostdependenciesTree.nodes && dependenciesTree.hostdependenciesTree.nodes.length > 0) { @for (node of dependenciesTree.hostdependenciesTree.nodes | filter: {type: 'host'}; track node.id) {
@for (conn of dependenciesTree.hostdependenciesTree.connections; track conn.id) { @if (conn.target === node.id) {
} }
@if (node.Hoststatus) { } {{ node.name }} {{ t('IP address') }} {{ node.address }}
{{ t('Status') }}
@if (node.Hoststatus.currentState >= 0) { @if (node.Hoststatus.currentState > 0 && !node.Hoststatus.problemHasBeenAcknowledged && !node.Hoststatus.scheduledDowntimeDepth) {
{{ t('Unhandled') }}
} @else if (node.Hoststatus.problemHasBeenAcknowledged || node.Hoststatus.scheduledDowntimeDepth) { @if (node.Hoststatus.problemHasBeenAcknowledged) {
} @if (node.Hoststatus.scheduledDowntimeDepth) {
} } } @else {
{{ t('Not in monitoring') }}
}
{{ 'State type' }}
@if (node.Hoststatus.isHardstate) { {{ t('Hard state') }} } @else { {{ t('Soft state') }} } ({{ node.Hoststatus.current_check_attempt }} /{{ node.Hoststatus.max_check_attempts }})
{{ 'State since' }} {{ node.Hoststatus.lastCheckInWords }}
@for (conn of dependenciesTree.hostdependenciesTree.connections; track conn.id) { @if (conn.source === node.id) {
} }
} @for (node of dependenciesTree.hostdependenciesTree.nodes | filter: {type: 'dependency'}; track node.id) {
@for (conn of dependenciesTree.hostdependenciesTree.connections; track conn.id) { @if (conn.target === node.id) {
} }
# {{ t('Host dependency') }} [{{ t('ID') }}: {{ node.hostdependency_id }}] {{ t('Inherits parent') }} @if (node.inherits_parent) { {{ t('Yes') }} } @if (!node.inherits_parent) { {{ t('No') }} } @if (node.execution_fail_on_up) { {{ t('O') }} } @if (node.execution_fail_on_down) { {{ t('D') }} } @if (node.execution_fail_on_unreachable) { {{ t('U') }} } @if (node.execution_fail_on_pending) { {{ t('P') }} } @if (node.execution_none) { {{ t('N') }} } @if (node.notification_fail_on_up) { {{ t('O') }} } @if (node.notification_fail_on_down) { {{ t('D') }} } @if (node.notification_fail_on_unreachable) { {{ t('U') }} } @if (node.notification_fail_on_pending) { {{ t('P') }} } @if (node.notification_none) { {{ t('N') }} } @if (node.timeperiod && node.timeperiod.name) { {{ node.timeperiod.name }} }
@for (conn of dependenciesTree.hostdependenciesTree.connections; track conn.id) { @if (conn.source === node.id) {
} }
} @for (conn of dependenciesTree.hostdependenciesTree.connections; track conn.id) { }
} }