How to install perl module inside check_mk site

Hello Team,

There is requirement to install perl module inside check_mk site. Is there any procedure available to install perl module inside check_mk site ?

Thanks in Advance

Regards,
Dinesh

You can install Perl modules with cpanminus as the site user, e.g.

cpanm --verbose Net::SNMP

This will install the Net::SNMP module below ~/local/lib/perl5 and make it accessible for the site user.

2 Likes

Thanks @Dirk for replying. I have tried the command provided but cpanm command is not available.

OMD[prod1]:~$ cpanm --verbose Net::SNMP
-bash: cpanm: command not found

Regards,
Dinesh

sudo apt install cpanminus

3 Likes

Thanks @r.sander @Dirk It works as expected.

1 Like