From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- ...809-nagios-plugins-1.4.0alpha1.my_connect.patch | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch (limited to 'web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch') diff --git a/web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch b/web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch new file mode 100644 index 0000000..f3b16a6 --- /dev/null +++ b/web/attachments/88809-nagios-plugins-1.4.0alpha1.my_connect.patch @@ -0,0 +1,60 @@ +diff -Naur nagios-plugins-1.4.0alpha1.orig/plugins/netutils.c nagios-plugins-1.4.0alpha1/plugins/netutils.c +--- nagios-plugins-1.4.0alpha1.orig/plugins/netutils.c 2003-08-09 23:31:02.000000000 -0700 ++++ nagios-plugins-1.4.0alpha1/plugins/netutils.c 2004-05-28 15:45:24.000000000 -0700 +@@ -97,7 +97,7 @@ + fd_set readfds; + int recv_length = 0; + +- result = my_connect (server_address, server_port, &sd, IPPROTO_TCP); ++ result = _my_connect (server_address, server_port, &sd, IPPROTO_TCP); + if (result != STATE_OK) + return STATE_CRITICAL; + +@@ -175,7 +175,7 @@ + + result = STATE_OK; + +- result = my_connect (server_address, server_port, &sd, proto); ++ result = _my_connect (server_address, server_port, &sd, proto); + if (result != STATE_OK) + return STATE_CRITICAL; + +@@ -227,7 +227,7 @@ + { + int result; + +- result = my_connect (host_name, port, sd, IPPROTO_TCP); ++ result = _my_connect (host_name, port, sd, IPPROTO_TCP); + + return result; + } +@@ -239,7 +239,7 @@ + { + int result; + +- result = my_connect (host_name, port, sd, IPPROTO_UDP); ++ result = _my_connect (host_name, port, sd, IPPROTO_UDP); + + return result; + } +@@ -247,7 +247,7 @@ + + /* opens a tcp or udp connection to a remote host */ + int +-my_connect (const char *host_name, int port, int *sd, int proto) ++_my_connect (const char *host_name, int port, int *sd, int proto) + { + struct addrinfo hints; + struct addrinfo *res; +diff -Naur nagios-plugins-1.4.0alpha1.orig/plugins/netutils.h nagios-plugins-1.4.0alpha1/plugins/netutils.h +--- nagios-plugins-1.4.0alpha1.orig/plugins/netutils.h 2003-08-08 16:05:17.000000000 -0700 ++++ nagios-plugins-1.4.0alpha1/plugins/netutils.h 2004-05-28 15:45:28.000000000 -0700 +@@ -47,7 +47,7 @@ + + int my_tcp_connect (const char *address, int port, int *sd); + int my_udp_connect (const char *address, int port, int *sd); +-int my_connect (const char *address, int port, int *sd, int proto); ++int _my_connect (const char *address, int port, int *sd, int proto); + + int is_host (const char *); + int is_addr (const char *); -- cgit v1.2.3-74-g34f1