Page 1 of 1

Using Import directory - seeing certificate errors

Posted: Wed Sep 06, 2017 11:09 am
by SteveBeauchemin
I was watching the /usr/local/nagiosxi/var/cmdsubsys.log file during an import today.

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 localhost
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:

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/
Is that a code problem?

Just wondering. No need to open tickets or anything. I'm just sharing an observation.

Thanks

Steve B

Re: Using Import directory - seeing certificate errors

Posted: Wed Sep 06, 2017 12:33 pm
by scottwilkerson
This is just a warning from wget, but because the flag is set it continues.

Also, the observation of the 2nd URL is actually following a timestamp and is not part of the command.

Thanks for taking the time though to verify that this is all as expected.