feat(check): gRPC, SMTP, RADIUS and SNMP checks

gRPC asks the standard health service, optionally about one service.
SMTP waits for the greeting, says EHLO and, unless disabled, requires
STARTTLS or connects with implicit TLS. RADIUS sends an Access-Request
signed with a Message-Authenticator and tells a rejected login from a
wrong shared secret. SNMP v1/v2c reads one OID and compares its value
textually or numerically, hinting at the community when the agent stays
silent. All go through the network guard. Errors from dialing are no
longer passed through redaction, and secrets shorter than four
characters are left in messages instead of garbling them.

Refs #95

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 16:51:23 +01:00
1 parent 302514dc35
commit 03f6e9137f
8 files changed
+675 -4

No files matched your search

+5 -1
View File
@@ -34,7 +34,7 @@ const (
)
// Types lists every check type.
var Types = []Type{HTTP, TCP, ICMP, DNS, TLS, JSON, Prometheus, Postgres, MySQL, MSSQL, MongoDB, Redis, MQTT, Kafka, RabbitMQ, Heartbeat, Alertmanager}
var Types = []Type{HTTP, TCP, ICMP, DNS, TLS, JSON, Prometheus, Postgres, MySQL, MSSQL, MongoDB, Redis, MQTT, Kafka, RabbitMQ, GRPC, SMTP, RADIUS, SNMP, Heartbeat, Alertmanager}
// Passive reports whether t is reported to us rather than run by checkers.
func Passive(t Type) bool { return t == Heartbeat || t == Alertmanager }
@@ -105,6 +105,10 @@ var impls = map[Type]impl{
MQTT: brokerCheck{MQTT},
Kafka: brokerCheck{Kafka},
RabbitMQ: brokerCheck{RabbitMQ},
GRPC: grpcCheck{},
SMTP: smtpCheck{},
RADIUS: radiusCheck{},
SNMP: snmpCheck{},
Heartbeat: heartbeatCheck{},
Alertmanager: alertmanagerCheck{},
}