You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
Im trying to write a custom monitoring plugin but i am having trouble installing the Perl Monitoring::Plugin module.
Can't locate Monitoring/Plugin.pm in @inc (you may need to install the Monitoring::Plugin module) (@inc contains: /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/monitoring-plugins/check_battery_new.pl line 11.
BEGIN failed--compilation aborted at /usr/lib/monitoring-plugins/check_battery_new.pl line 11.
Im running LibreNMS using Docker compose
Expected behaviour
The script will use sockets to communicate via TCP->Serial and decode the received data. Then it will output the performance data for me to add into graphs.
I've figured out how to install the module by doing these steps:
First we exec into the librenms container:
docker exec -it librenms bash
Then we install the following:
apk add perl-dev
apk add perl-app-cpanminus
apk add alpine-sdk
cpanm Monitoring::Plugin
Perhaps we could add to the documentation some examples. One thing i haven't figured out is how to persist these changes across docker restarts. I need to run these commands after every restart of container
Support guidelines
I've found a bug and checked that ...
Description
Im trying to write a custom monitoring plugin but i am having trouble installing the Perl Monitoring::Plugin module.
Can't locate Monitoring/Plugin.pm in @inc (you may need to install the Monitoring::Plugin module) (@inc contains: /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/lib/monitoring-plugins/check_battery_new.pl line 11.
BEGIN failed--compilation aborted at /usr/lib/monitoring-plugins/check_battery_new.pl line 11.
Im running LibreNMS using Docker compose
Expected behaviour
The script will use sockets to communicate via TCP->Serial and decode the received data. Then it will output the performance data for me to add into graphs.
Actual behaviour
The script should run
Steps to reproduce
Try to use the Monitoring Plugin module
https://metacpan.org/dist/Monitoring-Plugin
Docker info
Docker Compose config
No response
Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: