bronco post at 2015-12-6 07:23:41

RPi-Monitor 2nd approach

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:

http://kaiser-edv.de/tmp/s6nQKX/Bildschirmfoto%202015-12-05%20um%2020.22.27.png

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.

http://kaiser-edv.de/tmp/s6nQKX/Bildschirmfoto%202015-12-05%20um%2017.26.55.png


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

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

kaiser post at 2017-2-20 21:24:26

poor_red_neck replied at 2017-2-19 07:23
Hi,




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/03/17/rpi-monitor-is-a-web-based-remote-monitor-for-arm-development-boards-such-as-raspberry-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.

xlogan post at 2016-1-22 06:57:11

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
sudo rm /var/lib/rpimonitor/statsand restart the rpimonitor
sudo /etc/init.d/rpimonitor stop
sudo /etc/init.d/rpimonitor-helper stop
sudo /etc/init.d/rpimonitor start
sudo /etc/init.d/rpimonitor-helper start
Or restart the board

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

-Logan


bronco post at 2015-12-6 23:36:55

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:cd / && wget -O - http://kaiser-edv.de/downloads/RPi-Monitor-for-H3.tgz | tar xzf -
systemctl enable rpimonitor-helper
systemctl start rpimonitor-helperIf it's still not working, please send me a PM with the output of "systemctl status rpimonitor-helper".

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

hojnikb post at 2015-12-6 20:52:58

There must be something wrong with the scripts, because i'm still getting the old template without the additional info...

bronco post at 2015-12-6 21:37:30

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:

http://kaiser-edv.de/tmp/s6nQKX/Bildschirmfoto%202015-12-06%20um%2014.05.20.png


http://kaiser-edv.de/tmp/s6nQKX/Bildschirmfoto%202015-12-06%20um%2014.20.40.png

hojnikb post at 2015-12-6 22:14:09

I've cleared my browser cache and restarted but still nothing...

bronco post at 2015-12-6 22:31:47

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?
history | egrep "wget|update-rc.d"

hojnikb post at 2015-12-6 23:01:31

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


im using ubuntu 15.04 btw...

john0815 post at 2015-12-8 03:35:52

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



bronco post at 2015-12-8 04:16:36

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:
root@OrangePI:~# lsof -i | grep 8888
rpimonito465 orangepi    4uIPv4   9432      0t0TCP *:8888 (LISTEN)
No lsof? Then a "sudo apt-get install lsof" would help

HTH

joecz post at 2015-12-24 01:55:45

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!!!




page: [1] 2 3
View full version: RPi-Monitor 2nd approach