1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Merge pull request #1491 from pimlie/fix-turbostat-path

fix(turbostat_): always check turbostat exists and is executable
This commit is contained in:
Kenyon Ralph 2025-04-16 13:57:45 -07:00 committed by GitHub
commit 49b2fda89b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,8 @@ anything about what happened between two measurements.
=head1 INSTALLATION
On debian systems turbostat is provided by the linux-tools-generic package. If you are running a custom
kernel, you can also build turbostat as follows:
On debian systems turbostat is provided by either the linux-tools-generic or linux-cpupower package.
If you are running a custom kernel, you can also build turbostat as follows:
$ apt-get install build-essential git libcap-dev
$ cd /usr/local/src
@ -195,6 +195,10 @@ case $1 in
fi
;;
*)
if ! turbostat_exists; then
exit 1
fi
GRAPH_TYPE=${0##*turbostat_}
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do