Page 1 of 1

NCPA on Mac

Posted: Tue Aug 17, 2021 9:14 am
by deek
Hi Team ,

We have a requirement to monitor MacOS in Nagios . We are approaching the NCPA method .
I wanted to check if NCPA supports macOS Big Sur ?

Re: NCPA on Mac

Posted: Tue Aug 17, 2021 3:53 pm
by pbroste
Hello @deek

Thanks for reaching out and we see that versions 10.07 to the latest is compatible with NCPA for Mac.

Please see:
Perry

Re: NCPA on Mac

Posted: Tue Sep 14, 2021 10:33 am
by deek
Thanks for that information .

We tried installing ncpa agent on the Big Sur 11.2.1 (20D74) MAC operating system but the ncpa listener service did not start .
We used DMG installer for the MACOS version 10.15 + and doesnt seem to be working for the perating system we are using .

Kindly help on the same .

Re: NCPA on Mac

Posted: Wed Sep 15, 2021 11:09 am
by pbroste
Hello @deek

To follow up we ran a test on ncpa_listener and receive the error message. Appears that it could be python permissions or path-related and we are looking into this further and will follow up.

Thanks,
Perry

Re: NCPA on Mac

Posted: Wed Sep 15, 2021 12:42 pm
by pbroste
Hello @deek

To follow up we have verified that this is a MacOs built-in security feature that will block app's that are not "Apple certified".

In System Preferences > Security & Privacy > General > Allow apps download from: The options ()App Store ()App Store and identified developers are available on recent MacOs versions. There used to be an option to allow from anywhere and that option is no longer available. And the option to add it under Accessibility under Privacy does not work as the ncpa_listener is a service and not an application.

The workaround to disable the MacOs Gatekeeper by:

Code: Select all

sudo spctl --master-disable
Verify:

Code: Select all

spctl --status
Start and then enable ncpa_listener

Code: Select all

sudo /usr/local/ncpa/ncpa_listener
Verify running:

Code: Select all

sudo launchctl list | grep -Ei 'ncpa'
Thanks,
Perry

Re: NCPA on Mac

Posted: Mon Oct 04, 2021 11:47 pm
by deek
Thanks for that .

And are there any other alternatives ?
Also can you provide the scripts .

Re: NCPA on Mac

Posted: Tue Oct 05, 2021 4:01 pm
by pbroste
Hello @deek

Thanks for following up, unfortunately, there are no other alternatives at this time until there is an update to the NCPA Mac version available.

An example check command would look like this:
  • /usr/local/nagios/libexec/check_ncpa.py -t '<your token>' -P 5693 -M 'plugins/check_ping/-H 192.168.x.x'
Thanks,
Perry

Re: NCPA on Mac

Posted: Thu Oct 07, 2021 4:50 am
by deek
Hi Team,

Do we have any options to monitor via ssh and any plugins / scripts that support MacOS to fetch the OS level metrics .

Re: NCPA on Mac

Posted: Thu Oct 07, 2021 4:03 pm
by pbroste
Hello @deek

Thanks for following up, and to answer your question the 'check_by_ssh' requires that the NCPA/NRPE client/agent be installed and the plugin for the check is available in the plugin directory.

I see that Mac has the SNMPd service listed in the launchctl directory and found that there are instructions available to enable SNMP monitoring on Mac's. Once you have enabled the SNMPd service on your Mac you will want to run through a snmpwalk on the device.

Code: Select all

/System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
Thanks,
Perry