We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tail on /var/cache/check-log/.../var/log/auth.log reports 9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated 9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated 9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated
URGENT ISSUE
The text was updated successfully, but these errors were encountered:
Does this line need to change ? From
FileUtils.mkdir_p(File.dirname(@state_file)) File.open(@state_file, 'w') do |file| file.write(@bytes_to_skip + bytes_read) end
To //sorry for java syntax, but I think you get the point
if (bytes_read > 0) { FileUtils.mkdir_p(File.dirname(@state_file)) File.open(@state_file, 'w') do |file| file.write(@bytes_to_skip + bytes_read) end }
Sorry, something went wrong.
I have not used this plugin or read through it's code enough to comment on why the file is truncated.
Regarding an empty file (or a non existent file for that matter) we should just check that the files size is 0:
if File.stat(my_file).size.zero? || !File.exist?(my_file) p "skipping #{my_file} as it is empty or does not exist else # do current logic end
No branches or pull requests
tail on /var/cache/check-log/.../var/log/auth.log reports
9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated
9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated
9333715tail: /var/cache/check-log/default/var/log/auth.log: file truncated
URGENT ISSUE
The text was updated successfully, but these errors were encountered: