Nagios Plugins - NCPA agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Nagios Plugins - NCPA agent

Post by Bala.Mutyam »

Hi,

We are currently using NRPE agent as agent for Nagios checks but we would like to replace it with NCPA.

We have installed Nagios plugins and all plugins are placed in /usr/lib64/nagios/plugins/ by default and we can run nrpe commands from there.

For NCPA /usr/local/ncpa/plugins is the default location for plugins and we need to copy plugins from /usr/lib64/nagios/plugins/ to /usr/local/ncpa/plugins manually.

we tried to change default plugin location for NCPA by changing in /usr/local/ncpa/etc/ncpa.cfg but we are getting "UNKNOWN: The plugin (check_disk) requested does not exist." error.

Code: Select all

# Plugin path where all plugins will be ran from.
#
plugin_path = /usr/lib64/nagios/plugins/
Any solutions to stop copying plugins? also any documentation for migration from NRPE to NCPA?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Nagios Plugins - NCPA agent

Post by mbellerue »

On the machine running NCPA, can you show the output of,

Code: Select all

su - nagios
/usr/lib64/nagios/plugins/check_disk --help
Also just to confirm, when you changed the plugin_path, did you restart ncpa_listener?

Unfortunately there isn't a document just yet for converting from NRPE to NCPA. One thing you may be interested in is the fact that NCPA just has a lot of the service checks that you get from the Nagios plugins. If you open a web browser and navigate to the machine's IP address on port 5693, you should be able to log in to NCPA, and look at the API. You may find that you don't need the plugins that are installed on the system.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios Plugins - NCPA agent

Post by Bala.Mutyam »

@mbellerue : Hi, thanks for the update.

Code: Select all

bash-4.2$ whoami
nagios
bash-4.2$ /usr/lib64/nagios/plugins/check_disk --help
check_disk v2.2.1.git (nagios-plugins 2.2.1)
Copyright (c) 1999 Ethan Galstad <[email protected]>
Copyright (c) 1999-2018 Nagios Plugin Development Team
        <[email protected]>

This plugin checks the amount of used disk space on a mounted file system
and generates an alert if free space is less than one of the threshold values


Usage:
 check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -x device}
[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] {-A | [-R path] [-r path]}
[-s] [-t timeout] [-u unit] [-v] [-X type] [-N type] [-n]
Also just to confirm, when you changed the plugin_path, did you restart ncpa_listener?
yes
We are looking for some checks not part of API.
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios Plugins - NCPA agent

Post by Bala.Mutyam »

@mbellerue: Hi, Sorry i only test on server and it had some issues with the config. I have stopped ncpa_listener service and killed any process still running. It's working fine. Apologies.

Code: Select all

# Plugin path where all plugins will be ran from.
#
plugin_path = /usr/lib64/nagios/plugins/
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Nagios Plugins - NCPA agent

Post by mbellerue »

Oh, so the ncpa_listener was not restarting properly? I just want to confirm, now that you have ncpa_listener restarted, it is picking up and able to execute the plugins in /usr/lib64/nagios/plugins/. Is that correct?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios Plugins - NCPA agent

Post by Bala.Mutyam »

Oh, so the ncpa_listener was not restarting properly?

yes, i killed ncpa_listener process was showing as running after the ncpa_listener service stop and restarted
I just want to confirm, now that you have ncpa_listener restarted, it is picking up and able to execute the plugins in /usr/lib64/nagios/plugins/. Is that correct?

correct
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Plugins - NCPA agent

Post by benjaminsmith »

HI @Bala.Mutyam,
I just want to confirm, now that you have ncpa_listener restarted, it is picking up and able to execute the plugins in /usr/lib64/nagios/plugins/. Is that correct?
correct
Sounds like the checks are working for you now? If so, let us know if it's ok to close out this thread.

Thanks!
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios Plugins - NCPA agent

Post by Bala.Mutyam »

Hi @Benjamin,

yes, working fine, please close the thread.

Thank
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Plugins - NCPA agent

Post by scottwilkerson »

Bala.Mutyam wrote:Hi @Benjamin,

yes, working fine, please close the thread.

Thank
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked