On Debian, you might want to replace the two occurrences of Nagios::Plugin with Monitoring::Plugin, this is due to a rename and will work similarly.