@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | use LibreNMS\Util\IP; |
19 | 19 | use LibreNMS\Util\IPv6; |
20 | 20 | |
21 | +/** |
|
22 | + * @param string $hostname |
|
23 | + */ |
|
21 | 24 | function discover_new_device($hostname, $device = '', $method = '', $interface = '') |
22 | 25 | { |
23 | 26 | d_echo("discovering $hostname\n"); |
@@ -206,6 +209,9 @@ discard block |
||
206 | 209 | //end discover_device() |
207 | 210 | |
208 | 211 | // Discover sensors |
212 | +/** |
|
213 | + * @param string $oid |
|
214 | + */ |
|
209 | 215 | function discover_sensor(&$valid, $class, $device, $oid, $index, $type, $descr, $divisor = 1, $multiplier = 1, $low_limit = null, $low_warn_limit = null, $warn_limit = null, $high_limit = null, $current = null, $poller_type = 'snmp', $entPhysicalIndex = null, $entPhysicalIndex_measured = null, $user_func = null, $entity_link_type = null, $entity_link_index = 0) |
210 | 216 | { |
211 | 217 | $low_limit = set_null($low_limit); |
@@ -1047,7 +1053,7 @@ discard block |
||
1047 | 1053 | * @param int $index The index of the current sensor |
1048 | 1054 | * @param array $discovery_data The discovery data for the current sensor |
1049 | 1055 | * @param array $pre_cache all pre-cached snmp data |
1050 | - * @param mixed $default The default value to return if data is not found |
|
1056 | + * @param string|null $default The default value to return if data is not found |
|
1051 | 1057 | * @return mixed |
1052 | 1058 | */ |
1053 | 1059 | function dynamic_discovery_get_value($name, $index, $discovery_data, $pre_cache, $default = null) |