Menu

#5 Error Running Module

1.0
closed
None
2025-01-03
2024-12-22
Solutions
No

I installed this module in webmin version 2.202, it replied that it is successfully installed, but when visiting the module page it returns an error " 500 -
Can't locate RRDs.pm in @INC (you may need to install the RRDs module) (@INC contains: .. . /usr/share/webmin/vendor_pe ....." This is the first part of the error, but it a very long one.

Can someone help to make it work?

Thanks,

1 Attachments

Discussion

  • eric gerbier

    eric gerbier - 2024-12-27
    • status: open --> pending
    • assigned_to: eric gerbier
     
  • eric gerbier

    eric gerbier - 2024-12-27

    webminstat use a perl module named RRDs, but the module installation depends upon your linux distribution. Send your linux distribution and I will send you the command line

     
  • Solutions

    Solutions - 2024-12-30

    There are many RRD modules as per cpan at https://metacpan.org/search?q=rrd, would you advise which one is needed?

    Thanks,

     
  • Solutions

    Solutions - 2024-12-30

    I was able to install RRDs using the command sudo apt-get install librrds-perl rrdtool but it required carp, I installed it, but after which webminstats failed.
    I used the commands perl -MCPAN -e shell then install Carp it showed that it installed, but errors returned in ssh:

    make -- NOT OK
      No such file or directory
    Failed during this command:
     XSAWYERX/Carp-1.50.tar.gz
    

    Wondering what to do next?

     
  • Solutions

    Solutions - 2024-12-30

    Would there be an installer which installs and configures all dependancies before webminstats?

     
  • eric gerbier

    eric gerbier - 2024-12-31

    No, because I recommend to use only the system package. Using alternate package, such cpan, may broke the system dependencies and is very difficult to maintain up-to-date.

    On my Ubuntu, Carp is installed from libcgi-pm-perl package, which is needed.

     
  • Solutions

    Solutions - 2024-12-31

    Thanks Eric for your help libcgi-pm-perl did work fine for me and I can see the weminstats dashboard now.

    I get another error when clicking on any of many buttons /etc/webmin/sysstats/modules/battery/config. In my case, I am using VPS and there is no physical battery.

    What would be the solution for this? Would installing tlp help?

     

    Last edit: Solutions 2024-12-31
  • eric gerbier

    eric gerbier - 2024-12-31

    The battery module is using /sys/class/power_supply/BAT0 pseudo-file. So tlp may help. Else, you can disable the battery module, for example from https://localhost:10000/sysstats/edit_module.cgi?idx=battery&xnavigation=1

     
  • Solutions

    Solutions - 2024-12-31

    The link returns a 500 error, so I installed tlp, then started it, but kept getting the battery error and the link also did not work after installing tlp and returned the same error in the screetshot.
    Also I cannot see battery in webminstats dashboard.

    I went to page /sysstats/config.cgi, there is a delete module, would it work if I delete it from here?

     

    Last edit: Solutions 2024-12-31
  • Solutions

    Solutions - 2024-12-31

    Just to let you know, I deleted the webminstats battery module as mentioned in my previous post and then everything seems to work fine.

    Thanks a lot for your help.

     
  • eric gerbier

    eric gerbier - 2025-01-03
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB