summaryrefslogtreecommitdiffstats
path: root/web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch')
-rw-r--r--web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch b/web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch
new file mode 100644
index 0000000..55a1541
--- /dev/null
+++ b/web/attachments/144381-nagios-plugins-1.4.1-check_tcp.patch
@@ -0,0 +1,53 @@
1--- nagios-plugins-1.4.1/plugins/check_tcp.c.orig 2005-08-04 09:47:34.493447229 +0200
2+++ nagios-plugins-1.4.1/plugins/check_tcp.c 2005-08-04 09:48:24.684428631 +0200
3@@ -175,12 +175,12 @@
4 flags |= FLAG_SSL;
5 PORT = 465;
6 }
7- else if (!strncmp(SERVICE, "JABBER", 6)) {
8+ else if (!strncmp(SERVICE, "JABBERS", 7)) {
9 SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n";
10 EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns:stream=\'http://etherx.jabber.org/streams\'";
11 QUIT = "</stream:stream>\n";
12 flags |= FLAG_SSL | FLAG_HIDE_OUTPUT;
13- PORT = 5222;
14+ PORT = 5223;
15 }
16 else if (!strncmp (SERVICE, "NNTPS", 5)) {
17 server_expect_count = 2;
18@@ -191,6 +191,13 @@
19 PORT = 563;
20 }
21 #endif
22+ else if (!strncmp(SERVICE, "JABBER", 6)) {
23+ SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n";
24+ EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns:stream=\'http://etherx.jabber.org/streams\'";
25+ QUIT = "</stream:stream>\n";
26+ flags |= FLAG_HIDE_OUTPUT;
27+ PORT = 5222;
28+ }
29 else if (!strncmp (SERVICE, "NNTP", 4)) {
30 server_expect_count = 2;
31 server_expect = malloc(sizeof(char *) * server_expect_count);
32--- nagios-plugins-1.4.1/configure.in.orig 2005-08-04 10:31:50.608790288 +0200
33+++ nagios-plugins-1.4.1/configure.in 2005-08-04 10:32:00.309256197 +0200
34@@ -479,7 +479,7 @@
35 fi
36
37 if test "$FOUNDSSL" = "yes"; then
38- check_tcp_ssl="check_simap check_spop check_jabber check_nntps check_ssmtp"
39+ check_tcp_ssl="check_simap check_spop check_jabbers check_nntps check_ssmtp"
40 AC_SUBST(check_tcp_ssl)
41 AC_SUBST(SSLLIBS)
42 AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found])
43--- nagios-plugins-1.4.1/plugins/Makefile.am.orig 2005-08-04 10:32:17.072877007 +0200
44+++ nagios-plugins-1.4.1/plugins/Makefile.am 2005-08-04 10:32:30.926258102 +0200
45@@ -17,7 +17,7 @@
46 check_udp check_ups check_users negate urlize check_icmp\
47 @EXTRAS@
48
49-check_tcp_programs = check_ftp check_imap check_nntp check_pop check_udp2 \
50+check_tcp_programs = check_ftp check_imap check_jabber check_nntp check_pop check_udp2 \
51 @check_tcp_ssl@
52
53 EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \