Error Running Module
Brought to you by:
gerbier
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,
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
There are many RRD modules as per cpan at https://metacpan.org/search?q=rrd, would you advise which one is needed?
Thanks,
I was able to install RRDs using the command
sudo apt-get install librrds-perl rrdtoolbut it required carp, I installed it, but after which webminstats failed.I used the commands
perl -MCPAN -e shelltheninstall Carpit showed that it installed, but errors returned in ssh:Wondering what to do next?
Would there be an installer which installs and configures all dependancies before webminstats?
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.
Thanks Eric for your help
libcgi-pm-perldid 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
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
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
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.