Small fix

This commit is contained in:
Rosiak
2016-03-04 06:49:04 +01:00
parent 7e851ad999
commit 5a4334daa5

View File

@@ -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) ,