Perl module Sys-CPU is not possible to install from CPAN.
$ cpan install Sys-CPU
~ Database was generated on Tue, 27 Jun 2023 09:29:02 GMT
>(error): Could not expand [Sys-CPU]. Check the module name.
>(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
>(info): and you provide the -x option on invocation.
>(error): Skipping Sys-CPU because I couldn't find a matching namespace.
Could you please consider to stop using it in https://sourceforge.net/p/logwatch/git/ci/master/tree/scripts/services/zz-sys?
Wrong type of ticket it should be 'Bug'
Ticket moved from /p/logwatch/patches/80/
Thanks for posting the bug.
There doesn't appear to be a universal way of obtaining this CPU/Memory information across different Linux/Unix platforms. Perhaps that's why the referenced Perl modules were discontinued.
I have created a new version, which is attached. It queries the /proc filesystem, which I believe to be common across all Linux (and many Unix, but not all) variants. Let me know if this script helps. Since the current zz-sys script does not appear to work for any recent Perl release, I think it is an improvement, even though it is not universal.
I will note that the zz-* scripts don't analyze logs; they get their info in real time when they are run, and thus outside the true scope of Logwatch. But the zz-sys script has been there for a very long time.
The script works for me, thanks.