Révision 35e90ac3
Plugin freeipmi: add Intel BMC power sensors support
| plugins/ipmi/freeipmi | ||
|---|---|---|
| 68 | 68 |
my $help_output = `$IPMISENSORS --help`; |
| 69 | 69 |
|
| 70 | 70 |
$IPMISENSORS .= " --output-sensor-thresholds" if $help_output =~ /--output-sensor-thresholds/; |
| 71 |
$IPMISENSORS .= " --quiet-cache --comma-separated-output --no-header-output --ignore-not-available-sensors --sensor-types=Temperature,Fan,Current,Voltage"; |
|
| 71 |
$IPMISENSORS .= " --quiet-cache --comma-separated-output --no-header-output --ignore-not-available-sensors --sensor-types=Temperature,Fan,Current,Other_Units_Based_Sensor,Voltage";
|
|
| 72 | 72 |
$IPMISENSORS .= " --hostname=$hostname" if defined($hostname); |
| 73 | 73 |
$IPMISENSORS .= " --username=$ENV{IPMI_USERNAME}" if defined($ENV{IPMI_USERNAME});
|
| 74 | 74 |
$IPMISENSORS .= " --password=$ENV{IPMI_PASSWORD}" if defined($ENV{IPMI_PASSWORD});
|
| ... | ... | |
| 147 | 147 |
$type = "temp"; |
| 148 | 148 |
} elsif ( $dataline[2] eq "Fan" ) {
|
| 149 | 149 |
$type = "fan" |
| 150 |
} elsif ( $dataline[2] eq "Current" and $dataline[4] eq "W" ) {
|
|
| 150 |
} elsif ( $dataline[2] eq "Current" and $dataline[4] =~ /^[W%]$/ ) {
|
|
| 151 |
$type = "power"; |
|
| 152 |
} elsif ( $dataline[2] eq "Other Units Based Sensor" and $dataline[4] eq "W" ) {
|
|
| 151 | 153 |
$type = "power"; |
| 152 | 154 |
} elsif ( $dataline[2] eq "Current" and $dataline[4] eq "A" ) {
|
| 153 | 155 |
$type = "current"; |
Formats disponibles : Unified diff