4
0

command_test_alert.sh 459 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # LinuxGSM command_test_alert.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Sends a test alert.
  7. commandname="TEST-ALERT"
  8. commandaction="Sending Alert"
  9. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  10. fn_firstcommand_set
  11. fn_print_dots "${servername}"
  12. check.sh
  13. alert="${userinput2}"
  14. if [ -z "${alert}" ]; then
  15. alert="test"
  16. fi
  17. alert.sh
  18. core_exit.sh