[-]
[+]
|
Changed |
nagios-plugins.changes
|
|
[-]
[+]
|
Changed |
nagios-plugins.spec
^
|
|
[-]
[+]
|
Added |
nagios-plugins-0001-Fix-mysql-f27.patch
^
|
@@ -0,0 +1,24 @@
+diff -up ./plugins/check_mysql.c.fix_mysql_f27 ./plugins/check_mysql.c
+--- ./plugins/check_mysql.c.fix_mysql_f27 2017-11-20 21:19:47.597527944 -0500
++++ ./plugins/check_mysql.c 2017-11-20 21:17:15.715921194 -0500
+@@ -41,7 +41,7 @@ const char *email = "devel@nagios-plugin
+ #include "utils_base.h"
+ #include "netutils.h"
+
+-#include <mysql.h>
++#include <server/mysql.h>
+ #include <mysqld_error.h>
+ #include <errmsg.h>
+
+diff -up ./plugins/check_mysql_query.c.fix_mysql_f27 ./plugins/check_mysql_query.c
+--- ./plugins/check_mysql_query.c.fix_mysql_f27 2017-11-20 21:20:01.369764323 -0500
++++ ./plugins/check_mysql_query.c 2017-11-20 21:17:20.378001200 -0500
+@@ -38,7 +38,7 @@ const char *email = "devel@nagios-plugin
+ #include "utils_base.h"
+ #include "netutils.h"
+
+-#include <mysql.h>
++#include <server/mysql.h>
+ #include <errmsg.h>
+
+ char *db_user = NULL;
|
[-]
[+]
|
Added |
nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch
^
|
@@ -0,0 +1,11 @@
+diff -up ./plugins-scripts/check_ntp.pl.not_parsed ./plugins-scripts/check_ntp.pl
+--- ./plugins-scripts/check_ntp.pl.not_parsed 2017-01-16 12:24:03.000000000 -0500
++++ ./plugins-scripts/check_ntp.pl 2017-07-12 15:29:20.311215673 -0400
+@@ -314,7 +314,6 @@ if ($have_ntpq) {
+ }
+ } else {
+ print "No match!\n" if $verbose;
+- $jitter = '(not parsed)';
+ }
+
+ }
|
[-]
[+]
|
Added |
nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch
^
|
@@ -0,0 +1,13 @@
+diff -up ./plugins-scripts/utils.pm.in.ext_ntp_cmds ./plugins-scripts/utils.pm.in
+--- ./plugins-scripts/utils.pm.in.ext_ntp_cmds 2017-01-16 12:24:03.000000000 -0500
++++ ./plugins-scripts/utils.pm.in 2017-07-12 15:31:06.154120875 -0400
+@@ -23,6 +23,9 @@ $PATH_TO_LMSTAT = "@PATH_TO_LMSTAT@" ;
+ $PATH_TO_SMBCLIENT = "@PATH_TO_SMBCLIENT@" ;
+ $PATH_TO_MAILQ = "@PATH_TO_MAILQ@";
+ $PATH_TO_QMAIL_QSTAT = "@PATH_TO_QMAIL_QSTAT@";
++# Hardcoded values (autotools patch will be provided to the uptream project)
++$PATH_TO_NTPDATE = "/usr/sbin/ntpdate";
++$PATH_TO_NTPQ = "/usr/sbin/ntpq";
+
+ ## common variables
+ $TIMEOUT = 15;
|
[-]
[+]
|
Added |
nagios-plugins-0011-fix-perl-shebang.patch
^
|
@@ -0,0 +1,12 @@
+diff -up nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am.ntp_pl nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am
+--- nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am.ntp_pl 2018-02-14 13:26:31.059759029 +0100
++++ nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins-scripts/Makefile.am 2018-02-14 13:26:07.819777787 +0100
+@@ -14,7 +14,7 @@ SUFFIXES = .pl .sh
+ VPATH=$(top_srcdir) $(top_srcdir)/plugins-scripts $(top_srcdir)/plugins-scripts/t
+
+ libexec_SCRIPTS = check_breeze check_disk_smb check_flexlm check_ircd \
+- check_log check_oracle check_rpc check_sensors check_wave \
++ check_log check_ntp check_oracle check_rpc check_sensors check_wave \
+ check_ifstatus check_ifoperstatus check_mailq check_file_age \
+ utils.sh utils.pm
+
|
[-]
[+]
|
Added |
nagios-plugins-0012-fix-perl-ntp-ipv6.patch
^
|
@@ -0,0 +1,28 @@
+diff -up ./plugins-scripts/check_ntp.pl.fix_ipv6 ./plugins-scripts/check_ntp.pl
+--- ./plugins-scripts/check_ntp.pl.fix_ipv6 2019-08-29 21:07:13.497504795 +0000
++++ ./plugins-scripts/check_ntp.pl 2019-08-29 21:11:48.626816686 +0000
+@@ -112,13 +112,23 @@ if (defined $opt_j || defined $opt_k ) {
+ }
+
+ $opt_H = shift unless ($opt_H);
+-my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/);
++
++## From https://bugzilla.redhat.com/show_bug.cgi?id=1731468
++my $host = $opt_H if ($opt_H &&
++ ($opt_H =~ m/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/ || # IPv4
++ $opt_H =~ m/^([0-9a-f]{1,4}:){7}([0-9a-f]{1,4})$/i || # IPv6 without ::
++ $opt_H =~ m/^:(:[0-9a-f]{1,4})+$/i || # IPv6 with leading ::
++ $opt_H =~ m/^([0-9a-f]{1,4}:)+:$/i || # IPv6 with trailing ::
++ $opt_H =~ m/^([0-9a-f]{1,4}:)+(:[0-9a-f]{1,4})+$/i || # IPv6 with middle ::
++ $opt_H =~ m/^[a-z0-9][-a-z0-9]*(\.[a-z0-9][-a-z0-9]*)*$/)); # hostnames
++
+ unless ($host) {
+ print "No target host specified\n";
+ print_usage();
+ exit $ERRORS{'UNKNOWN'};
+ }
+
++
+ my ($timeout, $owarn, $ocrit, $jwarn, $jcrit);
+
+ $timeout = $TIMEOUT;
|
|
Added |
nagios-plugins-1b8ad57.tar.gz
^
|