Page 1 of 1
Custom Plugins - Nagios API
Posted: Tue Sep 29, 2020 8:53 am
by veeravamsi
Hi Team,
We have Custom Plugins written to handle some of Requirements . We also use Nagios API to deploy monitors like CPU , Memory etc . Is it possible to expose Custom Plugins over Nagios API ? to deploy those using APIs.
Thanks !
--Vamsi
Re: Custom Plugins - Nagios API
Posted: Tue Sep 29, 2020 5:09 pm
by benjaminsmith
Hi Vamsi,
That's pretty cool that you wrote you Nagios plugin. Nice work!
Anyhow, are those hosts running an agent like NCPA? There are a number of ways to run the plugin depending on the requirements.
A few questions
1. Does the plugin need to be installed on the remote server or can you run this from the XI system?
2. If you need to run this on the host, are you running an agent, and what language is the plugin written in?
Regards,
Benjamin
Re: Custom Plugins - Nagios API
Posted: Mon Oct 05, 2020 8:45 am
by veeravamsi
This is Python Plugin and Sitting on Nagios itself . Sample scenario is to use HTTP/URL check with additional proxy parameters (
So varying the FQDN of target URLs)
Re: Custom Plugins - Nagios API
Posted: Mon Oct 05, 2020 6:03 pm
by benjaminsmith
Hi,
That sounds pretty straightforward, You'll just need to put the plugin in the /usr/local/nagios/libexec directory and set the correct permissions and then you can use this as a check or event handler.
See:
Managing Plugins In Nagios XI
Benjamin
Re: Custom Plugins - Nagios API
Posted: Tue Oct 06, 2020 8:51 am
by veeravamsi
You mean - Once we have this defined as
Command in Core Config Manager . We can call
Config API with Service name ?
Capture.PNG
Re: Custom Plugins - Nagios API
Posted: Tue Oct 06, 2020 5:24 pm
by benjaminsmith
Hi,
That's correct. If you have trouble please post the error message.
Also, the CCM has more available options than the API if that's required.
--Benjamin
Re: Custom Plugins - Nagios API
Posted: Thu Nov 12, 2020 9:44 am
by veeravamsi
thank you . You can close/lock this thread.
Re: Custom Plugins - Nagios API
Posted: Thu Nov 12, 2020 3:51 pm
by benjaminsmith
HI,
thank you . You can close/lock this thread.
Sounds good.
Thank you for using Nagios.
Re: Custom Plugins - Nagios API
Posted: Thu Nov 12, 2020 3:51 pm
by benjaminsmith
HI,
thank you . You can close/lock this thread.
Sounds good.
Thank you for using Nagios.