Re: [Nagios-devel] [PATCH 1/1] Additional command link for

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] [PATCH 1/1] Additional command link for

Post by Guest »

Small fix for the fix...

Please apply this patch for the patch.

diff --git a/t/622extinfo-local.t b/t/622extinfo-local.t
index dae8289..70a7f7a 100644
--- a/t/622extinfo-local.t
+++ b/t/622extinfo-local.t
@@ -14,12 +14,14 @@ my $cgi_dir = "$topdir/cgi";
my $extinfo_cgi = "$cgi_dir/extinfo.cgi";

my $output;
+my $remote_user = "REMOTE_USER=nagiosadmin";
+

plan tests => 2;

-$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg REQUEST_METHOD=GET $extinfo_cgi`;
+$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg $remote_user
REQUEST_METHOD=GET $extinfo_cgi`;
like( $output, "/Process Information/", "extinfo.cgi without params
show the process information" );

-$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg REQUEST_METHOD=GET
QUERY_STRING='&type=1&host=host1' $extinfo_cgi`;
+$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg $remote_user
REQUEST_METHOD=GET QUERY_STRING='type=1&host=host1' $extinfo_cgi`;
like( $output, "/Schedule downtime for this host and all Services/",
"extinfo.cgi allows us to set downtime for a host and all of his
services" );







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked