Hi,
I am trying to monitor a website.
If I use that plugin plugin apps::protocols::http::plugin to check response then the option --cookies-file=/tmp/lwp_cookies.dat works nicely. But when I use the same --cookies-file=/tmp/lwp_cookies.dat with --mode=expected-content, then I get error:
Use of uninitialized value $old[0] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[1] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[2] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[3] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[4] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[5] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[6] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[7] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[8] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
Use of uninitialized value $old[9] in join or string at /usr/share/perl5/vendor_perl/HTTP/Headers.pm line 89.
OK: HTTP test(s) | 'size'=1939B;;;0; 'time'=0.076s;;;0;
My command is: /usr/lib/centreon/plugins//centreon_protocol_http.pl --plugin apps::protocols::http::plugin --urlpath= --hostname=egggxxx.com --mode=expected-content --port=8443 --proto=https --expected-string='Remote' --cookies-file=/tmp/lwp_cookies.dat
Am I doing something wrong, or this is purely plugin issue?