%global commit fbe717da43ad47404cb7ee721195647d36539dab %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: nagios-plugins-cmadams Summary: Miscellaneous Nagios plugins Version: 0 Release: 0.2.git%{shortcommit}%{?dist} URL: https://github.com/cmadamsgit/%{name} Source0: https://github.com/cmadamsgit/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz License: GPL-3.0-only BuildArch: noarch BuildRequires: perl-generators %description Some useful Nagios monitoring plugins %package cert Summary: Nagios plugin for checking SSL/TLS connection/cert Recommends: perl(Net::FTP) Recommends: perl(Mail::IMAPClient) Recommends: perl(Net::LDAP) Recommends: perl(Net::POP3) Recommends: perl(Net::SMTP) %description cert check_cert: This plugin makes an SSL/TLS connection to the specified server/port, validates the cert, and warns/errors on the number of days until the cert expires. It can be set to check an RSA or ECDSA cert, and can check some types of connections using STARTTLS. %package chrony Summary: Nagios plugin for checking chrony Requires: /usr/bin/chronyc %description chrony check_chrony: This plugin checks the selected chrony NTP server using the "chronyc" command line client. %package smtp Summary: Nagios plugin for checking SMTP Recommends: perl(Authen::SASL) Recommends: perl(IO::Socket::SSL) %description smtp check_smtp_msg: This plugin makes a connection to an SMTP server, sends a message, and checks the result. %prep %autosetup -n %{name}-%{commit} %install install -D -m0755 check_cert %{buildroot}%{_libdir}/nagios/plugins/check_cert install -D -m0755 check_chrony %{buildroot}%{_libdir}/nagios/plugins/check_chrony install -D -m0755 check_smtp_msg %{buildroot}%{_libdir}/nagios/plugins/check_smtp_msg %files cert %license LICENSE %doc README.md %{_libdir}/nagios/plugins/check_cert %files chrony %license LICENSE %doc README.md %{_libdir}/nagios/plugins/check_chrony %files smtp %license LICENSE %doc README.md %{_libdir}/nagios/plugins/check_smtp_msg %changelog * Sun Nov 23 2025 Chris Adams 0-0.2 - update license to SPDX - new upstream release - add Recommends for optional deps * Tue Feb 07 2023 Chris Adams 0-0.1 - initial package