This commit is contained in:
PaulVua
2025-01-12 17:12:58 +01:00
parent e0fbdef138
commit ddbd85a035
3 changed files with 169 additions and 89 deletions

View File

@@ -18,6 +18,12 @@ if ($type == "linux_disk") {
echo $output;
}
if ($type == "linux_memory") {
$command = 'free -h';
$output = shell_exec($command);
echo $output;
}
if ($type == "sshTunnel") {
$ssh_port=$_GET['ssh_port'];
$command = 'sudo ssh -i /var/www/.ssh/id_rsa -f -N -R "'.$ssh_port.':localhost:22" -p 50221 -o StrictHostKeyChecking=no "airlab_server1@aircarto.fr"';