mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-15 01:31:37 +01:00
Comment
This commit is contained in:
@@ -153,7 +153,7 @@ function cron_status($db_conn,$time,$pc){
|
||||
|
||||
$resu = commandbyssh($pc['IP'],$pc['SSHPort'],$pc['User'],$pass,'vmstat | grep -E \'([0-9]+\w+)+\' | awk \'{print $5}\'');
|
||||
$line = preg_replace("/[[:blank:]]+/",' ',$resu);
|
||||
$freeram = $line*1024; //Free RAM (In Bytes)
|
||||
$freeram = $line*1024; //Free RAM (In Bytes, program shows in Kb)
|
||||
break;
|
||||
}
|
||||
dbw_query($db_conn,"INSERT INTO S_HISTRAM (ID_SERV,`Timestamp`,Freeram,Detram) VALUES ('$pc[ID_SERV]','$time','$freeram','$detram')");
|
||||
|
||||
Reference in New Issue
Block a user