Build precise queries to find exactly what you need
Press ESC to close
If the webserver that hosts your XML file supports ETag, then you can speed up things by using that caching mechanism. This is most noticeable with large XML files (such as eduGAIN metadata). I was a fairly trivial patch:
— check_http_xpath.pl 2018-11-23 16:07:33.521799526 +0100 +++ test.pl 2018-11-24 00:27:34.848817509 +0100 @@ -27,6 +27,7 @@ use Getopt::Std; use XML::XPath; use Data::Dumper; +use HTTP::Cache::Transparent;
my %optarg; my $getopt_result; @@ -294,6 +295,10 @@ $lwp_user_agent->default_header(‘Host’ => “$host:$port”); }
+HTTP::Cache::Transparent::init( { + BasePath => ‘/tmp/cache’, + } ); + $url = “$http://${host_ip}:${port}$uri”; $http_request = HTTP::Request->new(GET => $url);
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!