jackbenny / check_gputemp Goto Github PK
View Code? Open in Web Editor NEWA Nagios plugin to monitor the GPU temperature of ATI based graphics card
A Nagios plugin to monitor the GPU temperature of ATI based graphics card
Hi,
Thank you for this plugin. It works, but I have the following issue under Ubuntu 14. I'm using the system as "myuser". When I'm logged in as "myuser" I can run aticonfig and it returns proper value.
If I run aticonfig as root user, I get:
No protocol specified
ERROR - X needs to be running to perform AMD Overdrive(TM) commands
Therefore I use:
sudo -u myuser aticonfig --odgt
And I get OK result:
Default Adapter - AMD Radeon HD 7900 Series
Sensor 0: Temperature - 62.00 C
And the check is OK when running as root user:
GPU 0 OK - Temperature is 62 | Sensor 0: Temperature - 62.00 C
So I modified the script and I added "sudo -u myuser" when aticonfig command is called. But when I run the check from remote Nagios server via NRPE I now get this result:
"GPU 0 OK - Temperature is | "
So it seems that aticonfig command is not properly executed when called from remote Nagios server via NRPE. But I see this in my local machine (where GPUs are):
nrpe[8841]: Running command: /usr/lib/nagios/plugins/check_amdgputemp.sh --adapter 0 -w 68 -c 75
Command completed with return code 0 and output: GPU 0 OK - Temperature is |
Return Code: 0, Output: GPU 0 OK - Temperature is |
What is the proper way to configure this so that Nagios from remote server would execute amdgup checks properly?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.