 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
CatsWhoCode.com: How to easily monitor your web server using PHP
by Chris Cornutt February 08, 2010 @ 13:48:31
In a new post to the CatsWhoCode.com blog Jean-Babtiste Jung walks you through the creation of a simple monitoring script written using just PHP that can tell you if your web site is up and responsive.
In order to make sure that your website is always available to the public, you have to monitor it. In this tutorial, I'll show you how you can easily create a monitoring script that will check your website availability and send an email or sms alert to you if it isn't.
They have a snippet of code (about 15 lines long) with a function you can call to check a remote host's connection and check the returned data for a certain string. This can not only ensure that your site is responsive but also that it's not responding incorrectly. You could even use this to hit a certain monitoring page of your site to check for certain things (like database connection problems).
voice your opinion now!
monitor webserver tutorial socket
Matthew Weier O'Phinney's Blog: Real-time ZF Monitoring via Zend Server
by Chris Cornutt December 11, 2009 @ 08:07:33
In a new post to his blog Matthew Weier O'Phinney takes a look at a pretty cool feature of the Zend Server tool - the ability to directly monitor your Zend Framework applications.
When keeping tabs on your ZF applications, it's often difficult to separate application errors from general PHP errors, and if you aggregate them in the same location as your web server errors, this can become more difficult still. [...] Zend Server's Monitor extension has some capabilities for providing more context, and does much of this by default: request and environment settings available when the error was logged, the function name and arguments provided, and a full backtrace are available for you to inspect.
You can also trigger custom events via the extension's API and, to make it even easier, they've created a new writer for Zend_Log - Zend_Log_Writer_ZendMonitor. He includes a bit of sample code showing you how to create an instance of the component and log a sample citical message.
voice your opinion now!
zendframework zendserver monitor
Johannes Schluter's Blog: I have nothing to say - but maybe PHP...
by Chris Cornutt August 27, 2008 @ 12:58:37
Johannes Schluter has posted about an interesting little project he's worked up to find his own path to usefulness in Twitter - a PHP extension that tweets bugs to his account.
The other thing I see there are people telling me what errors in their applications they are currently fixing. I can't see why that's interesting. But as people seem to be interested I found out that I have stuff to say, too, or better my PHP has, since sometimes I have errors there, too. But well, I'm lazy so I don't want to "twitter" them myself.
His "little PHP extension" that automatically sends the reported error out to the designated account. Of course, it tends to slow things down (connection to a remote machine and all) but it could be useful for sending an SMS is something pops up.
voice your opinion now!
twitter extension automatic error message monitor
Community News: FirePHP Firefox PHP Extension
by Chris Cornutt February 14, 2007 @ 12:04:26
As mentioned on dzone.com, there's an extension for Firefox, FirePHP, that allows you to get a bit more info on what your PHP scripts are up to.
FirePHP allows you to take a deeper look at all the work your PHP code does to generate that page you are currently looking at in your Firefox browser.
Just install the FirePHP Firefox extension, PHP PEAR package and add a few lines of code to your PHP application to get started. You will see a "FirePHP" tab in your Firebug extension to bring your PHP backend logic to your fingertips!
You can check out screenshots of it in action, a demo of its use, and of course, download the latest version all from their site. It works either as a separate window or attached in your browser and, based on an XML capabilities file, works with your application to provide details about your scripts.
voice your opinion now!
firefox firephp extension monitor request integrate firefox firephp extension monitor request integrate
PHP-Tools Blog: Analyzing aide (advanced intrusion detection environment) output with PHP
by Chris Cornutt August 28, 2006 @ 07:28:19
Aide (Advanced Intrusion Detection Environment) is described as "a free replacement for Tripwire. It does the same things as the semi-free Tripwire and more." So, of course, one of the useful things that it does is output logs to help you keep track of what's happening on your system. In this new post on the PHP-Tools blog, they talk about the parsing of these same logs - with a little help from PHP.
Since we started hosting our sites on our own server we had some nasty cracker-attacks. To at least have a chance recognizing whether the system had been compromised we started to use aide some time ago. Aide keeps track of changes in the filesystem and provides us with a human-readable report once a day.
They note, though, that sometimes it's a valid change and not a security issue, so they employed the Util_AideAnalyzer package to help parse the logs into something useful. They give an example of what this looks like, including variations getting more specific data on certain aspects. They also point you in the right direction to get the Util_AideAnalyzer package installed on your system.
voice your opinion now!
aide system file monitor tool logs parse pear package util_aideanalyzer aide system file monitor tool logs parse pear package util_aideanalyzer
|
Community Events
Don't see your event here? Let us know!
|