Skip to content

Commit

Permalink
Added useful message for UNKNOWN state
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Vogl committed Oct 10, 2017
1 parent 8fc3d2a commit 05bc55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_apache_status.pl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
if ($response->is_success) {

unless ($response->content =~ /(?s).*BusyWorkers:\s([0-9]+).*IdleWorkers:\s([0-9]+).*Scoreboard:\s(.*)$/) {
$plugin->plugin_exit( UNKNOWN, $response->base );
$plugin->plugin_exit( UNKNOWN, "No status information found at ".$response->base );
}

$BusyWorkers = $1;
Expand Down

0 comments on commit 05bc55f

Please sign in to comment.