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:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user