summaryrefslogtreecommitdiffstats
path: root/web/attachments/450273-nagios-jabbers2s.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/450273-nagios-jabbers2s.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/450273-nagios-jabbers2s.patch')
-rw-r--r--web/attachments/450273-nagios-jabbers2s.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/attachments/450273-nagios-jabbers2s.patch b/web/attachments/450273-nagios-jabbers2s.patch
new file mode 100644
index 0000000..b0ec71f
--- /dev/null
+++ b/web/attachments/450273-nagios-jabbers2s.patch
@@ -0,0 +1,16 @@
1--- check_tcp.c.orig 2010-07-18 02:21:29.000000000 +0200
2+++ check_tcp.c 2010-07-18 02:22:35.000000000 +0200
3@@ -169,6 +169,13 @@
4 flags |= FLAG_HIDE_OUTPUT;
5 PORT = 5222;
6 }
7+ else if (!strncmp(SERVICE, "JABBERS2S", 9)) {
8+ SEND = "<stream:stream to=\'host\' xmlns=\'jabber:server\' xmlns:stream=\'http://etherx.jabber.org/streams\' version=\'1.0\'>\n";
9+ EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns:stream=\'http://etherx.jabber.org/streams\' xmlns=\'jabber:server\'";
10+ QUIT = "</stream:stream>\n";
11+ flags |= FLAG_HIDE_OUTPUT;
12+ PORT = 5269;
13+ }
14 else if (!strncmp (SERVICE, "NNTPS", 5)) {
15 server_expect_count = 2;
16 server_expect[0] = "200";