Index: pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status
===================================================================
--- pkg-nagios-plugins-contrib.orig/check_httpd_status/check_httpd_status
+++ pkg-nagios-plugins-contrib/check_httpd_status/check_httpd_status
@@ -34,8 +34,28 @@ use File::Basename;			# get basename()
 use POSIX qw(setlocale);
 use Locale::gettext;
 
-use Nagios::Plugin ;
-
+sub load_module {
+    my @names = @_;
+    my $module;
+    for my $name (@names) {
+        my $file = $name;
+        # requires need either a bare word or a file name
+        $file =~ s{::}{/}gsxm;
+        $file .= '.pm';
+        eval {
+            require $file;
+            $name->import();
+            $module = $name;
+		};
+		last if $module;
+    }
+    return $module;
+}
+
+my $plugin_module;
+BEGIN {
+	$plugin_module = load_module( 'Monitoring::Plugin', 'Nagios::Plugin' );
+}
 use LWP::UserAgent;
 use HTTP::Status; # get status_message()
 use Time::HiRes qw(gettimeofday tv_interval);
@@ -92,7 +112,7 @@ my %TranslationTable = (
 );
 
 
-my $np = Nagios::Plugin->new(
+my $np = $plugin_module->new(
 	version => $VERSION,
 	blurb => _gt('Apache / Lighthttpd server status monitor for Nagios'),
 	usage => "Usage: %s [ -H <host> [-p <port>] [-t <timeout>] [-w <warn_level> -c <crit_level>] [-V] [-u <url>] [-U user -P pass -r realm]",
@@ -443,4 +463,4 @@ Note :
         Warn if less than 100 workers are available
         Crit if less than 10 workers are available
 EOT
-}
\ No newline at end of file
+}
