In our company we are hopeful that this function is implemented by the Zabbix team.
Regards
Regards
if (!$dependency || $dependency['soft'] == 0) {
// Define 3 vars to define if it will be visible
$nparents = -1;
if(array_key_exists('parent',$service)){
$nparents = count($service['parent']);
}
$ndeps = count($service['dependencies']);
$ntrigs = count($service['trigger']);
// Show logic
if( !( $nparents ==0 && $ndeps==0 && $ntrigs==0) ){
$tree[$serviceNode['id']] = $serviceNode;
foreach ($service['dependencies'] as $dependency) {
$childService = $services[$dependency['servicedownid']];
createServiceMonitoringTree($services, $slaData, $period, $tree, $service, $childService, $dependency);
}
}
}
if (!$dependency || $dependency['soft'] == 0) {
// Define 3 vars to define if it will be visible
$nparents = -1;
if(array_key_exists('parent',$service)){
$nparents = count($service['parent']);
}
$ndeps = count($service['dependencies']);
$ntrigs = count($service['trigger']);
// Show logic
if( !( $nparents ==0 && $ndeps==0 && $ntrigs==0) ){
$tree[$serviceNode['id']] = $serviceNode;
foreach ($service['dependencies'] as $dependency) {
$childService = $services[$dependency['servicedownid']];
createServiceMonitoringTree($services, $slaData, $period, $tree, $service, $childService, $dependency);
}
}
}


Comment