Skip to content

Commit

Permalink
Display port in output check_srv_record
Browse files Browse the repository at this point in the history
  • Loading branch information
landervdb committed Oct 5, 2018
1 parent 962fded commit 8bb2a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ check_yum 1.1.0
check_haproxy.rb 1.0
check_postgres.pl 2.24.0
check_mqtt.py 1.2
check_srv_record.py 1.0.2
check_srv_record.py 1.0.3

# vim: set ts=2 sw=2 et : #
4 changes: 2 additions & 2 deletions check_srv_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def resolve_srv_record(query):
for target in targets:
result = socket_is_open(target[1], target[2], args.timeout, args.retries)
if not result:
exit_now(2, "%s is not reachable" % target[0])
exit_now(2, "%s:%s is not reachable" % (target[0], target[2]))
else:
hosts_up += target[0] +', '
hosts_up += "%s:%s, " % (target[0], target[2])
exit_now(0, "%s are reachable" % hosts_up[:-2])

0 comments on commit 8bb2a64

Please sign in to comment.