LibreNMS Will Not Add My MacBook Pro As A Device

When I attempt to add my MacBook Pro to LibreNMS, I get the following messages:

Adding host 192.168.8.26 community XXXXXXXXXXXXXX port 161 using udp
Could not connect to 192.168.8.26, please check the snmp details and snmp reachability
SNMP v2c: No reply with community XXXXXXXXXXXXX

Validate.php gives OK on all lines

If you are having troubles with discovery/polling include the pastebin output of:

./discovery.php -h HOSTNAME -d | ./pbin.sh

[email protected]:/opt/librenms# ./discovery.php -h 192.168.8.26 -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: franksed
private: 1
expire: 0
https://p.libren.ms/view/d33c82ab

LibreNMS Discovery

SQL[[1;33mselect `migration` from `migrations` order by `id` desc limit 1 [0;33m[][0m 1.26ms]
 
SQL[[1;33mselect count(*) as aggregate from `migrations` [0;33m[][0m 0.96ms]
 
SQL[[1;33mselect version() [0;33m[][0m 0.86ms]
 
===========================================
Component | Version
--------- | -------
LibreNMS  | 22.10.0 (2022-10-29T01:28:22+00:00)
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (248)
PHP       | 8.1.2-1ubuntu2.6
Python    | 3.10.6
Database  | MariaDB 10.6.7-MariaDB-2ubuntu1.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================
DEBUG!
Updating os_def.cache  
SQL[[1;33mSELECT * FROM `devices` WHERE disabled = 0 AND `hostname` LIKE 'XLHou008026' ORDER BY device_id DESC [0;33m[][0m 0.76ms]
 
./discovery.php XLHou008026 2022-10-31 21:02:29 - 0 devices discovered in 0.388 secs  
 
[0;36mSNMP[0m [0/0.00s]:  
[1;33mSQL[0m [5/0.04s]: Select[5/0.04s]  
[0;32mRRD[0m [0/0.00s]:   

Paste endpoint: https://p.libren.ms/api/create
title:
name: franksed
private: 1
expire: 0
https://p.libren.ms/view/c6b81525

LibreNMS Discovery
SQL[[1;33mselect `migration` from `migrations` order by `id` desc limit 1 [0;33m[][0m 0.45ms]
 
SQL[[1;33mselect count(*) as aggregate from `migrations` [0;33m[][0m 0.33ms]
 
SQL[[1;33mselect version() [0;33m[][0m 0.31ms]
 
===========================================
Component | Version
--------- | -------
LibreNMS  | 22.10.0 (2022-10-29T01:28:22+00:00)
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (248)
PHP       | 8.1.2-1ubuntu2.6
Python    | 3.10.6
Database  | MariaDB 10.6.7-MariaDB-2ubuntu1.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================
DEBUG!
Updating os_def.cache  
SQL[[1;33mSELECT * FROM `devices` WHERE disabled = 0 AND `hostname` LIKE '192.168.8.26' ORDER BY device_id DESC [0;33m[][0m 0.87ms]
 
./discovery.php 192.168.8.26 2022-10-31 21:03:51 - 0 devices discovered in 0.367 secs  
 
[0;36mSNMP[0m [0/0.00s]:  
[1;33mSQL[0m [5/0.03s]: Select[5/0.03s]  
[0;32mRRD[0m [0/0.00s]:   

./poller.php -h HOSTNAME -r -f -d | ./pbin.sh

[email protected]:/opt/librenms# ./poller.php -h XLHou008026 -r -f -d ./pbin.sh
LibreNMS Poller
SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 1.89ms]
 
SQL[select count(*) as aggregate from `migrations` [] 2.22ms]
 
SQL[select version() [] 2.78ms]
 
===========================================
Component | Version
--------- | -------
LibreNMS  | 22.10.0 (2022-10-29T01:28:22+00:00)
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (248)
PHP       | 8.1.2-1ubuntu2.6
Python    | 3.10.6
Database  | MariaDB 10.6.7-MariaDB-2ubuntu1.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================
DEBUG!
Updating os_def.cache  
Starting polling run:

SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = 'XLHou008026' ORDER BY `device_id` ASC [] 6.63ms]
 
./poller.php XLHou008026 2022-10-31 21:29:09 - 0 devices polled in 0.948 secs  

SNMP [0/0.00s]:  
SQL [5/0.15s]: Select[5/0.15s]

Obviously something is wrong with the SNMP service on the device you are trying to add. Doublecheck SNMP settings and verify you can run a snmpwalk against it.

Thank you for your help. Following your comment, I discovered that the SNMP process did not start automatically following a reboot. I created a script to reload the process upon boot and LibreNMS connected immediately.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.