copy from ancient MooseX::Nagios::Plugin for later