mirror of https://github.com/mikaku/Monitorix.git
added support for newest NVidia driver 340.24 #54
This commit is contained in:
parent
e18c4ad86b
commit
75e7b935ae
1
Changes
1
Changes
|
@ -16,6 +16,7 @@
|
|||
will put all iptables rules for network traffic accounting monitoring.
|
||||
(suggested by Russell Morris, rmorris AT rkmorris.us)
|
||||
- Added SPF statistics in the 'mail' graph.
|
||||
- Added support for newest NVidia driver 340.24. [#54]
|
||||
- Improved in all graphs the 'limit' and 'rigid' functionality and reduced a lot
|
||||
of redundant code.
|
||||
- Changed all DST from COUNTER to GAUGE in 'net' module to avoid unexpected huge
|
||||
|
|
|
@ -182,8 +182,10 @@ sub get_nvidia_data {
|
|||
}
|
||||
for($l = 0; $l < scalar(@data); $l++) {
|
||||
if($data[$l] =~ /Memory Usage/) {
|
||||
$check_mem = 1;
|
||||
next;
|
||||
if($data[$l] !~ /BAR1 Memory Usage/) {
|
||||
$check_mem = 1;
|
||||
next;
|
||||
}
|
||||
}
|
||||
if($check_mem) {
|
||||
if($data[$l] =~ /Total/) {
|
||||
|
@ -257,7 +259,7 @@ sub get_nvidia_data {
|
|||
next;
|
||||
}
|
||||
if($check_temp) {
|
||||
if($data[$l] =~ /Gpu/) {
|
||||
if($data[$l] =~ /Gpu.*?(?:Current Temp)?/i) {
|
||||
my (undef, $tmp) = split(':', $data[$l]);
|
||||
if($tmp eq "\n") {
|
||||
$l++;
|
||||
|
|
Loading…
Reference in New Issue