[pkg-nagios-changes] [Git][nagios-team/pkg-nagios-plugins-contrib][master] 3 commits: check_etc_resolv: no PTR for recursors required

Bernd Zeimetz gitlab at salsa.debian.org
Fri May 8 21:38:31 BST 2020



Bernd Zeimetz pushed to branch master at Debian Nagios Maintainer Group / pkg-nagios-plugins-contrib


Commits:
affeee08 by Bernd Zeimetz at 2020-05-08T22:28:56+02:00
check_etc_resolv: no PTR for recursors required

- - - - -
ce5af2ce by Bernd Zeimetz at 2020-05-08T22:37:06+02:00
check_libs_ng: user python3

- - - - -
410817f3 by Bernd Zeimetz at 2020-05-08T22:38:02+02:00
Fix autotest commands/dependencies

- - - - -


5 changed files:

- check_etc_resolv/check_etc_resolv
- check_etc_resolv/copyright
- check_libs_ng/check_libs_ng
- check_libs_ng/control
- debian/tests/control


Changes:

=====================================
check_etc_resolv/check_etc_resolv
=====================================
@@ -1,8 +1,12 @@
 #!/usr/bin/perl -w
 #
-# Author: Petter Reinholdtsen <pere at hungry.com>
+# Authors:
+# Petter Reinholdtsen <pere at hungry.com>
 # Date: 2001-11-09
 #
+# Bernd Zeimetz <bzed at debian.org>
+# Date: 2020-05-08
+#
 # Check /etc/resolv.conf, and make sure the name servers listed are
 # working.  It will ignore entries with '# NAGIOSIGNORE' at the end.
 
@@ -62,18 +66,6 @@ sub test_dns_server {
 
     print "Checking $1\n" if $debug;
 
-    # there are other module functions that do this more gracefully
-    # (such as inet_pton), but we can't guarantee that they are available
-    # in every system, so we use the built-in gethostbyaddr.
-    if ($ip =~ /^[\d\.]*$/) {
-	$PackedAddr = pack('C4', split /\./,$ip);
-	$name = gethostbyaddr($PackedAddr,AF_INET());
-    } elsif ($ip =~ /^[0-9a-zA-Z:]*/) {
-	$PackedAddr = pack('n8', canonical_ipv6_address($ip));
-	$name = gethostbyaddr($PackedAddr, AF_INET6());
-    }
-
-    return "missing in DNS" if ( ! defined $name );
 
     my $try = $trycount;
     my $delay = 1; # Exponensial backoff


=====================================
check_etc_resolv/copyright
=====================================
@@ -1,4 +1,5 @@
 Copyright (C) 2001 Petter Reinholdtsen <pere at hungry.com>
+Copyright (C) 2020 Bernd Zeimetz <bzed at debian.org>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by


=====================================
check_libs_ng/check_libs_ng
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 
 # Copyright (c) 2017 Leo Antunes <leo at costela.net>
 #


=====================================
check_libs_ng/control
=====================================
@@ -2,3 +2,4 @@ Uploaders: Leo Antunes <leo at costela.net>
 Description: plugin to report processes using outdated libraries
   depents on kernel features present in kernels newer than 3.3
 Version: 0.1.0
+Recommends: python3


=====================================
debian/tests/control
=====================================
@@ -6,7 +6,7 @@ Test-Command: /usr/lib/nagios/plugins/check_cups -H localhost
 Restrictions: needs-root, isolation-container
 
 Depends: debsecan, @
-Test-Command: /usr/lib/nagios/plugins/check_debsecan -f 9998 -F 9999 -o 9998 -O 9999 -l 9998 -L 9999 -m 9998 -M 9999 -u 9998 -U 9999 -r
+Test-Command: /usr/lib/nagios/plugins/check_debsecan -f 9998 -F 9999 -o 9998 -O 9999 -l 9998 -L 9999 -m 9998 -M 9999 -u 9998 -U 9999 -r -s sid
 
 Depends: libnet-dns-perl, @
 Test-Command: echo "127.0.0.1 localhost" > /etc/hosts && /usr/lib/nagios/plugins/check_etc_hosts
@@ -25,7 +25,7 @@ Test-Command: /usr/lib/nagios/plugins/check_libs
 Restrictions: needs-root
 Test-Command: /usr/lib/nagios/plugins/check_libs_ng
 
-Depends: openssl, curl, file, @
+Depends: ca-certificates, openssl, curl, file, @
 Test-Command: /usr/lib/nagios/plugins/check_ssl_cert -H www.debian.org
 
 Depends: libmonitoring-plugin-perl | libnagios-plugin-perl, @



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/-/compare/40b6388baf471c2cf6a4de68a6ac2e632a6aef42...410817f320a124eb695f46df59b07881d5ad9517

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/-/compare/40b6388baf471c2cf6a4de68a6ac2e632a6aef42...410817f320a124eb695f46df59b07881d5ad9517
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20200508/e86a604a/attachment-0001.html>


More information about the pkg-nagios-changes mailing list