1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-19 19:51:34 +01:00

Preliminary BSD support

This commit is contained in:
2020-10-17 13:29:17 +02:00
parent 99ed1f862b
commit b907ed0765
4 changed files with 50 additions and 32 deletions

View File

@@ -70,7 +70,10 @@ while ($pc = dbw_fetch_array($db_conn,$pcsenabled)){
cron_status($db_conn,$time,$pc);
}
//Get type of linux
if ($pc['SO'] == 'LINUX'){ //Only update if needs (Todo? Well, as is only checks if no SYSTEMD or SERVICE found)
detect_linux($pc);
}
//Services
$services = dbw_query($db_conn,"SELECT ID_SERV,`Name` FROM S_SERVICES WHERE ID_SERV='$pc[ID_SERV]' AND `Enabled`=1 AND `Type`='SERVICE'");
@@ -87,11 +90,6 @@ while ($pc = dbw_fetch_array($db_conn,$pcsenabled)){
cron_uptime($db_conn,$time,$pc); //Uptime
//Get type of linux
if ($pc['SO'] == 'LINUX'){ //Only update if needs (Todo?)
detect_linux($pc);
}
cron_getversion($db_conn,$pc); //Windows/Linux version name
}