[p4] monitoring the perforce server?

Shawn Hladky p4shawn at gmail.com
Mon Oct 30 07:49:21 PST 2006


We use p4web and SiteScope to monitor our server.  Not that this is the best
monitoring solution, but we already had both running so setup was easy.
Although (in theory), p4web could be down and p4d was up, this has never
happend.  However, we did initially monitor on the info page (p4 info
equivilent).  What we found is that occasionally (I think twice in 3 years),
the info page would return as normal, but any command that read from the
db.* files would fail.  So we changed the monitor to pull the contents of a
specific text file (p4 print equivilent).  The monitor executes every
minute, and we've seen no performance issues.

On 10/30/06, Weintraub, David <david.weintraub at bofasecurities.com> wrote:
>
> There is a "p4 monitor" command. You need to set the monitor counter to
> "1". A "p4 monitor show" will show you the processes that are currently
> active on the server. Would this be what you want?
>
> If you simply want to verify that the server is up and running, a "p4
> info" or a "p4 dirs //depot/Foo" would probably be the lightest weight
> processes and if they fail, would let you know that the server is having
> problems. There are quite a few people who do (for other reasons) a "p4
> sync" every minute for a particular client, and don't report any
> problems with performance. That might be a way to go (especially on a
> directory or file that rarely or never changes).
>
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Mike
> Sent: Friday, October 27, 2006 5:26 PM
> To: perforce-user at perforce.com
> Subject: [p4] monitoring the perforce server?
>
> I'm working on monitoring as much as possible in my environment.
> Is there a command that can be issued to the perforce server that will
> not cause any harm and not return an error if the perforce server is ok?
> Like PING/PING in clamav or the banner status message from sendmail?
>
> Mike
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


More information about the perforce-user mailing list