diff --git a/plugins/ipmi/freeipmi b/plugins/ipmi/freeipmi index e060105d..6b22b52f 100755 --- a/plugins/ipmi/freeipmi +++ b/plugins/ipmi/freeipmi @@ -12,7 +12,8 @@ When used to monitor the local host, plugin config should define user root for d =head2 ENVIRONMENT VARIABLES When used to monitor a foreign host, this plugins use the variables -IPMI_USERNAME and IPMI_PASSWORD to log in on the remote system. +IPMI_USERNAME and IPMI_PASSWORD to log in on the remote system +and optionally IPMI_DRIVER to specify the driver type. =head2 WILDCARD PLUGIN @@ -71,6 +72,7 @@ $IPMISENSORS .= " --quiet-cache --comma-separated-output --no-header-output --ig $IPMISENSORS .= " --hostname=$hostname" if defined($hostname); $IPMISENSORS .= " --username=$ENV{IPMI_USERNAME}" if defined($ENV{IPMI_USERNAME}); $IPMISENSORS .= " --password=$ENV{IPMI_PASSWORD}" if defined($ENV{IPMI_PASSWORD}); +$IPMISENSORS .= " --driver-type=$ENV{IPMI_DRIVER}" if defined($ENV{IPMI_DRIVER}); my $output=`$IPMISENSORS 2>/dev/null`; my $retval=$?;