forked from SoftwareAG/sagdevops-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhealthcheck.sh
executable file
·38 lines (30 loc) · 1.48 KB
/
healthcheck.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#########################################################################
# #
# Copyright (C) 2018 Software AG, Darmstadt, Germany and/or #
# Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries #
# and/or its affiliates and/or their licensors. #
# #
# The name Software AG and all Software AG product names are either #
# trademarks or registered trademarks of Software AG and/or #
# Software AG USA Inc. and/or its subsidiaries and/or its affiliates #
# and/or their licensors. Other company and product names mentioned #
# herein may be trademarks of their respective owners. #
# #
# Detailed information on trademarks and patents owned by Software AG #
# and/or its subsidiaries is located at http://softwareag.com/licenses. #
# #
#########################################################################
#!/bin/sh
cd ${EXXDIR}/bin
# simple ping to check if broker answers in reasonable time
./etbcmd -b localhost:${TCPPORT} -c PING | tee /tmp/exx.log
ret=$?
case $ret in
0)
echo "etbnuc check finished successfully"
;;
*)
echo "etbnuc not running correctly (state=$ret)"
;;
esac
exit $ret