mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Migrate addhost.php to lnms device:add (#13870)
* Migrate addhost.php to lnms device:add Have snmp-scan.py call lnms device:add (make exit codes line up so this works) Fix issue with ping only devices trying to detect os via snmp Reorder options in device:add help and improve formatting Update docs to remove references to addhost.php Fix a bit of code that was in functional code * fixes * fix snmp version message
This commit is contained in:
@@ -33,6 +33,7 @@ use LibreNMS\Config;
|
||||
use LibreNMS\Exceptions\InvalidOidException;
|
||||
use LibreNMS\Interfaces\Discovery\DiscoveryItem;
|
||||
use LibreNMS\OS;
|
||||
use LibreNMS\Util\Compare;
|
||||
|
||||
class YamlDiscovery
|
||||
{
|
||||
@@ -352,7 +353,7 @@ class YamlDiscovery
|
||||
}
|
||||
}
|
||||
|
||||
if (compare_var($tmp_value, $skip_value['value'], $op)) {
|
||||
if (Compare::values($tmp_value, $skip_value['value'], $op)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user