diff options
Diffstat (limited to 'web/attachments/450273-nagios-jabbers2s.patch')
-rw-r--r-- | web/attachments/450273-nagios-jabbers2s.patch | 16 |
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"; | ||