NCPA - Service And Process Changes To API Endpoint

Overview

This KB article explains the changes to the API endpoint for accessing services and processes. The old method was removed in the 2.1.0 release of NCPA and hence your monitoring configurations require updating.

 

Services

Here is an example before 2.1.0:

./check_ncpa.py -H centos19 -t 'Str0ngT0k3n' -P 5693 -M 'service/chronyd/running'

The new method in 2.1.0 onwards is:

./check_ncpa.py -H centos19 -t 'Str0ngT0k3n' -P 5693 -M 'services' -q 'service=chronyd,status=running'

 

Processes

Here is an example before 2.1.0:

./check_ncpa.py -H centos19 -t 'Str0ngT0k3n' -P 5693 -M 'process/vmtoolds'

The new method in 2.1.0 onwards is:

./check_ncpa.py -H centos19 -t 'Str0ngT0k3n' -P 5693 -M 'processes' -q 'name=vmtoolsd'

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

Posted by: - Thu, May 3, 2018 at 7:23 PM. This article has been viewed 2765 times.
Online URL: https://support.nagios.com/kb/article/ncpa-service-and-process-changes-to-api-endpoint-813.html

Powered by PHPKB (Knowledge Base Software)