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:
Tony Murray
2022-04-04 10:41:18 -05:00
committed by GitHub
parent 96b708a10e
commit 75ba74fe5b
13 changed files with 167 additions and 187 deletions

View File

@@ -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;
}
}