Commit Graph

55 Commits

Author SHA1 Message Date
Ricardo Pardini
d29305a05b armbianmonitor -u: rationalize paste server retrying, use ANSI dmesg
- use PIPESTATUS to check all steps for failure
- avoid blaming paste server if data collection failed
2024-06-30 09:07:50 +02:00
Ricardo Pardini
e67b52e00c armbianmonitor: squash shellcheck warnings around the main getopts case statement
- `b` and `B` were never parsed
- an `*` case is added to handle invalid options
2024-06-30 09:07:50 +02:00
Ricardo Pardini
5cdc55292d armbianmonitor: shellfmt, no changes 2024-06-30 09:07:50 +02:00
Igor
6bcf74f2e7
Anonymize default build engine settings (#5865)
Improve naming confusion by changing build framework defaults. Set framework defaults VENDOR to Armbian-unofficial for self build images. Unsupported boards and unsupported distribution have framework defaults, except VENDOR and VENDORURL. We build images with predefined values.
2023-11-15 22:00:21 +01:00
Joseph Turner
da0d169f9a Update armbianmonitor 2023-08-04 10:33:04 +02:00
Gunjan Gupta
da6c238f79
armbianmonitor: update cpuminer and remove arm only limit (#5503) 2023-07-23 20:23:36 +02:00
The-going
e570f737a0 fix: armbianmonitor: used cpufreq/scaling_cur_freq if 1 Cluster available 2023-02-16 23:24:37 +03:00
The-going
6922edc4c8
Fix: Armbianmonitor: Print the CPU frequency correctly without privileges (#4823)
* Type: Remove trailing spaces

* Fix: Print the CPU frequency correctly without privileges.
2023-02-12 21:52:12 +01:00
The-going
4fe4e21969 fix: pass an argument to the awk script as a variable
MonitorIO: Add an argument check and a hint to the user
2023-01-20 20:28:07 +03:00
The-going
fc417f5c29 Fix: Uniquely determine the mount point in GetDevice 2023-01-20 20:28:07 +03:00
Werner
42d0138b64
Add fallback for debug upload (#4194)
* Add fallback for debug upload

in case ix.io is unreachable

* Update packages/bsp/common/usr/bin/armbianmonitor

Co-authored-by: hzyitc <h1260071766@126.com>

* adjust url

* fix missing sentence

* Fix broken logic

* Set paste.armbian.com as default service
y

Co-authored-by: hzyitc <h1260071766@126.com>
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
Co-authored-by: Igor <igor@armbian.com>
2022-10-13 18:34:24 +02:00
Rosen Penev
fdf73a025b
some shellcheck fixes (#4013)
* bsp: remove useless cats treewide

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* bsp: replace egrep with grep -E

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-25 11:39:11 +02:00
Rosen Penev
baa6968fc4
Shellcheck fixes on armbianmonitor (#3994)
* mdadm-fault-led: port to dash

Also ran through shellcheck. dash is faster and uses less RAM than bash.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: get rid of pipe to /dev/null

shellcheck warns that it can't parse this. Also seems to be a mistake.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: replace egrep with grep -E

The former is deprecated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: add -r to read

Avoids mangling backslashes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: remove unnecessary ${}

They're in $(()) making it redundant

Signed-off-by: Rosen Penev <rosenp@gmail.com>

* armbianmonitor: simplify various printf calls

For some reason, printf and echo -e get mixed together even though they
do the same thing. Just use printf.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-14 10:12:24 +02:00
Igor Pecovnik
612529aa8f
Fixing errors in armbianmonitor and add release info
Close https://github.com/armbian/build/issues/2798
2021-10-28 23:22:29 +02:00
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
Igor Pečovnik
e6ad392f85
[AR-103] Bugfix: Adding repository via PPA doesn't find & set proper release name. (#1677) 2019-12-16 12:58:42 +01:00
Igor Pečovnik
f416c35c16
Adding minimal image (#1504)
* Minimal build setup (#1463)
* Netplan folder check & armbian-tools dependency on expect (and tcl) solved (#1464)
* Prevent netplan configration if it is not installed
* Resolved expect dependecy of armbian-tools
* More packages added for armbian-tools
* Added python3-apt and rsyslog to minimal installation
* Debootstrap variant doesn't play nice. We loose networking and it affects standard builds as well. Removing.
* Python-to-Bash conversion (#1470)
* Remove python3-apt dependency from BSP package, fix netplan error also on Disco and putting back varint=minbase ... tested Disco, Bionic
* Distinguish package list: *-minimal.list and *-desktop.list
* Enable Wireguard back which was removed by mistake. https://github.com/armbian/build/issues/1471
* Having minbase debootstrap variant for all will require further adjustements with current package base - backward compatibility. Minimal image is now Python free but need further testings ...
* Add wireless-regdb and crda to the pakage base, fix Ubuntu keyring warning while debootstrap.
* Add figlet to sort out missing fonts
* Moving few packages here and there. Bugfix when creating a cache package list
* Manually compared base images - they are the same with small insignificant difference. Minimal image has to be futher tuned
* Adjustements for bash powered lsb_release, adding some needed packages
* Fixed (no) network problems on Bionic/Disco
* Add rsync to debootstrap_list and few minor fixes
* Adjust text in lsb_release
* Olimex Micro A20: fix wrong boot config
* Remove duplicate depenedency
* Odroid C1: adjust kernel config
2019-08-16 19:21:12 +02: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