Page 1 of 1

Nagios notification with custom script

Posted: Mon Feb 12, 2018 12:03 am
by Asish.mohandasan
Hi All,
I need to integrate telegram with nagios notification.
For that need to invoke script which will execute telegram command on background .
How can I achieve this ? how to run that custom script on each notification ?

Re: Nagios notification with custom script

Posted: Mon Feb 12, 2018 11:35 am
by mcapra
You could set it up as an event handler. Here official documentation for setting up global event handlers in Nagios XI:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Essentially, with the above component, you can have Nagios XI run a specific script every time a specific event type occurs. Like a script to take notification information and ship it to Telegram.

Re: Nagios notification with custom script

Posted: Mon Feb 12, 2018 12:06 pm
by kyang
Thanks @mcapra!

@Asish.mohandasan, Do you have a ticket open for this? Or is that not you?