From: Florian Forster Date: Mon, 5 Jul 2010 07:40:33 +0000 (+0200) Subject: contrib/exec-munin.px: Use the "PUTVAL" command explicitly. X-Git-Tag: collectd-5.0.0-beta0~96 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dfa9f1043e287606c7c7c8e6444c79ecaad5422d;p=collectd.git contrib/exec-munin.px: Use the "PUTVAL" command explicitly. --- diff --git a/contrib/exec-munin.px b/contrib/exec-munin.px index 907ea9bc..b57601a3 100755 --- a/contrib/exec-munin.px +++ b/contrib/exec-munin.px @@ -206,8 +206,11 @@ sub execute_script my $field = $1; my $value = $2; my $type = (defined ($TypeMap->{$field})) ? $TypeMap->{$field} : $field; + my $ident = "$host/munin-$pinst/$type"; - print "$host/munin-$pinst/$type interval=$Interval $time:$value\n"; + $ident =~ s/"/\\"/g; + + print qq(PUTVAL "$ident" interval=$Interval $time:$value\n); } }