%global forgeurl https://github.com/cmadamsgit/nagios-plugins-cmadams %global commit 371b655f8a00ad36103ca65db9850d783cfcef6f %forgemeta Name: nagios-plugins-cmadams Summary: Miscellaneous Nagios plugins Version: 0 Release: 0.4%{?dist} URL: %{forgeurl} Source0: %{forgesource} 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 %forgesetup %build %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 %check %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 * Thu Mar 12 2026 Chris Adams 0-0.4 - new upstream release - switch to forge macros * Tue Mar 10 2026 Chris Adams 0-0.3 - new upstream release * 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