diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml new file mode 100644 index 000000000..08e8c7d9c --- /dev/null +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -0,0 +1,27 @@ + + translate('Last check') ?> + img('img/icons/refresh_petrol.png') ?> translate('Check now') ?> timeSince($object->last_check) ?> + + + translate('Next check') ?> + img('img/icons/reschedule_petrol.png') ?> translate('Reschedule') ?> timeUnless($object->next_check) ?> + +check_execution_time): ?> + + translate('Check execution time') ?> + check_execution_time ?>s + + +check_latency): ?> + + translate('Check latency') ?> + check_latency ?>s + + + diff --git a/modules/monitoring/application/views/scripts/show/components/flapping.phtml b/modules/monitoring/application/views/scripts/show/components/flapping.phtml new file mode 100644 index 000000000..b6dbe0cee --- /dev/null +++ b/modules/monitoring/application/views/scripts/show/components/flapping.phtml @@ -0,0 +1,14 @@ +is_flapping) { + printf( + "%s%s %s\n", + 'Flapping', + $this->icon('flapping.png', 'Flapping'), + sprintf( + 'Currently flapping witgh a %.2f%% state change rate', + $object->percent_state_change + ) + ); +} + diff --git a/modules/monitoring/application/views/scripts/show/components/output.phtml b/modules/monitoring/application/views/scripts/show/components/output.phtml new file mode 100644 index 000000000..d482a4d66 --- /dev/null +++ b/modules/monitoring/application/views/scripts/show/components/output.phtml @@ -0,0 +1,2 @@ +pluginOutput($object->output) ?> +pluginOutput($object->long_output) ?> diff --git a/modules/monitoring/application/views/scripts/show/components/perfdata.phtml b/modules/monitoring/application/views/scripts/show/components/perfdata.phtml new file mode 100644 index 000000000..086ee1235 --- /dev/null +++ b/modules/monitoring/application/views/scripts/show/components/perfdata.phtml @@ -0,0 +1,7 @@ +perfdata) return ?> + + translate('Performance data') ?> + + perfdata($object->perfdata) ?> + +