Commit Graph

39 Commits

Author SHA1 Message Date
Uglymotha
af90b3237e
Fix armbianmonitor -n for vlan interfaces (#2594)
Currently armbianmonitor -n does not detect vlan interfaces correctly.
This is because of an incorrect egrep -o which filters out the parent interface name:
network interface: 100
instead of
network interface: eth0.100

Cascading into:
armbianmonitor: line 1095: eth0. - 0 : syntax error: invalid arithmetic operator (error token is ". - 0 ")

Fixed by changing the egrep logic to filter out the last field of route -n output.

Also fixes a timer issue by moving the timer start to after the interface selection.
time controller adjustment: -2.43
/usr/bin/armbianmonitor: line 1128: read: -2.43: invalid timeout specification
2021-02-03 20:19:08 +01:00
Werner
21b2f6cf5b Script does not properly stop on network issue (#1706)
Fixes https://forum.armbian.com/topic/12579-opi-stuck-after-restart-cant-connect-to-network/
2020-01-01 20:48:40 +01:00
ThomasKaiser
0406fc3df0 Some RPi-Monitor installation tweaks
Memory template still not touched therefore only bogus values reporting
2018-09-28 16:00:32 +02:00
ThomasKaiser
7521bb7ff1 Consolidate partition handling in nand-sata-install
Use lsblk to identify disks and partitions and treat SATA, USB and NVMe the same
2018-09-12 07:23:50 +02:00
Werner
c3a8d55f3a Allow interface selection on NetworkMonitorMode (#1108)
When running armbianmonitor -N/n and two or more routable network interfaces are detected create a dynamic dialog box to select which interface should be monitored. Otherwise proceed as usual. Also reverts #1106
2018-09-11 22:25:31 +02:00
Werner
00d44fe40f Crude fix for multiple interfaces (#1106)
I ran into an issue that `armbianmonitor -N` and `-n` spit out an `sed` error message and noticed this is caused when multiple network interfaces (like additional `tun`) are detected.
This is a quick and dirty fix and just grabs the first result to make it work.
2018-09-11 12:08:02 +02:00
ThomasKaiser
be0778b176 Improve NVMe support
Running with btrfs on el cheapo NVMe SSD: http://ix.io/1mpG
2018-09-10 20:06:46 +02:00
Werner
53819a6212 Fix monitormode run unprivileged (#1107)
* Fix monitormode run unprivileged

Running `armbianmonitor -m/M` non privileged leading into an no permission error as user do not have permission to read `cpuinfo_cur_freq`. This will prevent the error and adds a hint.
2018-09-10 18:33:13 +02:00
ThomasKaiser
9eff058568 Improve zram related monitoring 2018-09-06 23:44:37 +02:00
Thomas Kaiser
efe63dbe7f
Run package integrity check only as root
Closes #1078
2018-08-12 12:08:46 +02:00
ThomasKaiser
88ea83e694 armbianmonitor bugfix 2018-08-06 06:56:46 +02:00
ThomasKaiser
a70fd8033d Add Tinkerboard S DC-IN voltage to armbianmonitor
https://forum.armbian.com/topic/7882-tinkerboard-s-what-is-asus-view-on-voltage-drops-in-cables/?do=findComment&comment=59445
2018-08-06 06:43:49 +02:00
ThomasKaiser
e63138bacd Allow 7-zip benchmark to run multiple times 2018-07-22 14:53:16 +02:00
ThomasKaiser
13d034b747 Add 7-zip CPU benchmark to armbianmonitor
Unfortunately still people believe into sysbench to be able to report CPU performance
2018-07-22 12:05:56 +02:00
Igor Pečovnik
fc07886a1d
Bsp services RFC (#1015)
* Basic armbian services RFC
- tested building and upgrade
- armbian-optimize-hardware and armbian-setup-hardware have still the same content

* fix permissions

* Forther renaming and small fixes

* Odroid C2 NEXT tiny config adjustement to remove errros from bootup and moving u-boot to 2018.05

* More cleanings

* permissions fix

* More cleanup ...

* permi

* Remove few Ubuntu related things, fix permissions

* Further mini improvements

* Fix logrotate compression and permission issues

* Bugfix

* Wrong services setup at package install. fixing

* RAM logging: workaround for older kernel/btrfs driver versions

* Renaming services, proper config for zram, few bugfixes.

* Various fixes

* Various fixes

* No $TMPFILE needed here

* Various fixes

* Lower this so boards with low memory can use it too

* Various fixes

* Adjust logfile to armbian-hardware-monitor.log

* Remove swap file creation

* Fix permissions in all logrotate configs if needed.

* Prevent loading parallel printer port drivers which we don't need here.
2018-06-16 19:41:16 +02:00
Igor Pecovnik
72df4a091f Sprunge pasting service seems to be broken. Changing to alternative ix.io
https://github.com/rupa/sprunge/issues/43
2018-01-06 08:38:49 +01:00
Thomas Kaiser
de0df7fbe8
Make CLI monitoring less 'expensive'
We try to **not** influence OS behaviour so let's try to renice our monitoring function from 0 to 19 and also minimize fs stats.
2017-12-15 11:44:21 +01:00
Igor Pecovnik
d93ad66f39 Revert "Bugfix when temperature is not present or readings are invalid"
This reverts commit 7f2337ed53.
2017-12-15 10:44:59 +01:00
Igor Pecovnik
7f2337ed53 Bugfix when temperature is not present or readings are invalid 2017-12-15 09:38:27 +01:00
Igor Pecovnik
55a7192e49 Missing CPU temp in armbianmonitor https://github.com/armbian/build/issues/839 2017-12-05 10:57:29 +01:00
Thomas Kaiser
9b49b45ff7
Minor bugfix in armbianmonitor 2017-11-29 19:31:21 +01:00
Igor Pecovnik
5cb346e80f More resiliant soc temp reading when kernels fails to output proper data. 2017-11-29 11:48:27 +01:00
ThomasKaiser
7dd3a3154a Minor logging/support tweaks 2017-11-22 11:32:32 +01:00
ThomasKaiser
1ae79aab83 Monitor underpowering little bit better on A20 boards 2017-11-21 22:08:16 +01:00
ThomasKaiser
e0ee68a375 Minor logging tweaks 2017-11-20 06:41:05 -08:00
ThomasKaiser
ce884f630d Minor armbianmonitor debug info improvements 2017-11-19 18:26:03 +01:00
ThomasKaiser
ead8c7e6c6 Minor monitoring/support fixes in armbianmonitor 2017-11-19 13:24:02 +01:00
jaskcon
35247cc040 default network interface monitoring (#821)
* default network interface monitoring 

I added the function NetworkMonitorMode(). One could argue that the MonitorMode() function should own these stats, but I think it would make things a bit too busy-ish. Having said that, I'm not married to accessing network stats through an independent function.
regards..../j

* Update armbianmonitor

* Update armbianmonitor

* Update armbianmonitor

* Update armbianmonitor

* Update armbianmonitor
2017-11-12 21:30:57 +01:00
jaskcon
494c3811b8 Fixes to ProcessStats() and the associated calls (#820)
Changes to the 'ProcessStats()' function to pull and compute system load values with better accuracy
Changes to the 'MonitorMode()' function to display the system load values with better accuracy [call ProcessStats() and load values through the $procStats variable]
2017-11-11 14:38:28 +01:00
ThomasKaiser
cac4155f81 Few more cosmetical armbianmonitor fixes 2017-11-08 15:32:19 +01:00
ThomasKaiser
67de9a2369 Cosmetic MonitorMode changes in armbianmonitor 2017-11-08 14:08:32 +01:00
jaskcon
1a6041a0b2 Update armbianmonitor (#819)
* Update armbianmonitor

Two proposed changes to 'MonitorMode':

Change 0 [Fix the real-time monitor 'sleep' value so it can be adjusted at runtime] 
line 138: equate 'interval' with $1 (note: in the 'case' routine, $2 == command-line $1)
line 325: change term 1 of the comparator from '$1' to 'interval'

Change 1 [add fixed-line functionality to the real-time monitor]
lines 291,297: retain the 'DisplayHeader' reprint routine for command-line case '-m' (scrolled output) 
lines 326-328: add the overwrite routine for command-line case '-M' (fixed-line output)

* Update armbianmonitor

* Update armbianmonitor
2017-11-08 08:41:27 +01:00
zador-blood-stained
4cb8c1c9d3 Add cooling state to armbianmonitor -m output 2017-10-08 12:51:17 +03:00
ThomasKaiser
39fd9d9a7d Small interaction fix between tools
Armbian-config can call now "armbianmonitor -m" properly
2017-09-10 18:40:11 +02:00
ThomasKaiser
537efa4241 Minor fixes/tweaks 2017-09-07 13:02:27 -07:00
ThomasKaiser
6a9bc56b39 Cosmetic armbianmonitor fix 2017-09-01 16:41:28 -07:00
ThomasKaiser
630c72775e Small armbianmonitor improvements 2017-08-20 06:47:40 -07:00
ThomasKaiser
680a8ca3d7 Small logging fixes
Added lspci, fixed verbosity reading, when lshw is installed even more verbose output
2017-08-20 06:10:11 -07:00
zador-blood-stained
2c0115d780 Refactor BSP directory structure 2017-07-24 16:38:00 +03:00