Hello, everyone.
Having tried for a long time to activate the native Zabbix Jabber messaging support, I have searched the net for some solution regarding this problem.
And recently I found the XMPPHP framework at http://code.google.com/p/xmpphp/, tried it out, works just great..
However, the sample script that is provided at the page doesn´t work at the first time and needs some changing.
This is the version I used, tried and true, with our Jabber server.
Please try this out and tell me if it works for you. Note that you must replace stuff like dummy, dummypass,server and domain etc with your authentication credencials.
Thanks in advance,
Ivo Pereira
Having tried for a long time to activate the native Zabbix Jabber messaging support, I have searched the net for some solution regarding this problem.
And recently I found the XMPPHP framework at http://code.google.com/p/xmpphp/, tried it out, works just great..
However, the sample script that is provided at the page doesn´t work at the first time and needs some changing.
This is the version I used, tried and true, with our Jabber server.
Code:
#!/usr/bin/php
<?php
// Load the necessary class
include("xmpphp/XMPPHP/XMPP.php");
// Invoke the connect function, give it arguments
// Use a static JabberID here, it is the Sender ID from the server
$conn = new XMPPHP_XMPP('jabber.org, 5222, 'dummy', 'dummypass', 'xmpphp', 'domain.tld', $printlog=False);
$conn->connect();
$conn->processUntil('session_start');
$conn->message($_SERVER['argv'][1], $_SERVER['argv'][2]);
$conn->disconnect();
?>
Thanks in advance,
Ivo Pereira

Comment