Hi Guys,
I’m adding manually new switches to the system, after some time, I see some linux machines which were added automatically, how is it possible? I checked DNS resolution and there is no duplication on the record
Please advise
Hi Guys,
I’m adding manually new switches to the system, after some time, I see some linux machines which were added automatically, how is it possible? I checked DNS resolution and there is no duplication on the record
Please advise
By the way if I delete these linux machines, they are added again automatically
In config.php file comment this line:
$config[‘discovery_modules’][‘discovery-arp’] = 1;
Or change/comment the
$config[‘snmp’][‘community’]
lines.
amaizenshtein,
This is all covered in the docs. Please read over https://docs.librenms.org/Extensions/Auto-Discovery/
https://docs.librenms.org/Support/Configuration/
Got it thanks
Here is my config, I did whatever is needed, but still some linux machines are discovered automatically
cat config.php
<?php ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config $config['db_host'] = 'localhost'; $config['db_port'] = '3306'; $config['db_user'] = 'librenms'; $config['db_pass'] = 'xxxxx'; $config['db_name'] = 'librenms'; $config['db_socket'] = ''; // This is the user LibreNMS will run as //Please ensure this user is created and has the correct permissions to your install $config['user'] = 'librenms'; ### Memcached config - We use this to store realtime usage $config['memcached']['enable'] = FALSE; $config['memcached']['host'] = "localhost"; $config['memcached']['port'] = 11211; ### Locations - it is recommended to keep the default #$config['install_dir'] = "/opt/librenms"; ### This should *only* be set if you want to *force* a particular hostname/port ### It will prevent the web interface being usable form any other hostname #$config['base_url'] = "http://librenms.company.com"; ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. #$config['rrdcached'] = "unix:/var/run/rrdcached.sock"; ### Default community #$config['snmp']['community'] = array("public"); ### Authentication Model $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth ### List of RFC1918 networks to allow scanning-based discovery #$config['nets'][] = "10.0.0.0/8"; #$config['nets'][] = "172.16.0.0/12"; #$config['nets'][] = "192.168.0.0/16"; # Uncomment the next line to disable daily updates #$config['update'] = 0; $config['fping'] = "/usr/sbin/fping";try adding this to your config
$config[‘autodiscovery’][‘xdp’] = false;
Thanks Kevin, let me check
Hi Kevin,
It didn’t help,from cron I can see the lines below, maybe there is some issue with discovery.php?
33 */6 * * * librenms /opt/librenms/discovery.php -h all >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1