Works well!
But name of required library has changed to Nagios::Monitoring::Plugin. Just needed to change to two occurrences in the script to make it work.
I installed the required perl module by:
"export PERL_MM_USE_DEFAULT=1; perl -MCPAN -e 'install Nagios::Monitoring::Plugin'"