NagiosEnterprises / ncpa

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

Mac Mini M1 + MacOS Big Sur (11.4) - "/usr/local/ncpa/var/" folder is empty #788

Open HeyWatchOutDude opened 3 years ago

HeyWatchOutDude commented 3 years ago

Hi,

I have successful installed "ncap" (version 2.3.1) on a Mac Mini M1 with macOS Big Sur 11.4.

Sadly I cant connect to the Web GUI over the following URL "https://localhost:5693".

Issue: Safari cannot connect to the server

Reason: The folder /usr/local/ncpa/var is empty (only log folder is present --> log files are empty "0 KB")

Missing files:

https://imgur.com/a/mLPjOXZ

Just for comparison I installed the same ncpa version a VM (macOS Big Sur 11.2.1) - Intel NUC10 (Hackintosh) everything worked fine and I can also access the Web GUI.

Is the M1 + Big Sur 11.4 not supported? Is that kind of issue known?

Same behavior on a MacBook Pro 2017 (macOS Big Sur 11.4) .... so I think its related to Big Sur 11.4.

HeyWatchOutDude commented 3 years ago

Workaround:

create links to dynlibs in /usr/local/lib

sudo mkdir /usr/local/lib sudo find /usr/local/ncpa -name "*.dylib" -exec ln -s {} /usr/local/lib/ \;

allow binaries and libraries to be executed within Gatekeeper (part of SIP)

sudo spctl --add --label "NCPA" /usr/local/ncpa/ncpa_listener sudo spctl --add --label "NCPA" /usr/local/ncpa/ncpa_passive sudo find /usr/local/ncpa -name ".so" -exec spctl --add --label "NCPA" {} \; sudo find /usr/local/ncpa -name ".dylib" -exec spctl --add --label "NCPA" {} \; sudo spctl --enable --label "NCPA"

start with launchtl. first start has to be confirmed within finder, could not find a way around it...

sudo launchctl start com.nagios.ncpa.passive sudo launchctl start com.nagios.ncpa.listener