From dfa9f1043e287606c7c7c8e6444c79ecaad5422d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 5 Jul 2010 09:40:33 +0200 Subject: [PATCH] contrib/exec-munin.px: Use the "PUTVAL" command explicitly. --- contrib/exec-munin.px | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 2.30.2