Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Whats the best way to get reports on php errors?

To give a bit of background, have some legacy PHP applications/websites that generate various errors/warnings etc, currently going to apache log.

Would like to be able to graph these somehow to have showing on a screen in the office the developers are in.

The hope is that increasing the visibility of these errors will firstly make people aware quickly if an upgrade increases the error rate, and also help in the longer term quest to drive the errors down towards zero.

For extra points, it would be nice to be able split the errors up by a part of the path to the file causing the error (ie: split the errors by site).

Whats the best tool for this? I was looking at cacti, and have used zenoss for other monitoring before. But can't find info on doing exactly this with either - hoping someone else has done it!

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

What I did at work was simply to set up a bunch of terminals running tail on a big screen. It's been very effective, as you get all the errors in real time.

Basically; - Set upp logmonitor account on all related machines, make sure it can read the log files, and not much else. - Generate SSH private/public keypair on the computer doing the monitoring and set it up on the machines you will be accessing. - Set up a bunch of terminal windows to.automatically load on boot and connect to each server and start tail'ing the logfiles.

Make sure you use tail -F instead of tail -f, otherwise the log will stop scrolling when it's rotated.

We set this up on a mac running Leopard, so it camke with everything we needed from scratch, ssh, terminal with "window groups" and profiles for running a custom command instead of the normal shell on connect.

Of course, the next. Level of this would be to set upp your sysloggers to collect all the logfiles from all the different machines in one place.

share|improve this answer
    
mmm. was thinking about this as a start. will give it a shot. –  benlumley Aug 14 '09 at 10:29
add comment

Try Splunk

http://www.splunk.com

share|improve this answer
add comment

You can do that (and much more) with my logs management project Octopussy, but it's probably a little bit complicated for just what you need...

But if you want to try it, I could probably help on that particular need.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.