Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Berteaud f46a580f90 Automatic commit of package [zabbix-agent-addons] release [0.2.163-1].
Created by command:

/usr/bin/tito tag
2022-01-24 11:01:15 +01:00
Daniel Berteaud e0d2825f21 Fix check_zimbra_sudo 2022-01-24 11:01:03 +01:00
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
0.2.162-1 ./
0.2.163-1 ./

View File

@ -4,7 +4,7 @@
Summary: Scripts for Zabbix monitoring
Name: zabbix-agent-addons
Version: 0.2.162
Version: 0.2.163
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
@ -106,6 +106,9 @@ fi
%endif
%changelog
* Mon Jan 24 2022 Daniel Berteaud <dbd@ehtrace.com> 0.2.163-1
- Fix check_zimbra_sudo (dbd@ehtrace.com)
* Fri Jan 21 2022 Daniel Berteaud <dbd@ehtrace.com> 0.2.162-1
- Add alloc_ct for LVM VG when missing (dbd@ehtrace.com)

View File

@ -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'){