running script remotely when nagios alert goes green/good/ok
running script remotely when nagios alert goes green/good/ok
How can i make nagios run a script remotely when oracle alert goes away.(Oracle comes backup) Like connection time.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: running script remotely when nagios alert goes green/goo
Here is a doc on "Introduction to Event Handlers"
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
when you get to the example on page 15 you would change this line
to
This will trigger when changing to OK HARD
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
when you get to the example on page 15 you would change this line
Code: Select all
if [[ "$SERVICESTATETYPE" == "HARD" && "$SERVICESTATE" == "CRITICAL" ]]; thenCode: Select all
if [[ "$SERVICESTATETYPE" == "HARD" && "$SERVICESTATE" == "OK" ]]; then