Page 1 of 1

NCPA Web GUI - Top Processes

Posted: Thu Apr 20, 2023 6:35 pm
by spnc
Hello. It is my understanding that the NCPA Web GUI has a live data "top processes" feature https://hostname:5693/gui/top

Is there an active check command I can use within Nagios XI to get the same top processes data from the NCPA Web GUI > Top Processes?

Ultimately, my goal was to send out an email alert via Nagios XI IF the total cpu/memory >= 85, get the "top processes" on that system via NCPA.

Thank you!

Re: NCPA Web GUI - Top Processes

Posted: Thu Apr 20, 2023 10:30 pm
by kg2857

Re: NCPA Web GUI - Top Processes

Posted: Fri Apr 21, 2023 10:40 am
by spnc
kg2857 wrote: Thu Apr 20, 2023 10:30 pm I'll bet there is...
https://www.nagios.org/ncpa/help/2.0/active.html
Thank you! I appreciate it! I double checked the document you've sent and I don't see the ability to run the top processes as an active check. The closest is running plugins with arguments, which was what I was hoping to avoid.

My question may have been answered here: https://github.com/NagiosEnterprises/nc ... -213546735
Or at least something similar.

Thanks again.

Re: NCPA Web GUI - Top Processes

Posted: Sat Apr 22, 2023 8:32 pm
by kg2857
You could make a bash script that does what you want that doesn't take args.