Fix check_zimbra_sudo
This commit is contained in:
parent
56fcaf7f6c
commit
e0d2825f21
|
@ -46,7 +46,7 @@ my $output = {};
|
|||
if (defined $status){
|
||||
foreach my $line (qx($zmcontrol status)){
|
||||
if ($line =~ m/^\s+(\w+)(\swebapp)?\s+(Running|Stopped)/){
|
||||
$output->{$1} = ($2 eq 'Running') ? 1 : 0;
|
||||
$output->{$1} = ($3 eq 'Running') ? 1 : 0;
|
||||
}
|
||||
}
|
||||
if ($status eq 'all'){
|
||||
|
|
Loading…
Reference in New Issue