Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Aug 14, 2011
1 parent 790d829 commit a9b6bc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Thruk/Controller/cmd.pm
Expand Up @@ -642,12 +642,12 @@ sub _check_reschedule_alias {
my $services = $c->{'db'}->get_services( filter => [ Thruk::Utils::Auth::get_auth_filter( $c, 'services' ), { 'host_name' => $hostname }, { 'description' => $servicename }, ] );
return unless defined $services;
my $service = $services->[0];
return unless defined $service;

# only passive services
return unless ( defined $service->{'has_been_checked'}
and $service->{'has_been_checked'} == 0
)
or $service->{'check_type'} != 0;
my $has_been_checked = $service->{'has_been_checked'} || 0;
my $check_type = $service->{'check_type'} || 0;
return if $service->{'has_been_checked'} == 1 and $service->{'check_type'} == 0;

my $aliases = ref $c->config->{'command_reschedule_alias'} eq 'ARRAY'
? $c->config->{'command_reschedule_alias'}
Expand Down
2 changes: 1 addition & 1 deletion thruk.conf
Expand Up @@ -232,7 +232,7 @@ can_submit_commands = 1
submit_result = 1 # Submit passive check result
</cmd_quick_status>

# command alias can be used for agent based checks, where the activce agent
# command alias can be used for agent based checks, where the active agent
# check should be rescheduled instead of the passive check.
# Have a look at the documentation for a detailed description.
#command_reschedule_alias = servicename_or_commandname_pattern;agent_service_name
Expand Down

0 comments on commit a9b6bc6

Please sign in to comment.