Using Import directory - seeing certificate errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Using Import directory - seeing certificate errors

Post 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
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Using Import directory - seeing certificate errors

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked