[Nagiosplug-devel] [ nagiosplug-Patches-1881254 ] Connection source address (for check_http)

SourceForge.net noreply at sourceforge.net
Mon Jan 28 17:51:48 CET 2008


Patches item #1881254, was opened at 2008-01-28 16:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1881254&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Piotr Stolc (socrtp)
Assigned to: Nobody/Anonymous (nobody)
Summary: Connection source address (for check_http)

Initial Comment:
netutils.c, check_http - add option to specify local IP address of the connection.

Patch against Plugin Version (-V output):
check_http v1892 (nagios-plugins 1.4.11)
$Id: netutils.c 1893 2008-01-07 02:04:17Z hweiss $
$Id: netutils.h 1580 2007-01-24 22:47:25Z tonvoon $
Plugin Name: check_http, netutils.c
Example Plugin Commandline: check_http www.example.com -B one.of.our.ip-address
Tested on operating system: Gentoo Linux
Tested on architecture: x86
Tested with compiler: gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)


This patch adds the functionality of binding the socket to chosen local IP address. It modifies the behavior of nb_net_connect() function but it doesn't break compatibility with older versions.
It is easy to add this option to other plugins which use nb_net_connect().


Greetz,
Piotr Stolc


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1881254&group_id=29880




More information about the Devel mailing list