1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-09-18 16:48:44 +00:00

Improve GPU plugins documentation

This commit is contained in:
Nuno Fachada 2013-11-12 13:47:45 +00:00 committed by Steve Schnepp
parent 10b1de81bb
commit c53197ce5a
2 changed files with 29 additions and 11 deletions

View file

@ -27,7 +27,8 @@ This plugin uses the following configuration variables:
=head2 DEFAULT CONFIGURATION
The default configuration is to set "env.aticonfexec" to /usr/bin/aticonfig.
The default configuration is to set "env.aticonfexec" to /usr/bin/aticonfig and
assume warning and critical temperatures of 75 and 95 degrees celsius, respectively.
=head2 EXAMPLE WILDCARD USAGE
@ -35,6 +36,16 @@ C<ln -s /usr/share/munin/plugins/amd_gpu_ /etc/munin/plugins/amd_gpu_temp>
...will monitor the temperature of available AMD GPUs.
=head1 TODO
=over 4
=item *
Use multigraphs for multiple GPUs (http://munin-monitoring.org/wiki/MultigraphSampleOutput).
=back
=head1 AUTHOR
Nuno Fachada
@ -85,7 +96,6 @@ nGpusOutput=`$atiConfigExec --list-adapters`
nGpus=`echo "$nGpusOutput" | wc -l`
nGpus=$((nGpus - 2)) # Last two lines don't matter
# FIXME Possible bug in code bellow: maybe should be <= 0 instead of == 0?
if [ $nGpus -eq 0 ]; then
# Exit if no GPUs found
echo "No AMD GPUs detected. Exiting."
@ -233,8 +243,4 @@ do
: $(( nGpusCounter = $nGpusCounter + 1 ))
done
# TODO Follow multigraph suggestion from Flameeyes to look into multigraph plugins http://munin-monitoring.org/wiki/MultigraphSampleOutput, in order to reduce the amount of round trips to get the data.