summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c18f7cb)
raw | patch | inline | side by side (parent: c18f7cb)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Jul 2010 07:45:19 +0000 (09:45 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Jul 2010 07:45:19 +0000 (09:45 +0200) |
contrib/exec-nagios.px | patch | blob | history |
diff --git a/contrib/exec-nagios.px b/contrib/exec-nagios.px
index 938721fc55624977fa89d5ea3a1d289531573b6d..b26981fb32c7687507ae1690a53ceefa29ca6984 100755 (executable)
--- a/contrib/exec-nagios.px
+++ b/contrib/exec-nagios.px
my $type = shift;
my $time = shift;
my $line = shift;
+ my $ident = "$host/$plugin-$pinst/$type-$tinst";
my $tinst;
my $value;
return;
}
- print "PUTVAL $host/$plugin-$pinst/$type-$tinst interval=$Interval ${time}:$value\n";
+ $ident =~ s/"/\\"/g;
+
+ print qq(PUTVAL "$ident" interval=$Interval ${time}:$value\n);
}
sub execute_script