mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +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:
commit
49b2fda89b
1 changed files with 6 additions and 2 deletions
|
@ -24,8 +24,8 @@ anything about what happened between two measurements.
|
||||||
|
|
||||||
=head1 INSTALLATION
|
=head1 INSTALLATION
|
||||||
|
|
||||||
On debian systems turbostat is provided by the linux-tools-generic package. If you are running a custom
|
On debian systems turbostat is provided by either the linux-tools-generic or linux-cpupower package.
|
||||||
kernel, you can also build turbostat as follows:
|
If you are running a custom kernel, you can also build turbostat as follows:
|
||||||
|
|
||||||
$ apt-get install build-essential git libcap-dev
|
$ apt-get install build-essential git libcap-dev
|
||||||
$ cd /usr/local/src
|
$ cd /usr/local/src
|
||||||
|
@ -195,6 +195,10 @@ case $1 in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if ! turbostat_exists; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
GRAPH_TYPE=${0##*turbostat_}
|
GRAPH_TYPE=${0##*turbostat_}
|
||||||
|
|
||||||
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do
|
for TYPE in "${SUPPORTED_GRAPH_TYPES[@]}"; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue