* Fixed a bug where duplicate IPMI sensor names of type 'Volts' wasn't being processed properly, causing sensor data to not be recorded.

* Added a comment about disabling /etc/hosts management in anvil.conf.

Signed-off-by: Digimer <digimer@alteeve.ca>
This commit is contained in:
Digimer 2021-08-31 14:42:30 -04:00
parent 61d4eb7d7f
commit 221f468b6c
2 changed files with 10 additions and 0 deletions

View File

@ -1568,6 +1568,11 @@ sub collect_ipmi_data
$current_value = $1; $current_value = $1;
$units = "degrees C"; $units = "degrees C";
} }
if ($current_value =~ /^(.*?)\s+Volts/)
{
$current_value = $1;
$units = "V";
}
my $new_sensor_name = $sensor_name." (".$hex_address.")"; my $new_sensor_name = $sensor_name." (".$hex_address.")";
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => {
new_sensor_name => $new_sensor_name, new_sensor_name => $new_sensor_name,

View File

@ -204,3 +204,8 @@ sys::manage::firewall = 1
# Logging can be set on a per-agent basis with: # Logging can be set on a per-agent basis with:
#scancore::scan-network::log_level = 2 #scancore::scan-network::log_level = 2
#scancore::scan-network::log_secure = 1 #scancore::scan-network::log_secure = 1
# By default, the Anvil! will manage the /etc/hosts file. If this is causing you issue, you can disable this
# behavious by setting this to '0'. Be aware of course that you will need to manually update or add entries
# going forward.
#sys::hosts::manage = 0