mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	fix warning limit for last commit
git-svn-id: http://www.observium.org/svn/observer/trunk@1196 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -117,7 +117,7 @@ if ($device['os'] == "netmanplus")
 | 
				
			|||||||
      $descr = "Battery" . (count(explode("\n",$oids)) == 1 ? '' : ' ' . ($current_id+1));
 | 
					      $descr = "Battery" . (count(explode("\n",$oids)) == 1 ? '' : ' ' . ($current_id+1));
 | 
				
			||||||
      $type = "netmanplus";
 | 
					      $type = "netmanplus";
 | 
				
			||||||
      $index = 500+$current_id;
 | 
					      $index = 500+$current_id;
 | 
				
			||||||
      discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, $current);
 | 
					      discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, NULL, $current);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -132,7 +132,7 @@ if ($device['os'] == "netmanplus")
 | 
				
			|||||||
    $type       = "netmanplus";
 | 
					    $type       = "netmanplus";
 | 
				
			||||||
    $precision  = 1;
 | 
					    $precision  = 1;
 | 
				
			||||||
    $index      = $i;
 | 
					    $index      = $i;
 | 
				
			||||||
    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, $current);
 | 
					    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, NULL, $current);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $oids = trim(snmp_walk($device, "1.3.6.1.2.1.33.1.3.2.0", "-OsqnU"));
 | 
					  $oids = trim(snmp_walk($device, "1.3.6.1.2.1.33.1.3.2.0", "-OsqnU"));
 | 
				
			||||||
@@ -146,7 +146,7 @@ if ($device['os'] == "netmanplus")
 | 
				
			|||||||
    $type       = "netmanplus";
 | 
					    $type       = "netmanplus";
 | 
				
			||||||
    $precision  = 1;
 | 
					    $precision  = 1;
 | 
				
			||||||
    $index      = 100+$i;
 | 
					    $index      = 100+$i;
 | 
				
			||||||
    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, $current);
 | 
					    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, NULL, $current);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  $oids = trim(snmp_walk($device, "1.3.6.1.2.1.33.1.5.2.0", "-OsqnU"));
 | 
					  $oids = trim(snmp_walk($device, "1.3.6.1.2.1.33.1.5.2.0", "-OsqnU"));
 | 
				
			||||||
@@ -160,7 +160,7 @@ if ($device['os'] == "netmanplus")
 | 
				
			|||||||
    $type       = "netmanplus";
 | 
					    $type       = "netmanplus";
 | 
				
			||||||
    $precision  = 1;
 | 
					    $precision  = 1;
 | 
				
			||||||
    $index      = 200+$i;
 | 
					    $index      = 200+$i;
 | 
				
			||||||
    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, $current);
 | 
					    echo discover_current($valid_current,$device, $current_oid, $index, $type, $descr, $precision, NULL, NULL, NULL, $current);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user