** Description changed:
[Impact]
Logwatch's Sys perl module is optional per distro policy and only used to
display current cpu and memory levels, strictly for informational reasons.
The warnings issued by Logwatch do not indicate an actual problem, but they do
clutter the logwatch report, particularly since they're displayed at the top of
the report.
[Test Case]
$ export CODENAME="focal"
$ lxc launch ubuntu:${CODENAME} test-logwatch
$ lxc exec test-logwatch -- bash
# apt-get update
# apt-get dist-upgrade -y
# apt-get install -y logwatch
Without the fix, the start of the log will show an error message about
Sys::CPU and Sys::MemInfo not being installed. With the fix there will
be no error message.
-
[Regression Potential]
Since logwatch filters logs for errors pertinent to administrators,
standard things to watch out for are undesired changes in this filtering
behavior, such as flagging or failing to flag issues differently than
before, other than the specific messages being filtered with this
change.
- [Fix]
-
- [Discussion]
[Original Report]
$ sudo logwatch --detail Low --range today --service all --output stdout
--------------------- System Configuration Begin ------------------------
No Sys::CPU module installed. To install, execute the command:
perl -MCPAN -e 'install Sys::CPU'
No Sys::MemInfo module installed. To install, execute the command:
perl -MCPAN -e 'install Sys::MemInfo'
Machine: x86_64
Release: Linux 5.4.0-40-generic
---------------------- System Configuration End
-------------------------
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890749
Title:
Missing perl 'Sys' module in system config summary on focal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1890749/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs