How to send Nagios data to any custom API

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alleviate
Posts: 1
Joined: Wed Oct 24, 2018 12:30 am

How to send Nagios data to any custom API

Post by alleviate »

Hi,
I am working on nagios core. I have one custom API for notification. I have configured nagios core for sending email to user whenever there is any warning or critical situation. I need to send this email details to my custom notification API.

Is there any way?

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

Re: How to send Nagios data to any custom API

Post by scottwilkerson »

You can create a nagios command that calls your script that interacts with the custom API just like the existing notification commands.

Then create a contact and assign those notification commands to the user.

Add the contact to all the objects you want to send the custom notifications for.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to send Nagios data to any custom API

Post by mcapra »

Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to send Nagios data to any custom API

Post by scottwilkerson »

mcapra wrote:A Twilio implementation I did:
https://support.nagios.com/forum/viewto ... 38#p263738
Thanks for sharing @mcapra!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked