Skip to content

Commit

Permalink
Merge pull request #253 from riemann/tls
Browse files Browse the repository at this point in the history
Add `riemann-tls-check` to monitor TLS certificates
  • Loading branch information
jamtur01 authored Jul 7, 2024
2 parents 649770d + 410eaf9 commit 596b74b
Show file tree
Hide file tree
Showing 7 changed files with 746 additions and 8 deletions.
8 changes: 8 additions & 0 deletions bin/riemann-tls-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

Process.setproctitle($PROGRAM_NAME)

require 'riemann/tools/tls_check'

Riemann::Tools::TLSCheck.run
8 changes: 8 additions & 0 deletions lib/riemann/tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,13 @@ def run
end

def tick; end

def endpoint_name(address, port)
if address.ipv6?
"[#{address}]:#{port}"
else
"#{address}:#{port}"
end
end
end
end
8 changes: 0 additions & 8 deletions lib/riemann/tools/http_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,6 @@ def redact_uri(uri)
reported_uri.password = '**redacted**' if reported_uri.password
reported_uri
end

def endpoint_name(address, port)
if address.ipv6?
"[#{address}]:#{port}"
else
"#{address}:#{port}"
end
end
end
end
end
Loading

0 comments on commit 596b74b

Please sign in to comment.