Using Import directory - seeing certificate errors
Posted: Wed Sep 06, 2017 11:09 am
I was watching the /usr/local/nagiosxi/var/cmdsubsys.log file during an import today.
I noticed errors like this:
I see that the wget syntax uses --no-check-certificate but is it ignored for some reason?
The errors seem harmless, and the import works, but I also noticed that the wget syntax looked wrong.
It looks like the URL part of the wget command that is supposed to be at the end of the command is also duplicated in the beginning of the command.
Like this:
Is that a code problem?
Just wondering. No need to open tickets or anything. I'm just sharing an observation.
Thanks
Steve B
I noticed errors like this:
Code: Select all
WARNING: cannot verify localhost's certificate, issued by
Unable to locally verify the issuer's authority.
WARNING: no certificate subject alternative name matches
requested host name localhostThe errors seem harmless, and the import works, but I also noticed that the wget syntax looked wrong.
It looks like the URL part of the wget command that is supposed to be at the end of the command is also duplicated in the beginning of the command.
Like this:
Code: Select all
CMDLINE:
/usr/bin/wget
--load-cookies=nagiosql.cookies
https://localhost/nagiosxi/includes/components/ccm/
--no-check-certificate
--post-data 'backend=1&cmd=admin&type=import&<snip long stuff>&selImportFile[]=/usr/local/nagios/etc/import/file.cfg'
-O nagiosql.import.monitoring
--2017-09-06 09:58:45--
https://localhost/nagiosxi/includes/components/ccm/Just wondering. No need to open tickets or anything. I'm just sharing an observation.
Thanks
Steve B