From 1739c85e505752ae5c8fbaae61cd11d5fa56b8eb Mon Sep 17 00:00:00 2001 From: Gael Lepetit Date: Thu, 21 Jul 2022 11:18:23 +0200 Subject: [PATCH] fix: unset LD_LIBRARY_PATH in journalctl launch --- bin/check-journal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check-journal.rb b/bin/check-journal.rb index fc5cfa8..e103380 100755 --- a/bin/check-journal.rb +++ b/bin/check-journal.rb @@ -98,7 +98,7 @@ def run n_matches = search_journal(journalctl_args) - message = "#{n_matches} matches found for #{config[:pattern]} in `journalctl #{journalctl_args}`" + message = "#{n_matches} matches found for #{config[:pattern]} in `LD_LIBRARY_PATH= journalctl #{journalctl_args}`" if n_matches >= config[:critical_count] critical message + " (threshold #{config[:critical_count]})" elsif n_matches >= config[:warning_count]