Integrating script with nagios notification

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
shaya
Posts: 1
Joined: Mon Oct 01, 2018 4:00 am

Integrating script with nagios notification

Post by shaya »

i need to integrate my script with the Nagios core where i can do that ?


My application is generating the log file because of this disk space is getting filled, i have written a script which will remove the log file,
This script i want to integrate in the nagios, In which, when there is an notification this script needs to be called....

where i can integrate this ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Integrating script with nagios notification

Post by scottwilkerson »

You can add the script as a command, and then add the script as an event_handler for the command

https://assets.nagios.com/downloads/nag ... dlers.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked