Page 1 of 1

How to send Nagios data to any custom API

Posted: Wed Oct 24, 2018 1:13 am
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.

Re: How to send Nagios data to any custom API

Posted: Wed Oct 24, 2018 4:23 pm
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.

Re: How to send Nagios data to any custom API

Posted: Fri Oct 26, 2018 12:21 pm
by mcapra

Re: How to send Nagios data to any custom API

Posted: Fri Oct 26, 2018 12:24 pm
by scottwilkerson
mcapra wrote:A Twilio implementation I did:
https://support.nagios.com/forum/viewto ... 38#p263738
Thanks for sharing @mcapra!