diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-09-16 12:28:51 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-09-16 12:28:51 +0200 |
commit | 013ca2c508386c548ec145832ab8be1e8306cca0 (patch) | |
tree | afbca01f3cb44025c86cf10146dc7c0390cd0e57 /plugins/check_tcp.c | |
parent | 369dba6206d331f59f0b70804595141b2528c685 (diff) | |
download | monitoring-plugins-013ca2c508386c548ec145832ab8be1e8306cca0.tar.gz |
Fix check_jabber to work with Openfire servers
The plugin expected:
<?xml version='1.0'?>
But Openfire sends:
<?xml version='1.0' encoding='UTF-8'?>
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index bd7736b5..fc0adba0 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -172,7 +172,7 @@ main (int argc, char **argv) } else if (!strncmp(SERVICE, "JABBER", 6)) { SEND = "<stream:stream to=\'host\' xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'>\n"; - EXPECT = "<?xml version=\'1.0\'?><stream:stream xmlns=\'jabber:client\' xmlns:stream=\'http://etherx.jabber.org/streams\'"; + EXPECT = "<?xml version=\'1.0\'"; QUIT = "</stream:stream>\n"; flags |= FLAG_HIDE_OUTPUT; PORT = 5222; |