mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #941 from f0o/issue-926
Set defaults for AddHost on xDP discovery
This commit is contained in:
@@ -39,7 +39,7 @@ function discover_new_device($hostname)
|
|||||||
|
|
||||||
if ( match_network($config['nets'], $ip) )
|
if ( match_network($config['nets'], $ip) )
|
||||||
{
|
{
|
||||||
$remote_device_id = addHost ($dst_host,'');
|
$remote_device_id = addHost ($dst_host, '', '161', 'udp', '0', $config['distributed_poller_group']);
|
||||||
if ($remote_device_id) {
|
if ($remote_device_id) {
|
||||||
$remote_device = device_by_id_cache($remote_device_id, 1);
|
$remote_device = device_by_id_cache($remote_device_id, 1);
|
||||||
echo("+[".$remote_device['hostname']."(".$remote_device['device_id'].")]");
|
echo("+[".$remote_device['hostname']."(".$remote_device['device_id'].")]");
|
||||||
|
|||||||
Reference in New Issue
Block a user