Skip to content

Commit 18e19bc

Browse files
committed
cmk-monitor-broker: be more helpful if erlang cookie is missing
This might be the case if rabbitqm never ran, for example. Change-Id: Ide4037ee2564445d04aea3bed080bf2b3acf74b6
1 parent 508af93 commit 18e19bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/cmk-monitor-broker

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ HERE
3030
}
3131

3232
_get_secret() {
33+
[ -e ~/.erlang.cookie ] || {
34+
printf "Error: Erlang cookie ~/.erlang.cookie not found.\n"
35+
exit 1
36+
}
3337
cat ~/.erlang.cookie
3438
}
3539

0 commit comments

Comments
 (0)