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.
How to send Nagios data to any custom API
-
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
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.
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
A Twilio implementation I did:
https://support.nagios.com/forum/viewto ... 38#p263738
https://support.nagios.com/forum/viewto ... 38#p263738
Former Nagios employee
https://www.mcapra.com/
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
Thanks for sharing @mcapra!mcapra wrote:A Twilio implementation I did:
https://support.nagios.com/forum/viewto ... 38#p263738