(plugin) network::cisco::standard::snmp - mode environment add option --add-fru-power (#3877)
This commit is contained in:
parent
9c38c7b851
commit
f5e06ca589
|
@ -146,7 +146,7 @@ sub check {
|
|||
return if ($self->check_filter(section => 'psu'));
|
||||
|
||||
check_psu_envmon($self);
|
||||
check_psu_entity($self);
|
||||
check_psu_entity($self) if (defined($self->{option_results}->{add_fru_power}));
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -78,8 +78,8 @@ sub set_system {
|
|||
module => [
|
||||
['unknown|mdr', 'UNKNOWN'],
|
||||
['disabled|okButDiagFailed|missing|mismatchWithParent|mismatchConfig|dormant|outOfServiceAdmin|outOfServiceEnvTemp|powerCycled|okButPowerOverWarning|okButAuthFailed|fwMismatchFound|fwDownloadFailure', 'WARNING'],
|
||||
['failed|diagFailed|poweredDown|powerDenied|okButPowerOverCritical', 'CRITICAL'],
|
||||
['boot|selfTest|poweredUp|syncInProgress|upgrading|fwDownloadSuccess|ok', 'OK']
|
||||
['failed|diagFailed|powerDenied|okButPowerOverCritical', 'CRITICAL'],
|
||||
['boot|selfTest|poweredUp|syncInProgress|upgrading|fwDownloadSuccess|ok|poweredDown', 'OK']
|
||||
],
|
||||
physical => [
|
||||
['other', 'UNKNOWN'],
|
||||
|
@ -141,7 +141,8 @@ sub new {
|
|||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments => {
|
||||
'use-physical-name' => { name => 'use_physical_name' }
|
||||
'use-physical-name' => { name => 'use_physical_name' },
|
||||
'add-fru-power' => { name => 'add_fru_power' }
|
||||
});
|
||||
|
||||
return $self;
|
||||
|
@ -175,6 +176,10 @@ Add literal description for instance value (used in filter, absent-problem and t
|
|||
|
||||
Use entPhysicalName OID instead of entPhysicalDescr.
|
||||
|
||||
=item B<--add-fru-power>
|
||||
|
||||
Check FRU power status.
|
||||
|
||||
=item B<--absent-problem>
|
||||
|
||||
Return an error if an entity is not 'present' (default is skipping) (comma seperated list)
|
||||
|
|
Loading…
Reference in New Issue