please choosego to mobile | Continue to access the PC version
View: 29922|Reply: 25

RPi-Monitor 2nd approach

[Copy link]
Published in 2015-12-6 07:23:41 | Show all floors |Read mode
Edited by bronco at 2015-12-6 07:30

Since I need a bit more informations about the H3 based Orange PIs I extended RPi-Monitor support for these devices.

It's posted here due to being 'Debian only' at the moment. That means it should run on any Debian based OS image (Lubuntu, Debian, Jessie, Ubuntu_Mate, lalala, you name it)

Major drawback: a daemon running in the background is needed to collect all informations.

Advantages:

  • shows you how silly dvfs settings ruin your device over time
  • ability to check external disk's temperature
  • example setup to show how to integrate external data sources

And it's still the best approach to understand how you Orange Pi users suffering from heat/stability problems have been fooled by Xunlong:

That's the difference between moronic dvfs settings and sane ones:

Orange Pi defaults: The board is doing nothing:



And this is the very same board running a benchmark and being just 2°C above the idle settings above. Funny, isn't it? You fry your boards due to moronic overvolted settings.




Take the 5 minutes to follow these easy steps: http://rpi-experiences.blogspot. ... r-installation.html
And then proceed with the stuff below

  1. cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
  2. update-rc.d rpimonitor-helper defaults 90 10
  3. shutdown -r now
Copy code

0

threads

21

posts

74

credits

Registered member

Rank: 2

credits
74
Published in 2017-2-20 21:24:26 | Show all floors

There's no need to fiddle around with templates and stuff like that. Simply use Armbian and there 'sudo rpimonitor -r' to get RPi-Monitor installed and also latest version of templates on H2+/H3 boards.

This works in Armbian since one whole year: http://www.cnx-software.com/2016 ... y-pi-and-orange-pi/

