THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Multiple Categories

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/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Problems with $ Signs in the Check Command
Viewed 10413 times since Tue, Jan 26, 2016
NCPA - Service check timed out after n Seconds
Viewed 16166 times since Tue, Sep 1, 2020
NCPA - Passive Checks Not Being Submitted To NRDP
Viewed 5936 times since Wed, Jan 10, 2018
Nagios XI - Monitoring Performance Counters in Nagios Using NCPA
Viewed 13334 times since Thu, Mar 31, 2016
Nagios XI - Problems With Scheduled Backups At Midnight
Viewed 5668 times since Mon, Oct 10, 2016
NCPA - Agent Installation Issue
Viewed 7873 times since Thu, Jan 21, 2016
Nagios XI - Monitoring Windows With NCPA
Viewed 9767 times since Wed, Jul 19, 2017
NCPA - Using NCPA For Passive Checks
Viewed 10814 times since Thu, Oct 19, 2017