Changeset 9ec1a22
- Timestamp:
- 09/26/17 13:30:13 (8 years ago)
- Branches:
- master, perl-5.22
- Children:
- 2758a4b
- Parents:
- 2e1206e
- Location:
- npl/syn3/syn3-scripts/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/syn3/syn3-scripts/scripts/syn3-heartbeatcheck
r2e1206e r9ec1a22 7 7 #We want to use drbd with heartbeat at all? 8 8 if [ "$DRBD" == "1" ] && [ "$CLUSTER_ID" ]; then 9 9 #we want to receive/send heartbeats: 10 ifconfig $ETH up 11 10 12 if HEARTBEATS="`syndog $CLUSTER_ID --cat`"; then 11 13 -
npl/syn3/syn3-scripts/scripts/syn3-state
r2e1206e r9ec1a22 63 63 retries=3; 64 64 if ! env MIBS="+SYN3-MIB" /usr/bin/snmptrap -v 2c -Ci -r $retries -c $snmptrap_community $snmptrap_receiver "" syn3FacilityTrap syn3FacilityName s "$TRAP_FACILITY" syn3FacilityStatus s "$TRAP_STATE" syn3FacilityDescription s "$TRAP_MSG" syn3FacilityAck s "$TRAP_ACK" &>/dev/null; then 65 e xit 3;65 echo "Error while sending snmptrap" 66 66 fi 67 67 return 0;
Note: See TracChangeset
for help on using the changeset viewer.