Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tuneit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
tuneit
Commits
27b2a6cc
Commit
27b2a6cc
authored
Jan 28, 2026
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules: update system_monitor with new graph types
parent
5c7d7b62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
27 deletions
+69
-27
stats.sh
modules/system_monitor/bin/stats.sh
+10
-0
system_monitor.yml
modules/system_monitor/system_monitor.yml
+59
-27
No files found.
modules/system_monitor/bin/stats.sh
View file @
27b2a6cc
...
@@ -29,6 +29,16 @@ case "$1" in
...
@@ -29,6 +29,16 @@ case "$1" in
cpu[0-9]
*
)
cpu[0-9]
*
)
get_cpu_usage
"
$1
"
get_cpu_usage
"
$1
"
;;
;;
cpus_all
)
cores
=
$(
nproc
)
echo
-n
"["
for
i
in
$(
seq
0
$((
cores-1
)))
;
do
usage
=
$(
get_cpu_usage
"cpu
$i
"
)
[
$i
-gt
0
]
&&
echo
-n
", "
echo
-n
"{'name': 'CPU
$i
', 'value':
$usage
}"
done
echo
"]"
;;
ram
)
ram
)
free |
awk
'/Mem:/ {printf "%.1f", $3/$2*100}'
free |
awk
'/Mem:/ {printf "%.1f", $3/$2*100}'
;;
;;
...
...
modules/system_monitor/system_monitor.yml
View file @
27b2a6cc
-
name
:
"
System
Monitor"
-
name
:
"
System
Monitor"
weight
:
50
weight
:
50
pages
:
pages
:
-
name
:
"
Monitor"
-
name
:
"
Monitor
Inline"
icon
:
utilities-system-monitor-symbolic
icon
:
view-list-symbolic
-
name
:
"
Monitor
Large"
icon
:
view-fullscreen-symbolic
-
name
:
"
Monitor
Cards"
icon
:
view-grid-symbolic
sections
:
sections
:
-
name
:
"
CPU"
-
name
:
"
CPU"
weight
:
0
weight
:
0
page
:
"
Monitor"
page
:
"
Monitor
Inline
"
type
:
custom
type
:
custom
settings
:
settings
:
-
name
:
CPU Total
-
name
:
CPU Total
...
@@ -17,31 +21,9 @@
...
@@ -17,31 +21,9 @@
min
:
0
min
:
0
max
:
100
max
:
100
points
:
60
points
:
60
color
:
"
#
e5a50a
"
color
:
"
#
3584e4
"
suffix
:
"
%"
suffix
:
"
%"
-
name
:
"
CPU
Cores"
weight
:
5
page
:
"
Monitor"
type
:
dynamic
generator_command
:
"
seq
0
$(($(nproc)-1))"
setting_template
:
name
:
"
Core
{_item}"
type
:
info_graph
update_interval
:
1
get_command
:
"
{module_path}/bin/stats.sh
cpu{_item}"
map
:
min
:
0
max
:
100
points
:
60
color
:
"
#ff7800"
suffix
:
"
%"
-
name
:
"
Memory"
weight
:
10
page
:
"
Monitor"
type
:
custom
settings
:
-
name
:
RAM Usage
-
name
:
RAM Usage
type
:
info_graph
type
:
info_graph
update_interval
:
1
update_interval
:
1
...
@@ -50,7 +32,7 @@
...
@@ -50,7 +32,7 @@
min
:
0
min
:
0
max
:
100
max
:
100
points
:
60
points
:
60
color
:
"
#
3584e4
"
color
:
"
#
e5a50a
"
suffix
:
"
%"
suffix
:
"
%"
-
name
:
Swap Usage
-
name
:
Swap Usage
...
@@ -63,3 +45,53 @@
...
@@ -63,3 +45,53 @@
points
:
30
points
:
30
color
:
"
#c061cb"
color
:
"
#c061cb"
suffix
:
"
%"
suffix
:
"
%"
-
name
:
"
CPU"
weight
:
0
page
:
"
Monitor
Large"
type
:
custom
settings
:
-
name
:
Total Usage
type
:
info_graph_large
update_interval
:
1
get_command
:
"
{module_path}/bin/stats.sh
cpu"
map
:
min
:
0
max
:
100
points
:
60
color
:
"
#3584e4"
suffix
:
"
%"
-
name
:
"
Memory"
weight
:
10
page
:
"
Monitor
Large"
type
:
custom
settings
:
-
name
:
RAM Usage
type
:
info_graph_large
update_interval
:
1
get_command
:
"
{module_path}/bin/stats.sh
ram"
map
:
min
:
0
max
:
100
points
:
60
color
:
"
#e5a50a"
suffix
:
"
%"
show_max
:
true
-
name
:
"
CPU
Cores"
weight
:
0
page
:
"
Monitor
Cards"
type
:
custom
settings
:
-
name
:
CPU Cores
type
:
info_graph_multi
update_interval
:
1
get_command
:
"
{module_path}/bin/stats.sh
cpus_all"
map
:
min
:
0
max
:
100
points
:
40
columns
:
3
color
:
"
#3584e4"
suffix
:
"
%"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment