Custom Plugins - Nagios API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Custom Plugins - Nagios API

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Custom Plugins - Nagios API

Post 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
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!
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Re: Custom Plugins - Nagios API

Post 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)
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Custom Plugins - Nagios API

Post 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
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!
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Re: Custom Plugins - Nagios API

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Custom Plugins - Nagios API

Post 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
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!
veeravamsi
Posts: 145
Joined: Wed Jan 23, 2019 3:35 am

Re: Custom Plugins - Nagios API

Post by veeravamsi »

thank you . You can close/lock this thread.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Custom Plugins - Nagios API

Post by benjaminsmith »

HI,
thank you . You can close/lock this thread.
Sounds good.

Thank you for using Nagios.
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!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Custom Plugins - Nagios API

Post by benjaminsmith »

HI,
thank you . You can close/lock this thread.
Sounds good.

Thank you for using Nagios.
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!
Locked