Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zabbix
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
zabbix
Commits
94e0ae7d
Commit
94e0ae7d
authored
Oct 13, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added temperature and frequency monitoring for Odroid HC2
parent
8d30eebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
Makefile
Makefile
+33
-0
No files found.
Makefile
View file @
94e0ae7d
...
...
@@ -2,6 +2,8 @@ opiplus2e: opi
opipcplus
:
opi
odroidhc2
:
odroid
amlogics905x
:
amlogic
agent
:
zabbix-agent-service zabbix-agent-config
...
...
@@ -64,6 +66,37 @@ opi:
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
odroid
:
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp0,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone0/temp`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp1,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone1/temp`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp2,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone2/temp`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp3,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone3/temp`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp4,bc <<< "scale=3; `cat /sys/devices/virtual/thermal/thermal_zone4/temp`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu0.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu1.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu2.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu3.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu4.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu5.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu6.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.cur,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_cur_freq`000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu7.freq.min,echo "`cat /sys/devices/system/cpu/cpufreq/cpuinfo_min_freq`000"'
-i
/etc/zabbix_agentd.conf
amlogic
:
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=system.hw.temp,bc <<< "scale=3; `cat /sys/devices/platform/scpi/scpi:sensors/hwmon/hwmon0/temp1_input`/1000"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=system\.hw\.temp.*/a UserParameter=system.cpu.freq.max,echo "`cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq`000"'
-i
/etc/zabbix_agentd.conf
...
...
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