You may want to replace Nagios::Plugin with Monitoring::Plugin, depending on your
Distro.
Debian does Monitoring::Plugin since Debian... 7? 8? Something?, and RHEL and derivatives
did the switch for the RHEL 8 genrations.
The more modern your OS, the more likely it's Monitoring::Plugins.