0 && $data['monitor_checks'] > 0) { $data['monitor_health'] = format_numeric((100 - ($data['monitor_not_normal'] / ($data['monitor_checks'] / 100))), 1); } else { $data['monitor_health'] = 100; } if ($data['monitor_not_init'] > 0 && $data['monitor_checks'] > 0) { $data['module_sanity'] = format_numeric((100 - ($data['monitor_not_init'] / ($data['monitor_checks'] / 100))), 1); } else { $data['module_sanity'] = 100; } if (isset($data['alerts'])) { if ($data['monitor_alerts_fired'] > 0 && $data['alerts'] > 0) { $data['alert_level'] = format_numeric((100 - ($data['monitor_alerts_fired'] / ($data['alerts'] / 100))), 1); } else { $data['alert_level'] = 100; } } else { $data['alert_level'] = 100; $data['alerts'] = 0; } $data['monitor_bad'] = ($data['monitor_critical'] + $data['monitor_warning']); if ($data['monitor_bad'] > 0 && $data['monitor_checks'] > 0) { $data['global_health'] = format_numeric((100 - ($data['monitor_bad'] / ($data['monitor_checks'] / 100))), 1); } else { $data['global_health'] = 100; } $data['server_sanity'] = format_numeric((100 - $data['module_sanity']), 1); } ui_require_css_file('logon'); echo '
'.$stat['title'].' | '.$stat['graph'].' |
'.__('Welcome to our monitoring tool so grand,').'
'.__('Where data insights are at your command.').'
'.__('Sales, marketing, operations too,').'
'.__("Customer support, we've got you.").'
'.__('Our interface is user-friendly,').'
'.__("Customize your dashboard, it's easy.").'
'.__('Set up alerts and gain insights so keen,').'
'.__("Optimize your data, like you've never seen.").'
'.__('Unleash its power now, and join the pro league,').'
'.__('Unlock the potential of your data to intrigue.').'
'.__('Monitoring made simple, efficient and fun,').'
'.__('Discover a whole new way to get things done.').'
'.__('And take control of your IT once and for all.').'
'.__('You can replace this message with a personalized one at Admin tools -> Site news.').' '; $output_news .= '