From aee0c6e34baa71f02f0e81a430f67f3d7ae54f31 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 28 Jul 2010 13:50:08 +0200 Subject: More tests. 100% total code coverage :) --- t/50-icli.t | 42 +- t/in/status.dat.weird.1 | 3 + t/in/status.dat.weird.2 | 1832 ++++++++++++++++++++++++++++++++++++++++++++ t/out/hosts_group_reduce | 3 + t/out/list_services_single | 13 + 5 files changed, 1892 insertions(+), 1 deletion(-) create mode 100644 t/in/status.dat.weird.1 create mode 100644 t/in/status.dat.weird.2 create mode 100644 t/out/hosts_group_reduce create mode 100644 t/out/list_services_single (limited to 't') diff --git a/t/50-icli.t b/t/50-icli.t index e75ff1e..2eafcf5 100644 --- a/t/50-icli.t +++ b/t/50-icli.t @@ -3,7 +3,7 @@ use strict; use warnings; use 5.010; -use Test::Command tests => (12*3); +use Test::Command tests => (19*3); my $icli = 'bin/icli -f t/in/status.dat -c t/in/objects.cache'; @@ -55,11 +55,21 @@ $cmd->exit_is_num(0); $cmd->stdout_is_file('t/out/services_group_local'); $cmd->stderr_is_eq($EMPTY); +$cmd = Test::Command->new(cmd => "$icli -lh -g derf-remote,http-servers"); +$cmd->exit_is_num(0); +$cmd->stdout_is_file('t/out/hosts_group_reduce'); +$cmd->stderr_is_eq($EMPTY); + $cmd = Test::Command->new(cmd => "$icli -ls -s"); $cmd->exit_is_num(0); $cmd->stdout_is_file('t/out/services_short'); $cmd->stderr_is_eq($EMPTY); +$cmd = Test::Command->new(cmd => "$icli -ls -h steel.derf0.net"); +$cmd->exit_is_num(0); +$cmd->stdout_is_file('t/out/list_services_single'); +$cmd->stderr_is_eq($EMPTY); + $cmd = Test::Command->new(cmd => "$icli -g invalid"); $cmd->exit_isnt_num(0); @@ -70,3 +80,33 @@ $cmd = Test::Command->new(cmd => "$icli -h invalid"); $cmd->exit_isnt_num(0); $cmd->stdout_is_eq($EMPTY); $cmd->stderr_is_eq("Unknown host: invalid\n"); + +$cmd = Test::Command->new(cmd => "$icli -lh -h invalid"); +$cmd->exit_isnt_num(0); +$cmd->stdout_is_eq($EMPTY); +$cmd->stderr_is_eq("Unknown host: invalid\n"); + +$cmd = Test::Command->new(cmd => "$icli -l INVALID"); +$cmd->exit_isnt_num(0); +$cmd->stdout_is_eq($EMPTY); +$cmd->stderr_is_eq("See perldoc -F bin/icli\n"); + + +$icli = "bin/icli -f t/in/status.dat.weird.1 -c t/in/objects.cache"; + +$cmd = Test::Command->new(cmd => $icli); +$cmd->exit_isnt_num(0); +$cmd->stdout_is_eq($EMPTY); +$cmd->stderr_is_eq("Unknown field in t/in/status.dat.weird.1: bork\n"); + +$icli = "bin/icli -f t/in/status.dat.weird.2 -c t/in/objects.cache"; + +$cmd = Test::Command->new(cmd => "$icli -lh -h alpha"); +$cmd->exit_isnt_num(0); +$cmd->stdout_is_eq($EMPTY); +$cmd->stderr_is_eq("Unknown host state: 23\n"); + +$cmd = Test::Command->new(cmd => "$icli -ls -h aneurysm"); +$cmd->exit_isnt_num(0); +$cmd->stdout_is_eq($EMPTY); +$cmd->stderr_is_eq("Unknown service state: 23\n"); diff --git a/t/in/status.dat.weird.1 b/t/in/status.dat.weird.1 new file mode 100644 index 0000000..5b12b3a --- /dev/null +++ b/t/in/status.dat.weird.1 @@ -0,0 +1,3 @@ +bork { + something=ae + } diff --git a/t/in/status.dat.weird.2 b/t/in/status.dat.weird.2 new file mode 100644 index 0000000..6df2494 --- /dev/null +++ b/t/in/status.dat.weird.2 @@ -0,0 +1,1832 @@ +######################################## +# ICINGA STATUS FILE +# +# THIS FILE IS AUTOMATICALLY GENERATED +# BY ICINGA. DO NOT MODIFY THIS FILE! +######################################## + +info { + created=1280306916 + version=1.0.2 + last_update_check=0 + update_available=0 + last_version= + new_version= + } + +programstatus { + modified_host_attributes=0 + modified_service_attributes=0 + icinga_pid=15926 + daemon_mode=1 + program_start=1280269026 + last_command_check=1280306915 + last_log_rotation=0 + enable_notifications=1 + active_service_checks_enabled=1 + passive_service_checks_enabled=1 + active_host_checks_enabled=1 + passive_host_checks_enabled=1 + enable_event_handlers=1 + obsess_over_services=0 + obsess_over_hosts=0 + check_service_freshness=1 + check_host_freshness=0 + enable_flap_detection=1 + enable_failure_prediction=1 + process_performance_data=0 + global_host_event_handler= + global_service_event_handler= + next_comment_id=17 + next_downtime_id=1 + next_event_id=834 + next_problem_id=397 + next_notification_id=116 + total_external_command_buffer_slots=4096 + used_external_command_buffer_slots=0 + high_external_command_buffer_slots=1 + active_scheduled_host_check_stats=3,15,42 + active_ondemand_host_check_stats=0,0,0 + passive_host_check_stats=0,0,0 + active_scheduled_service_check_stats=11,74,226 + active_ondemand_service_check_stats=0,0,0 + passive_service_check_stats=0,0,0 + cached_host_check_stats=0,0,0 + cached_service_check_stats=0,0,0 + external_command_stats=0,0,0 + parallel_host_check_stats=3,15,42 + serial_host_check_stats=0,0,0 + event_profiling_enabled=0 + } + +hoststatus { + host_name=alpha + modified_attributes=0 + check_command=check-host-alive + check_period= + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.015 + check_latency=0.230 + check_type=0 + current_state=23 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + plugin_output=PING OK - Packet loss = 0%, RTA = 0.73 ms + long_plugin_output= + performance_data=rta=0.731000ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0 + last_check=1280306906 + next_check=1280307216 + check_options=0 + current_attempt=1 + max_attempts=10 + state_type=1 + last_state_change=1279063569 + last_hard_state_change=1279063569 + last_time_up=1280306916 + last_time_down=0 + last_time_unreachable=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + current_notification_number=0 + current_notification_id=0 + notifications_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_host=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +hoststatus { + host_name=aneurysm + modified_attributes=0 + check_command=check-host-alive + check_period= + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.014 + check_latency=0.008 + check_type=0 + current_state=2 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + plugin_output=PING OK - Packet loss = 0%, RTA = 0.10 ms + long_plugin_output= + performance_data=rta=0.099000ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0 + last_check=1280306846 + next_check=1280307156 + check_options=0 + current_attempt=1 + max_attempts=10 + state_type=1 + last_state_change=1279063581 + last_hard_state_change=1279063581 + last_time_up=1280306856 + last_time_down=0 + last_time_unreachable=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + current_notification_number=0 + current_notification_id=108 + notifications_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_host=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +hoststatus { + host_name=steel-vpn + modified_attributes=0 + check_command=check-host-alive + check_period= + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.032 + check_latency=0.089 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=831 + current_event_id=832 + current_problem_id=0 + last_problem_id=396 + plugin_output=PING OK - Packet loss = 0%, RTA = 18.01 ms + long_plugin_output= + performance_data=rta=18.010000ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0 + last_check=1280306726 + next_check=1280307036 + check_options=0 + current_attempt=1 + max_attempts=10 + state_type=1 + last_state_change=1280280076 + last_hard_state_change=1279704469 + last_time_up=1280306736 + last_time_down=1280280006 + last_time_unreachable=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + current_notification_number=0 + current_notification_id=73 + notifications_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_host=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +hoststatus { + host_name=steel.derf0.net + modified_attributes=0 + check_command=check-host-alive + check_period= + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.030 + check_latency=0.183 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=770 + current_event_id=771 + current_problem_id=0 + last_problem_id=365 + plugin_output=PING OK - Packet loss = 0%, RTA = 16.75 ms + long_plugin_output= + performance_data=rta=16.750999ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0 + last_check=1280306896 + next_check=1280307206 + check_options=0 + current_attempt=1 + max_attempts=10 + state_type=1 + last_state_change=1280221316 + last_hard_state_change=1279124213 + last_time_up=1280306906 + last_time_down=1280221286 + last_time_unreachable=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + current_notification_number=0 + current_notification_id=0 + notifications_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_host=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=alpha + service_description=HTTP + modified_attributes=0 + check_command=check_http + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.032 + check_latency=0.185 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=415 + current_event_id=416 + current_problem_id=0 + last_problem_id=206 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279497626 + last_hard_state_change=1279063569 + last_time_ok=1280306762 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279497566 + plugin_output=HTTP OK: HTTP/1.0 200 OK - 2333 bytes in 0.019 second response time + long_plugin_output= + performance_data=time=0.018710s;;;0.000000 size=2333B;;;0 + last_check=1280306762 + next_check=1280307062 + check_options=0 + current_notification_number=0 + current_notification_id=1 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Disk: / + modified_attributes=0 + check_command=check_disk!20%!10%!/dev/mapper/aneurysm-root + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.014 + check_latency=0.241 + check_type=0 + current_state=23 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279728981 + last_hard_state_change=1279728981 + last_time_ok=1280306781 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: / 4846 MB (75% inode=90%): + long_plugin_output= + performance_data=/=1539MB;5382;6055;0;6728 + last_check=1280306781 + next_check=1280307081 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Disk: /boot + modified_attributes=0 + check_command=check_disk!20%!10%!/dev/sda1 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.013 + check_latency=0.196 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279729053 + last_hard_state_change=1279729053 + last_time_ok=1280306641 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: /boot 119 MB (53% inode=99%): + long_plugin_output= + performance_data=/boot=103MB;188;211;0;235 + last_check=1280306641 + next_check=1280306941 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Disk: /data + modified_attributes=0 + check_command=check_disk!20%!10%!/dev/mapper/misc-data + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.012 + check_latency=0.112 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279729125 + last_hard_state_change=1279729125 + last_time_ok=1280306625 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: /data 60091 MB (48% inode=99%): + long_plugin_output= + performance_data=/data=63760MB;99080;111465;0;123851 + last_check=1280306625 + next_check=1280306925 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Disk: /home + modified_attributes=0 + check_command=check_disk!20%!10%!/dev/mapper/aneurysm-home + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.128 + check_latency=0.192 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279729196 + last_hard_state_change=1279729196 + last_time_ok=1280306696 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: /home 58378 MB (59% inode=98%): + long_plugin_output= + performance_data=/home=40563MB;83389;93813;0;104237 + last_check=1280306696 + next_check=1280306996 + check_options=0 + current_notification_number=0 + current_notification_id=109 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=HTTP + modified_attributes=0 + check_command=check_http + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.014 + check_latency=0.191 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279063677 + last_hard_state_change=1279063677 + last_time_ok=1280306898 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.001 second response time + long_plugin_output= + performance_data=time=0.000952s;;;0.000000 size=7467B;;;0 + last_check=1280306898 + next_check=1280307198 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=HTTPS + modified_attributes=0 + check_command=check_https + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.031 + check_latency=0.211 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279063785 + last_hard_state_change=1279063785 + last_time_ok=1280306766 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=HTTP OK: HTTP/1.1 200 OK - 7467 bytes in 0.018 second response time + long_plugin_output= + performance_data=time=0.017666s;;;0.000000 size=7467B;;;0 + last_check=1280306766 + next_check=1280307066 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Load + modified_attributes=0 + check_command=check_load!15!10!5!30!25!20 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.012 + check_latency=0.098 + check_type=0 + current_state=2 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279729231 + last_hard_state_change=1279729231 + last_time_ok=1280306731 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=OK - load average: 0.17, 0.13, 0.09 + long_plugin_output= + performance_data=load1=0.170;15.000;30.000;0; load5=0.130;10.000;25.000;0; load15=0.090;5.000;20.000;0; + last_check=1280306731 + next_check=1280307031 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=Processes + modified_attributes=0 + check_command=check_procs!150!200 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.037 + check_latency=0.154 + check_type=0 + current_state=3 + last_hard_state=0 + last_event_id=765 + current_event_id=766 + current_problem_id=0 + last_problem_id=362 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1280167248 + last_hard_state_change=1279729299 + last_time_ok=1280306748 + last_time_warning=1280167188 + last_time_unknown=0 + last_time_critical=0 + plugin_output=PROCS OK: 118 processes + long_plugin_output= + performance_data= + last_check=1280306748 + next_check=1280307048 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=SMTP + modified_attributes=0 + check_command=check_smtp_4 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.051 + check_latency=0.091 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279136208 + last_hard_state_change=1279136208 + last_time_ok=1280306616 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=SMTP OK - 0.038 sec. response time + long_plugin_output= + performance_data=time=0.037631s;;;0.000000 + last_check=1280306616 + next_check=1280306916 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=SSH + modified_attributes=0 + check_command=check_ssh + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.030 + check_latency=0.250 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279063689 + last_hard_state_change=1279063689 + last_time_ok=1280306913 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + long_plugin_output= + performance_data= + last_check=1280306913 + next_check=1280307213 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=SSH password login disabled + modified_attributes=0 + check_command=check_ssh_no_password_login + check_period=24x7 + notification_period=24x7 + check_interval=15.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.144 + check_latency=0.049 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279753339 + last_hard_state_change=1279753339 + last_time_ok=1280306868 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=Password login disabled (server accepts publickey) + long_plugin_output= + performance_data= + last_check=1280306868 + next_check=1280307768 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=aneurysm + service_description=System Backup + modified_attributes=0 + check_command=return-unknown + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=0 + check_execution_time=0.000 + check_latency=0.579 + check_type=1 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=1 + state_type=1 + last_state_change=1279065910 + last_hard_state_change=1279065910 + last_time_ok=1280288856 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=/dev/mapper/misc-backup 109G 40G 69G 37% /backup + long_plugin_output= + performance_data= + last_check=1280288856 + next_check=0 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=0 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel-vpn + service_description=SMTP + modified_attributes=0 + check_command=check_smtp_4 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.093 + check_latency=0.134 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=830 + current_event_id=833 + current_problem_id=0 + last_problem_id=395 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1280280337 + last_hard_state_change=1280280337 + last_time_ok=1280306737 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1280280037 + plugin_output=SMTP OK - 0.080 sec. response time + long_plugin_output= + performance_data=time=0.079648s;;;0.000000 + last_check=1280306737 + next_check=1280307037 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Disk: lv-home + modified_attributes=0 + check_command=check_by_ssh_fc!check_home + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.807 + check_latency=0.116 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279710033 + last_hard_state_change=1279710033 + last_time_ok=1280306733 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: /home 20207 MB (95% inode=99%): + long_plugin_output= + performance_data=/home=1049MB;17915;20154;0;22394 + last_check=1280306733 + next_check=1280307033 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Disk: lv-root + modified_attributes=0 + check_command=check_by_ssh_fc!check_root + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.808 + check_latency=0.110 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279710107 + last_hard_state_change=1279710107 + last_time_ok=1280306684 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=DISK OK - free space: / 5330 MB (85% inode=90%): + long_plugin_output= + performance_data=/=902MB;5253;5910;0;6567 + last_check=1280306684 + next_check=1280306984 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Disk: vda1 + modified_attributes=0 + check_command=check_by_ssh_fc!check_vda1 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.813 + check_latency=0.212 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=663 + current_event_id=726 + current_problem_id=0 + last_problem_id=341 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848500 + last_hard_state_change=1279848500 + last_time_ok=1280306900 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848200 + plugin_output=DISK OK - free space: /boot 190 MB (88% inode=99%): + long_plugin_output= + performance_data=/boot=25MB;181;204;0;227 + last_check=1280306900 + next_check=1280307200 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=HTTP + modified_attributes=0 + check_command=check_http + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.054 + check_latency=0.147 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=659 + current_event_id=736 + current_problem_id=0 + last_problem_id=337 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848533 + last_hard_state_change=1279848533 + last_time_ok=1280306633 + last_time_warning=1279136633 + last_time_unknown=0 + last_time_critical=1279848233 + plugin_output=HTTP OK: HTTP/1.1 200 OK - 668 bytes in 0.040 second response time + long_plugin_output= + performance_data=time=0.040092s;;;0.000000 size=668B;;;0 + last_check=1280306633 + next_check=1280306933 + check_options=0 + current_notification_number=0 + current_notification_id=6 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Load + modified_attributes=0 + check_command=check_by_ssh_fc!check_load + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.833 + check_latency=0.202 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=662 + current_event_id=725 + current_problem_id=0 + last_problem_id=340 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848499 + last_hard_state_change=1279848499 + last_time_ok=1280306899 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848199 + plugin_output=OK - load average: 0.00, 0.00, 0.00 + long_plugin_output= + performance_data=load1=0.000;15.000;30.000;0; load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0; + last_check=1280306899 + next_check=1280307199 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Mail Queue + modified_attributes=0 + check_command=check_by_ssh_fc!check_mailq_postfix + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.918 + check_latency=0.061 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=618 + current_event_id=703 + current_problem_id=0 + last_problem_id=310 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848399 + last_hard_state_change=1279848399 + last_time_ok=1280306799 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848099 + plugin_output=OK: mailq reports queue is empty + long_plugin_output= + performance_data=unsent=0;10;20;0 + last_check=1280306799 + next_check=1280307099 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=No open relay + modified_attributes=0 + check_command=check_mail_no_relay + check_period=24x7 + notification_period=24x7 + check_interval=60.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.314 + check_latency=0.159 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279664220 + last_hard_state_change=1279664220 + last_time_ok=1280306820 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=NORELAY OK: <** 554 5.7.1 : Relay access denied + long_plugin_output= + performance_data= + last_check=1280306820 + next_check=1280310420 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Not Blacklisted + modified_attributes=0 + check_command=check_rbl + check_period=24x7 + notification_period=24x7 + check_interval=60.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=1.202 + check_latency=0.098 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279819422 + last_hard_state_change=1279819422 + last_time_ok=1280305722 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=CHECK_RBL OK - steel.derf0.net BLACKLISTED on 0 servers of 43 + long_plugin_output= + performance_data=servers=0;1;1 time=1s;; + last_check=1280305722 + next_check=1280309322 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Processes + modified_attributes=0 + check_command=check_by_ssh_fc!check_procs + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.848 + check_latency=0.164 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=610 + current_event_id=698 + current_problem_id=0 + last_problem_id=304 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848352 + last_hard_state_change=1279848352 + last_time_ok=1280306752 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848052 + plugin_output=PROCS OK: 82 processes + long_plugin_output= + performance_data= + last_check=1280306752 + next_check=1280307052 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=SMTP + modified_attributes=0 + check_command=check_smtp_4 + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.135 + check_latency=0.063 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279136421 + last_hard_state_change=1279136421 + last_time_ok=1280306721 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=SMTP OK - 0.122 sec. response time + long_plugin_output= + performance_data=time=0.121732s;;;0.000000 + last_check=1280306721 + next_check=1280307021 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=SSH + modified_attributes=0 + check_command=check_ssh + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.064 + check_latency=0.239 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=617 + current_event_id=710 + current_problem_id=0 + last_problem_id=309 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848437 + last_hard_state_change=1279848437 + last_time_ok=1280306837 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848137 + plugin_output=SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) + long_plugin_output= + performance_data= + last_check=1280306837 + next_check=1280307137 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=SSH password login disabled + modified_attributes=0 + check_command=check_ssh_no_password_login + check_period=24x7 + notification_period=24x7 + check_interval=15.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.321 + check_latency=0.025 + check_type=0 + current_state=0 + last_hard_state=0 + last_event_id=0 + current_event_id=0 + current_problem_id=0 + last_problem_id=0 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279753527 + last_hard_state_change=1279753527 + last_time_ok=1280306127 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=0 + plugin_output=Password login disabled (server accepts publickey) + long_plugin_output= + performance_data= + last_check=1280306127 + next_check=1280307027 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +servicestatus { + host_name=steel.derf0.net + service_description=Users + modified_attributes=0 + check_command=check_by_ssh_fc!check_users + check_period=24x7 + notification_period=24x7 + check_interval=5.000000 + retry_interval=1.000000 + event_handler= + has_been_checked=1 + should_be_scheduled=1 + check_execution_time=0.840 + check_latency=0.220 + check_type=0 + current_state=1 + last_hard_state=0 + last_event_id=629 + current_event_id=707 + current_problem_id=0 + last_problem_id=317 + current_attempt=1 + max_attempts=4 + state_type=1 + last_state_change=1279848429 + last_hard_state_change=1279848429 + last_time_ok=1280306829 + last_time_warning=0 + last_time_unknown=0 + last_time_critical=1279848129 + plugin_output=USERS OK - 0 users currently logged in + long_plugin_output= + performance_data=users=0;5;10;0 + last_check=1280306829 + next_check=1280307129 + check_options=0 + current_notification_number=0 + current_notification_id=0 + last_notification=0 + next_notification=0 + no_more_notifications=0 + notifications_enabled=1 + active_checks_enabled=1 + passive_checks_enabled=1 + event_handler_enabled=1 + problem_has_been_acknowledged=0 + acknowledgement_type=0 + flap_detection_enabled=1 + failure_prediction_enabled=1 + process_performance_data=1 + obsess_over_service=1 + last_update=1280306916 + is_flapping=0 + percent_state_change=0.00 + scheduled_downtime_depth=0 + } + +contactstatus { + contact_name=derf + modified_attributes=0 + modified_host_attributes=0 + modified_service_attributes=0 + host_notification_period=24x7 + service_notification_period=24x7 + last_host_notification=1280163970 + last_service_notification=1280179596 + host_notifications_enabled=1 + service_notifications_enabled=1 + } diff --git a/t/out/hosts_group_reduce b/t/out/hosts_group_reduce new file mode 100644 index 0000000..0128e43 --- /dev/null +++ b/t/out/hosts_group_reduce @@ -0,0 +1,3 @@ +steel.derf0.net  OK  PING OK - Packet loss = 0%, RTA = 16.75 ms +aneurysm UNREACHABLE PING OK - Packet loss = 0%, RTA = 0.10 ms +alpha  DOWN  PING OK - Packet loss = 0%, RTA = 0.73 ms diff --git a/t/out/list_services_single b/t/out/list_services_single new file mode 100644 index 0000000..389a2f0 --- /dev/null +++ b/t/out/list_services_single @@ -0,0 +1,13 @@ +Disk: lv-home  OK  DISK OK - free space: /home 20207 MB (95% inode=99%): +Disk: lv-root  OK  DISK OK - free space: / 5330 MB (85% inode=90%): +Disk: vda1  OK  DISK OK - free space: /boot 190 MB (88% inode=99%): +HTTP  OK  HTTP OK: HTTP/1.1 200 OK - 668 bytes in 0.040 second response time +Load  OK  OK - load average: 0.00, 0.00, 0.00 +Mail Queue  OK  OK: mailq reports queue is empty +No open relay  OK  NORELAY OK: <** 554 5.7.1 : Relay access denied +Not Blacklisted  OK  CHECK_RBL OK - steel.derf0.net BLACKLISTED on 0 servers of 43 +Processes  OK  PROCS OK: 82 processes +SMTP  OK  SMTP OK - 0.122 sec. response time +SSH  OK  SSH OK - OpenSSH_5.5p1 Debian-4 (protocol 2.0) +SSH password login d  OK  Password login disabled (server accepts publickey) +Users  WARNING USERS OK - 0 users currently logged in -- cgit v1.2.3