check-journal.rb lauch journalctl with embeded library
gael-api opened this issue · comments
Gaël commented
check-journal.rb lauch journalctl with library path pointing to embeded library.
So journalctl returns :
journalctl: /var/cache/sensu/sensu-agent/ff3ba13e1a20f89eaac7613fc2c072a8a355918dbaf158b8d1565ebf02d066f3382dde872c1d80002ded762d8a3a860ccce20410b8d
edb47b69fd7038e918dde/lib/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /lib/systemd/libsystemd-shared-245.so)
journalctl: /var/cache/sensu/sensu-agent/ff3ba13e1a20f89eaac7613fc2c072a8a355918dbaf158b8d1565ebf02d066f3382dde872c1d80002ded762d8a3a860ccce20410b8d
edb47b69fd7038e918dde/lib/libcrypt.so.1: version `XCRYPT_4.4' not found (required by /lib/systemd/libsystemd-shared-245.so)
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
Workaround can be add LD_LIBRARY_PATH=
in front of journalctl cmd
So the command is LD_LIBRARY_PATH= journalctl #{journalctl_args}