Configurable Notification via jabber - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: Suggestions (/forum-2.html) +--- Thread: Configurable Notification via jabber (/thread-6724.html) |
Configurable Notification via jabber - pongraczi - 05-15-2009 01:16 AM Hi, It would be nice to get the possibility to change notifications from email to jabber (xmpp). It would be a configurable option to choose email and/or jabber notification. There is a command line tool called sendxmpp (commandline XMPP (jabber) utility). This is a simple tool, working well. Why? Much more comfortable and "realtime" than email. Of course, this is only my opinion. WARNING! The sendxmpp has a "bug", which caused that, pidgin will not get the message. This is caused by that, sendxmpp send "message" as the type of the message instead of "chat". With "chat" pidgin working well. Due to that, sendxmpp is a script, it is easy to hack to get it work. Thanks, István RE: Configurable Notification via jabber - RatS - 05-19-2009 06:37 AM So, if you want to implement it: Try it, write a HowTo and copy it into our Documentation. This project lives from your participation and engagement as well as from ours. RE: Configurable Notification via jabber - pongraczi - 05-19-2009 07:19 AM (05-19-2009 06:37 AM)RatS Wrote: So, if you want to implement it: Try it, write a HowTo and copy it into our Documentation. You are right I wrote here, because the topic was Suggestions I will try to implement it.... the success will be not guaranteed RE: Configurable Notification via jabber - Blondak - 07-03-2009 11:55 PM Hi, i wrote fast patch that add notofications via XMPP protocol, patch is created over current trunk, but can be easly ported to 1.0 version, only think you must setup is add folowing lines to /etc/ispcp/ispcp.conf Code: XMPP_MESSAGES = 1 Code: ispCP Log RE: Configurable Notification via jabber - BeNe - 07-04-2009 12:00 AM This is cool Thanks a lot! Greez BeNe RE: Configurable Notification via jabber - pongraczi - 07-04-2009 12:00 AM Thank you very much! I will upgrade my installation and I will apply the patch and report about it. Have a nice day! RE: Configurable Notification via jabber - ericliang - 09-04-2009 06:36 PM Best (IMO) is to use this PHP class: http://code.google.com/p/xmpphp and add something like require_once('XMPPHP/Log.php'); require_once('XMPPHP/XMPP.php'); $conn = new XMPPHP_XMPP('xmpp.DOMAIN.TLD', 5222, 'USERNAME', 'PASSWORD', 'xmpphp', 'DOMAIN.TLD', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO); try { $conn->connect(); $conn->processUntil('session_start'); $conn->presence(); $conn->message('receiver@DOMAIN.TLD', "message that SHOULD BE in UTF-8" ); $conn->disconnect(); } catch(XMPPHP_Exception $e) { echo $e->getMessage(); } Also I assume that it would be best to have XMPP notification only for the important messages like failed attempts or server down? Don't know if this is possible, still very new with ispCP here... But this is extremely easy to implement in native PHP (I think PHP5 is the default in ispCP, right?) and can be added in 10 minutes I think. Eric |