mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Small fix
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
if ($device['os'] == 'ironware') {
|
||||
|
||||
$temp = snmpwalk_cache_multi_oid($device, 'snChasPwrSupplyTable', array(), 'FOUNDRY-SN-AGENT-MIB');
|
||||
$cur_oid = '.1.3.6.1.4.1.1991.1.1.1.2.2.1.4.1.';
|
||||
$cur_oid = '.1.3.6.1.4.1.1991.1.1.1.2.1.1.3.';
|
||||
|
||||
if (is_array($temp)) {
|
||||
//Create State Index
|
||||
@@ -21,7 +21,7 @@ if ($device['os'] == 'ironware') {
|
||||
$state_index_id = create_state_index($state_name);
|
||||
|
||||
//Create State Translation
|
||||
if ($state_index_id) {
|
||||
if ($state_index_id !== null) {
|
||||
$states = array(
|
||||
array($state_index_id,'other',0,1,3) ,
|
||||
array($state_index_id,'normal',0,2,0) ,
|
||||
|
||||
Reference in New Issue
Block a user