fix(plugin) Always output headers giving file names to avoid issues. (#4588)

This commit is contained in:
ykacherCentreon 2023-08-22 10:11:03 +02:00 committed by GitHub
parent c43b8ae476
commit 8ce1ccf507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ sub add_extra_metrics {
$self->set_timestamp(timestamp => Time::HiRes::time());
my ($content) = $options{custom}->execute_command(
command => 'bash',
command_options => "-c 'tail -n +1 /proc/$proc_arg/$files_arg'",
command_options => "-c 'tail -vn +1 /proc/$proc_arg/$files_arg'",
no_quit => 1
);