News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Abhinav Singh's Blog:
Get real time system & server load notification on any IM using PHP and XMPP
January 13, 2010 @ 11:23:15

On his blog today Abhinav Singh has an interesting post describing how to use PHP and XMPP (the Extensible Messaging and Presence Protocol) to get real-time notifications of the status of your servers and applications via instant messenger.

There are several open and closed source softwares in the market which can generate almost real time notifications for you. Most famous one being Nagios. In this blog post I will discuss, how to generate real time system notifications using PHP and XMPP. Specifically, I will present sample script using Jaxl (Jabber XMPP Client Library) for generating real time system load notifications, which can be received using any Instant Messengers.

The code for a class that uses and extends the Jaxl library is included. It sends the messages via Jabber after grabbing the contents of the "/proc/loadavg" file on the local system. You'll need to check out the latest Jaxl source and create a configuration file with your IM information, but that's about it. The rest is handled by the script - you can see an example here.

0 comments voice your opinion now!
instantmessage xmpp server load tutorial


blog comments powered by Disqus

Similar Posts

Developer Tutorials Blog: Iterating PHP objects, and readable code too!

Experimentalworks Blog: DTracing PHP

Refulz Blog: Yii Framework - Scenarios for Conditional Multiple Validation Rules

Builder.com: Match users to their geo-location with PHP and PEAR Net:Geo

Peter Petermann: Building better project skeletons with Composer


Community Events

Don't see your event here?
Let us know!


community php7 project application example series opinion laravel programming api list interview introduction yii2 framework symfony podcast language part2 composer

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework