diff --git a/zabbix_scripts/check_httpd b/zabbix_scripts/check_httpd index d9ce2a6..180726a 100644 --- a/zabbix_scripts/check_httpd +++ b/zabbix_scripts/check_httpd @@ -25,8 +25,8 @@ unless ($status){ } foreach my $line (split(/\n/, $status)){ - next unless ($line =~ m/^(\w+):\s([\.\d]+)/); - my ($key, $val) = ($1,$2); + next unless ($line =~ m/^(\w+(\s\w+)?):\s([\.\d]+)/); + my ($key, $val) = ($1,$3); $key =~ s/\s/_/g; $key = lc $key; # Remove leading and trailing spaces