Page 1 of 1

NCPA API Method of Data Collection

Posted: Thu Dec 03, 2020 2:01 pm
by meganwilliford
For remote windows servers with NCPA, how is the data in the API populated? What exactly is the data collection method at the lowest level on the remote server?

Re: NCPA API Method of Data Collection

Posted: Thu Dec 03, 2020 2:07 pm
by meganwilliford
One more related question, if the NCPA Listener and NCPA Passive services are disabled on the remote server would any sort of data collection still be running?

Re: NCPA API Method of Data Collection

Posted: Fri Dec 04, 2020 2:58 pm
by benjaminsmith
Hi Megan,

NCPA is an open-source program, if you'd like, you can review the source code on the GitHub page:

https://github.com/NagiosEnterprises/ncpa

The NCPA API uses python modules like psutil to query system information and run the appropriate checks on. The data is saved in a sqlite data for 30 days by default (can be changed in the main ncpa config file).

If you were to stop both the NCPA Listener and NCPA Passive services, nothing would happen and the backend GUI (Flask App) would shutdown.

Hope that helps, let me know if you need clarification on anything.

Benjamin

Re: NCPA API Method of Data Collection

Posted: Wed Dec 09, 2020 3:32 pm
by meganwilliford
Thank you! That is all I was looking for. You can close this thread.

Re: NCPA API Method of Data Collection

Posted: Wed Dec 09, 2020 3:55 pm
by scottwilkerson
meganwilliford wrote:Thank you! That is all I was looking for. You can close this thread.
Great!

Locking thread