gibt es möglichkeiten, den aktuellen serverload per PHP abzufragen ?
wenn ja wie ?
vielen dank !
Load mittels PHP auslesen
Re: Load mittels PHP auslesen
Auswerten musst Du es selbst:
Code: Select all
cat /proc/loadavgPayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
bierhasser
- Posts: 19
- Joined: 2003-05-09 06:23
- Contact:
Re: Load mittels PHP auslesen
Code: Select all
$ServerLoad = @exec('/usr/bin/uptime 2>&1');
if (preg_match("#: ([d.,]+),s+([d.,]+),s+([d.,]+)$#", $ServerLoad, $regs)) {
$OUT = '<b>Server Load: </b>'.$regs[1] . ' : ' . $regs[2] . ' : ' . $regs[3];
echo $OUT;
}Re: Load mittels PHP auslesen
super ! vielen dank !
