X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fcussh.pl;h=2ec6308bd90ae130be1de8907cb163139c55de67;hb=db4f7362efcfd89447c950c945f789a44d6e55a5;hp=f95d54d2010eac76bd1e0a134d17b23fdd9fe383;hpb=714644fb443eb2dc8fd8c683cae171caef40cf7a;p=collectd.git diff --git a/contrib/cussh.pl b/contrib/cussh.pl index f95d54d2..2ec6308b 100755 --- a/contrib/cussh.pl +++ b/contrib/cussh.pl @@ -243,6 +243,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;