wanting to put more information in Notification Messages
Posted: Tue Dec 15, 2020 6:49 am
Can I have in a bash script output the error code and text passed to it like "test job 5 is down" from a bash script
and see it in Notification Messages with the error code and the text ?
I have a script the checks an application for over a 1000 lets call them services if one or more are down and if one is is down it bring the name that is down and would like to send that with the email.
Example bash script
text="this is a test"
STATE_CRITICAL=2
echo $text
exit $STATE_CRITICAL
and see it in Notification Messages with the error code and the text ?
I have a script the checks an application for over a 1000 lets call them services if one or more are down and if one is is down it bring the name that is down and would like to send that with the email.
Example bash script
text="this is a test"
STATE_CRITICAL=2
echo $text
exit $STATE_CRITICAL