Menu

#117 Sys-CPU is not available on CPAN

v7.8
closed
nobody
None
5
2023-07-22
2023-06-27
No

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?

Discussion

  • Jitka Plesnikova

    Wrong type of ticket it should be 'Bug'

     
  • Bjorn

    Bjorn - 2023-07-04

    Ticket moved from /p/logwatch/patches/80/

     
  • Bjorn

    Bjorn - 2023-07-04

    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.

     
  • Jitka Plesnikova

    The script works for me, thanks.

     
  • Bjorn

    Bjorn - 2023-07-22
    • status: open --> closed
     

Log in to post a comment.