7 lines
173 B
PHP
7 lines
173 B
PHP
<?php
|
|
header("Content-Type: application/json");
|
|
echo json_encode([
|
|
"load" => trim(shell_exec("uptime")),
|
|
"fpm_procs" => intval(shell_exec("pgrep -c php-fpm8")),
|
|
]);
|