Regarding DRAM: the values RPi-Monitor displays are of no interest on any platform (most if not all SBC users fail to understand Linux' virtual memory concept and why 'free memory' is bad memory) so I really didn't take care to 'fix' here any values to be displayed. You can fiddle around in the unaltered template where memory utilization should be parsed but please keep in mind that Armbian supports both legacy and mainline kernels, a lot more Linux SoC families than just H2+/H3 and userspace tools to report memory usage work differently between different distros. So no, there's nothing to fix, simply ignore memory values collected by RPi-Monitor.

1

threads

21

posts

111

credits

Registered member

Rank: 2

credits
111
Published in 2016-1-22 06:57:11 | Show all floors
joecz replied at 2015-12-23 18:55
Following post 1 and this one I successfully updated previous version of RPi-monitor. But selecting ...

Hi

I follow the instrunctions presented by @bronco and i get it up and running with the new information widgets, but i encounter the very same promen of missing rrd databses, i look up for the problem on google and find some discusion about the rrd files here, and reading the code i find a solution:

so just delete the stat folder wich contains the rrd files
  1. sudo rm /var/lib/rpimonitor/stats
Copy code
and restart the rpimonitor
  1. sudo /etc/init.d/rpimonitor stop
  2. sudo /etc/init.d/rpimonitor-helper stop
  3. sudo /etc/init.d/rpimonitor start
  4. sudo /etc/init.d/rpimonitor-helper start
Copy code
Or restart the board

The folder and the missing files will be automatically created again.
Hope this helps.

-Logan


 Author| Published in 2015-12-6 23:36:55 | Show all floors
hojnikb replied at 2015-12-6 23:01
im using ubuntu 15.04 btw...

Me too. Thx for the feedback, I made a mistake when packaging the stuff (missed path to a template). Please try it again using:
  1. cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
  2. systemctl enable rpimonitor-helper
  3. systemctl start rpimonitor-helper
Copy code
If it's still not working, please send me a PM with the output of "systemctl status rpimonitor-helper".

The tar archive contains the following:
  1. /usr/local/sbin/rpimonitor-helper.sh
  2. /etc/init.d/rpimonitor-helper
  3. /etc/rpimonitor/data.conf
  4. /etc/rpimonitor/template/OrangePi_H3.conf
  5. /etc/rpimonitor/template/Allwinner_H3.conf
  6. /etc/rpimonitor/template/Allwinner_H3_Extended.conf
Copy code
The daemon's code can be read out since it's a simple bash script. I've put it also online: http://pastebin.com/0BU8p7BN

1

threads

116

posts

708

credits

Senior member

Rank: 4

credits
708
Published in 2015-12-6 20:52:58 | Show all floors
There must be something wrong with the scripts, because i'm still getting the old template without the additional info...
 Author| Published in 2015-12-6 21:37:30 | Show all floors
hojnikb replied at 2015-12-6 20:52
There must be something wrong with the scripts, because i'm still getting the old template without t ...

Hmm... in case you already restarted your Orange Pi it might be necessary to reload your browser's window or to open a new one. Since RPi-Monitor has been made with the Raspberry Pi in mind all the display and rendering stuff happens inside the browser to put as less load as possible on the board.

BTW: Just finished an USB/storage test (unfortunately not that promising regarding throughput) and easily extended template/daemon to monitor the temperature of both disks:





1

threads

116

posts

708

credits

Senior member

Rank: 4

credits
708
Published in 2015-12-6 22:14:09 | Show all floors
I've cleared my browser cache and restarted but still nothing...
 Author| Published in 2015-12-6 22:31:47 | Show all floors
hojnikb replied at 2015-12-6 22:14
I've cleared my browser cache and restarted but still nothing...

Can you please verify whether you really extracted the installation archive from / (the "cd / &&" step above).

What does the following output when entered as root?
  1. history | egrep "wget|update-rc.d"
Copy code


1

threads

116

posts

708

credits

Senior member

Rank: 4

credits
708
Published in 2015-12-6 23:01:31 | Show all floors
root@OrangePI:/home/orangepi# history | egrep "wget|update-rc.d"
   65  wget http://loboris.eu/update_kernel.sh
  274  wget http://goo.gl/rsel0F -O /etc/apt/sources.list.d/rpimonitor.list
  404  cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
  406  update-rc.d rpimonitor-helper defaults 90 10
  408  cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
  415  update-rc.d rpimonitor-helper defaults 90 10
  420  cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
  421  update-rc.d rpimonitor-helper defaults 90 10
  423  history | egrep "wget|update-rc.d"


im using ubuntu 15.04 btw...

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
Published in 2015-12-8 03:35:52 | Show all floors
HI

How can I view this side with the values.

I tried with the ip adress of
my opi2: 10.0.0.10:8888
also with localhost:8888

but I get the message site not found



 Author| Published in 2015-12-8 04:16:36 | Show all floors
john0815 replied at 2015-12-8 03:35
HI

How can I view this side with the values.

Hard to tell from here.

1) RPi-Monitor always refuses to start if there exists only a root account on the system since it won't start a webserver as root (good). If this might apply to your setup then you have to add an unprivileged normal user first

2) Depending on the Debian version you're using the output of 'systemctl status rpimonitor' or 'service status rpimonitor' might help

3) In case you've 'lsof' installed then the following might help checking whether rpimonitor is started already or not:
  1. root@OrangePI:~# lsof -i | grep 8888
  2. rpimonito  465 orangepi    4u  IPv4   9432      0t0  TCP *:8888 (LISTEN)
Copy code
No lsof? Then a "sudo apt-get install lsof" would help

HTH

0

threads

6

posts

231

credits

Intermediate member

Rank: 3Rank: 3

credits
231
Published in 2015-12-24 01:55:45 | Show all floors
Edited by joecz at 2015-12-24 03:45
bronco replied at 2015-12-6 23:36
Me too. Thx for the feedback, I made a mistake when packaging the stuff (missed path to a template ...

Following post 1 and this one I successfully updated previous version of RPi-monitor. But selecting tab Statistics got me error. Some new database .rdd files were missing:
/usr/share/rpimonitor/web/stat/coolingstate.rrd
cpu_stat.rrd
disktemp.rrd
vcorevoltage.rrd

as temporary solution I've created those files by copying some other .rdds andit is working now. I'm not familiar with Round Robin DB. This is not correct way for sure.
Some info how to recreate or clear data within this db would be useful, but I've not read documentation yet. So maybe it's my fault.
Keep this excellent work alive! :-) What a great tool!!!





You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list