mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed typo jnxPowerSupplyOK (#12556)
* Fixed typo jnxPowerSupplyOK * Fixed unit tests for jnxPowerSupplyOK
This commit is contained in:
@@ -71,7 +71,7 @@ return [
|
||||
'JUNIPER-LDP-MIB::jnxLdpSesDown' => \LibreNMS\Snmptrap\Handlers\JnxLdpSesDown::class,
|
||||
'JUNIPER-LDP-MIB::jnxLdpSesUp' => \LibreNMS\Snmptrap\Handlers\JnxLdpSesUp::class,
|
||||
'JUNIPER-MIB::jnxPowerSupplyFailure' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyFailure::class,
|
||||
'JUNIPER-MIB::jnxPowerSupplyOk' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyOk::class,
|
||||
'JUNIPER-MIB::jnxPowerSupplyOK' => \LibreNMS\Snmptrap\Handlers\JnxPowerSupplyOk::class,
|
||||
'JUNIPER-VPN-MIB::jnxVpnIfDown' => \LibreNMS\Snmptrap\Handlers\JnxVpnIfDown::class,
|
||||
'JUNIPER-VPN-MIB::jnxVpnIfUp' => \LibreNMS\Snmptrap\Handlers\JnxVpnIfUp::class,
|
||||
'JUNIPER-VPN-MIB::jnxVpnPwDown' => \LibreNMS\Snmptrap\Handlers\JnxVpnPwDown::class,
|
||||
|
@@ -62,7 +62,7 @@ SNMPv2-MIB::snmpTrapEnterprise.0 JUNIPER-CHASSIS-DEFINES-MIB::jnxProductNameMX96
|
||||
$trapText = "$device->hostname
|
||||
UDP: [$device->ip]:49716->[10.0.0.1]:162
|
||||
DISMAN-EVENT-MIB::sysUpTimeInstance 470:23:25:41.21
|
||||
SNMPv2-MIB::snmpTrapOID.0 JUNIPER-MIB::jnxPowerSupplyOk
|
||||
SNMPv2-MIB::snmpTrapOID.0 JUNIPER-MIB::jnxPowerSupplyOK
|
||||
JUNIPER-MIB::jnxContentsContainerIndex.2.4.0.0 2
|
||||
JUNIPER-MIB::jnxContentsL1Index.2.4.0.0 4
|
||||
JUNIPER-MIB::jnxContentsL2Index.2.4.0.0 0
|
||||
@@ -75,6 +75,6 @@ SNMPv2-MIB::snmpTrapEnterprise.0 JUNIPER-CHASSIS-DEFINES-MIB::jnxProductNameMX96
|
||||
$message = 'Power Supply PEM 4 is OK';
|
||||
\Log::shouldReceive('event')->once()->with($message, $device->device_id, 'trap', 1);
|
||||
|
||||
$this->assertTrue(Dispatcher::handle($trap), 'Could not handle JnxPowerSupplyOk');
|
||||
$this->assertTrue(Dispatcher::handle($trap), 'Could not handle JnxPowerSupplyOK');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user