Page 1 of 1
Nagios Plugins - NCPA agent
Posted: Thu Aug 06, 2020 9:23 am
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?
Re: Nagios Plugins - NCPA agent
Posted: Thu Aug 06, 2020 3:14 pm
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.
Re: Nagios Plugins - NCPA agent
Posted: Fri Aug 07, 2020 3:33 am
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.
Re: Nagios Plugins - NCPA agent
Posted: Fri Aug 07, 2020 9:04 am
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/
Re: Nagios Plugins - NCPA agent
Posted: Fri Aug 07, 2020 9:57 am
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?
Re: Nagios Plugins - NCPA agent
Posted: Mon Aug 10, 2020 5:15 am
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
Re: Nagios Plugins - NCPA agent
Posted: Mon Aug 10, 2020 5:25 pm
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
Re: Nagios Plugins - NCPA agent
Posted: Tue Aug 11, 2020 5:23 am
by Bala.Mutyam
Hi @Benjamin,
yes, working fine, please close the thread.
Thank
Re: Nagios Plugins - NCPA agent
Posted: Tue Aug 11, 2020 7:16 am
by scottwilkerson
Bala.Mutyam wrote:Hi @Benjamin,
yes, working fine, please close the thread.
Thank
Great!
Locking thread