From: Florian Forster Date: Tue, 13 May 2008 14:50:49 +0000 (+0200) Subject: contrib/cussh.pl: Add the `identifier' option to the `flush' command. X-Git-Tag: collectd-4.5.0~151 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d9f299b9b2f9b84d423127c499237e6674209fab;p=collectd.git contrib/cussh.pl: Add the `identifier' option to the `flush' command. --- diff --git a/contrib/cussh.pl b/contrib/cussh.pl index 6da2856d..48f5e937 100755 --- a/contrib/cussh.pl +++ b/contrib/cussh.pl @@ -223,6 +223,15 @@ sub flush { elsif ($option eq "timeout") { $args{"timeout"} = $value; } + elsif ($option eq "identifier") { + my $id = getid (\$value); + if (!$id) + { + print STDERR "Not a valid identifier: \"$value\"\n"; + next; + } + push @{$args{"identifier"}}, $id; + } else { print STDERR "Invalid option \"$option\".\n"; return;