Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2012 03:43:34 GMT
From:      Ryan Frederick <ryanrfrederick@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173638: [PATCH] Revised check_ircd.pl patch for net-mgmt/nagios_plugins
Message-ID:  <201211150343.qAF3hY0u025084@red.freebsd.org>
Resent-Message-ID: <201211150350.qAF3o011072706@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173638
>Category:       ports
>Synopsis:       [PATCH] Revised check_ircd.pl patch for net-mgmt/nagios_plugins
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 15 03:50:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Frederick
>Release:        9.1-RC3
>Organization:
>Environment:
FreeBSD test.box 9.1-RC3 FreeBSD 9.1-RC3 #0 r242324: Tue Oct 30 00:18:27 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Attached is a revised patch file for check_ircd.pl (patch-plugins-scripts__check_ircd.pl) in net-mgmt/nagios-plugins which corrects the pack() template to reflect the sockaddr_in struct in FreeBSD 7.0 and above.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- plugins-scripts/check_ircd.pl.orig	2012-06-27 12:32:47.000000000 -0500
+++ plugins-scripts/check_ircd.pl	2012-11-14 20:58:01.479745211 -0600
@@ -66,6 +66,7 @@
 $ENV{PATH} = "";
 $ENV{ENV} = "";
 $ENV{BASH_ENV} = "";
+$ENV{CDPATH} = "";
 
 # -----------------------------------------------------------------[ Global ]--
 
@@ -153,7 +154,7 @@
 	    print "IRCD UNKNOWN: Could not start socket ($!)\n";
 	    exit $ERRORS{"UNKNOWN"};
 	}
-	$sockaddr = 'S n a4 x8';
+	$sockaddr = 'x C n a4 x8';
 	$that = pack($sockaddr, AF_INET, $in_remoteport, $thataddr);
 	if (!connect(ClientSocket, $that)) { 
 	    print "IRCD UNKNOWN: Could not connect socket ($!)\n";


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211150343.qAF3hY0u025084>