NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

Configuration issues on windows #893

Closed frissner closed 2 years ago

frissner commented 2 years ago

hello,

i have problems configuring a certificate for NCPA when running under windows:

OS: MS Windows 2019 Server Version: NCPA 2.4.0

i started NCPA with certificate = adhoc in var/ncpa.cfg NCPA created var/ncpa.crt and var/ncpa.key NCPA started up and i could connect using browser and wget (with --no-check-certificate)

next i started NCPA with certificate = var/ncpa.crt , var/ncpa.key NCPA started up and all seems to be fine; see var/log/ncpa_listener.log: 2022-10-04 13:04:12,224:INFO:ncpa_windows:Parsed config from: ['C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg', 'C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg.d\\example.cfg'] 2022-10-04 13:04:12,224:INFO:ncpa_windows:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins 2022-10-04 13:04:12,224:INFO:ncpa_windows:Delayed start in configuration. Waiting 5 seconds to start. 2022-10-04 13:04:17,226:INFO:ncpa_windows:Using SSL version TLSv1_2

But when i try to connect using browser i get: "no valid connection" when using wget i get: " GnuTLS: Error in the pull function."

It seems like ssl didn't work at all.

so my questions are:

best, Florian

frissner commented 2 years ago

Got it working:

Maybe you should point out, that