update raspbian_ARM.php

Talks about solar stuff
Post Reply
Tron
Posts: 5
Joined: Sun Aug 18, 2019 3:03 pm

update raspbian_ARM.php

Post by Tron » Sun Aug 18, 2019 3:15 pm

Some changes:
---

<?php
/**
* /srv/http/123solar/scripts/distros/raspbian_ARM.php
*
* @package default
*/


// Commands
$UPTIME="uptime -p";
$CPUUSE="ps aux|awk -v nproc=`nproc` 'NR > 0 { s +=$3 }; END {print s/nproc}'";
$MEMTOT="free -m | grep 'Mem' | awk '{print $2}'";
$MEMUSE="free -m | grep 'Mem' | awk '{print $3}'";
$MEMFREE="free -m | grep 'Mem' | awk '{print $4}'";
$DISKUSE="df -h | grep root.*/$ | awk '{print $3}'";
$DISKFREE="df -h | grep root.*/$ | awk '{print $4}'";
$DISKTOT="df -h | grep root.*/$ | awk '{print $5}'";
?>

jeanmarc
Posts: 1917
Joined: Thu Aug 29, 2013 7:16 am

Re: update raspbian_ARM.php

Post by jeanmarc » Mon Aug 19, 2019 8:12 am

thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests