Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
479405be
Verified
Commit
479405be
authored
Mar 21, 2018
by
Florian Pritz
Browse files
zabbix-agent: Fix missing quotes for systemd.unit_data[]
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
bbe72f40
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/zabbix-agent/templates/zabbix_agentd.conf
View file @
479405be
...
...
@@ -22,7 +22,7 @@ UserParameter=systemd.unit.is-enabled[*],systemctl is-enabled --quiet '$1' && ec
UserParameter
=
systemd
.
failed_units
,/
usr
/
local
/
bin
/
systemd
-
units
-
failed
.
py
UserParameter
=
systemd
.
accounting_discover
,/
usr
/
local
/
bin
/
systemd
-
discover
-
accounting
-
units
.
py
UserParameter
=
systemd
.
unit_data
[*],
systemctl
show
$(
echo
'$1'
|
sed
's#--AT--#@#g'
) |
perl
-
MJSON
-
ne
'BEGIN{my %h}; my ($$k,$$v) = split(/=/,$$_,2); chomp($$h{$$k} = ($v =~ s/\[not set\]/0/r)); END {print encode_json(\%h)};'
UserParameter
=
systemd
.
unit_data
[*],
systemctl
show
--
"
$(echo '$1' | sed 's#--AT--#@#g')
"
|
perl
-
MJSON
-
ne
'BEGIN{my %h}; my ($$k,$$v) = split(/=/,$$_,2); chomp($$h{$$k} = ($v =~ s/\[not set\]/0/r)); END {print encode_json(\%h)};'
UserParameter
=
borg_backup
.
data
,/
usr
/
local
/
bin
/
zabbix
-
borg
-
timestamps
.
pl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment