mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin freeipmi: add env var for driver type
For instance, HP iLO requires LAN_2_0 driver
This commit is contained in:
parent
31f64337b6
commit
e8718d4302
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,8 @@ When used to monitor the local host, plugin config should define user root for d
|
||||||
=head2 ENVIRONMENT VARIABLES
|
=head2 ENVIRONMENT VARIABLES
|
||||||
|
|
||||||
When used to monitor a foreign host, this plugins use the 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
|
=head2 WILDCARD PLUGIN
|
||||||
|
|
||||||
|
@ -71,6 +72,7 @@ $IPMISENSORS .= " --quiet-cache --comma-separated-output --no-header-output --ig
|
||||||
$IPMISENSORS .= " --hostname=$hostname" if defined($hostname);
|
$IPMISENSORS .= " --hostname=$hostname" if defined($hostname);
|
||||||
$IPMISENSORS .= " --username=$ENV{IPMI_USERNAME}" if defined($ENV{IPMI_USERNAME});
|
$IPMISENSORS .= " --username=$ENV{IPMI_USERNAME}" if defined($ENV{IPMI_USERNAME});
|
||||||
$IPMISENSORS .= " --password=$ENV{IPMI_PASSWORD}" if defined($ENV{IPMI_PASSWORD});
|
$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 $output=`$IPMISENSORS 2>/dev/null`;
|
||||||
my $retval=$?;
|
my $retval=$?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue