Menu

#5232 System Statistics does not work on Ubuntu 18.04.1

1.900
open
nobody
None
5
2019-11-14
2019-01-29
dredkin
No

I have Ubuntu 18.04.1 with webmin 1.900 installed.
After recent system update "Historic System Statistics" tab has stopped worknig.
The frame shows an error "Error - Missing Content-Type Header".
I've run perl /usr/share/webmin/sysstats/index.cgi and it showed me an error:

Unimplemented: POSIX::tmpnam(): use File::Temp instead
Unimplemented: POSIX::tmpnam() at ./sysstats-lib.pl line 37.
BEGIN failed--compilation aborted at ./sysstats-lib.pl line 37.

My perl --version is

This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi

According to Perl 5.26 Doc

The fundamentally unsafe tmpnam() interface was deprecated in Perl 5.22 and has now been removed.
In its place, you can use, for example, the File::Temp interfaces.

Discussion

  • dredkin

    dredkin - 2019-01-29

    Here is the patch that helped in my case

     
  • Jamie Cameron

    Jamie Cameron - 2019-01-30

    Thanks! You may need to send this to the author of that module though, as it's not a core part of Webmin.

     
  • dredkin

    dredkin - 2019-01-31

    Thank you for pointing this out. I've updated wemminstat to the latest version and now everything works. I think the bug can be closed.

    BTW: Why third-party modules are not updated automatically?

     
  • Steve Valliere

    Steve Valliere - 2019-11-14

    I am trying to install webminstat (sysstats-2.14.tgz) this morning and am getting this error, too.

    Ubuntu 18.04.3 LTS
    Webmin 1.930
    perl 5 version 26 subversion 1
    rrdtool 1.7.0

    Strangely, webminstats is working on a different ubuntu 18.04.3 LTS system where all of the above components are the exact same versions. Any idea where I look for the DIFFERENT bit that is correct on the system where webminstat was installed a few years ago works but is wrong/missing on the system where I am trying to add webminstat?

     

    Last edit: Steve Valliere 2019-11-14
  • dredkin

    dredkin - 2019-11-14
    1. I suggest you to update wbminstats to the latest version anyway
      https://sourceforge.net/projects/webminstats/files/Sysstats/
      This specific bug is fixed there.
    2. run
      perl /usr/share/webmin/sysstats/index.cgi
      and look for an error.
     
  • Steve Valliere

    Steve Valliere - 2019-11-14

    The big green 'download the latest version' button on the page you linked (currently, at least) provides 2.14 as the latest version. This is the same version I am using and the exact location where I downloaded it this morning when I started to install webminstat.

    While continuing my investigation I discovered that the working system is running sysstats-2.17. Not sure why the source forge page is providing an old version, but upgrading to v2.17 did fix it. So I am good now.

     

Log in to post a comment.

Auth0 Logo