summaryrefslogtreecommitdiffstats
path: root/web/attachments/450273-nagios-jabbers2s.patch
blob: b0ec71f623128be8cb25a6b993f2b31fff47d90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- check_tcp.c.orig    2010-07-18 02:21:29.000000000 +0200
+++ check_tcp.c 2010-07-18 02:22:35.000000000 +0200
@@ -169,6 +169,13 @@
                flags |= FLAG_HIDE_OUTPUT;
                PORT = 5222;
        }
+       else if (!strncmp(SERVICE, "JABBERS2S", 9)) {
+               SEND = "<stream:stream to=\'host\' xmlns=\'jabber:server\' xmlns:stream=\'http://etherx.jabber.org/streams\' version=\'1.0\'>\n";
+               EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns:stream=\'http://etherx.jabber.org/streams\' xmlns=\'jabber:server\'";
+               QUIT = "</stream:stream>\n";
+               flags |= FLAG_HIDE_OUTPUT;
+               PORT = 5269;
+       }
        else if (!strncmp (SERVICE, "NNTPS", 5)) {
                server_expect_count = 2;
                server_expect[0] = "200";