P4 Monitoring Scripts Robert Duff This package consists of two scripts. p4monitor.pl and p4listener.pl. p4monitor.pl constantly reads the verbose log of a Perforce server, ties that information to a process on the machine, and outputs the information in XML format over a network port. p4listener.pl constantly reads the XML data from p4monitor.pl and outputs the data in an HTML format for hosting on a web site. The nice thing about this setup is that p4listener.pl can be rewritten to reformat the data anyway you like. One idea I would like to expand on is using Flash to display the data harvested by p4monitor.pl. These scripts only use the Socket Perl module, which should be standard with any Perl 5 distribution, to my knowledge. The easiest way to get up and running is to run the scripts with the -h parameter, to examine what the scripts are capable of doing. If you have questions, please feel free to contact me at robduff at hotmail dot com, with "Perforce" somewhere in the subject line. No reply is guaranteed though, and please make note of the disclaimers in the license file. Robert Duff
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 3332 | Robert Duff |
P4 Monitor is a script that matches Perforce's log output and ps information and displays it in XML format. This should allow people to easily write frontends to show the data in a nice, clean format. It also allows you to pipe the data over a network port for a listener on another machine. P4 Listener is a simple script that takes the output of P4 Monitor and formats it into a webpage. This allows you to do the monitoring on the Perforce server, but have the users hit another web server to view the data, easing the load on the Perforce server. |