I’m a new user and just deployed a fresh install of LibreNMS today on CentOS 7. I can’t seem to add any of the network devices I need to monitor. LibreNMS comes back with the error “Could not ping 10.0.100.1”. I’ve tried other hosts on the network as well with the same result.
Funny thing is I can ping all these devices from the LibreNMS shell just fine along with performing SNMPwalks. Is there a setting I missed somewhere?
./validate.php
====================================
Component
Version
LibreNMS
1.33-18-g1dfcde3
DB Schema
215
PHP
7.1.10
MySQL
5.5.56-MariaDB
RRDTool
1.4.8
SNMP
NET-SNMP 5.7.2
====================================
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX] You can add a device in the webui or with ./addhost.php
Not sure if it’s cool to continue to use this thread, but I was able to ping/fping successfully from the shell before I made that change. Both before and after adding that I still have the same issue. My validate.php results were the same as Joshua_B.
If you have devices suddenly showing as down, you need to set $config[‘fping’] = ‘/usr/sbin/fping’; or $config[‘fping’] = ‘/usr/bin/fping’; in your config.php and it will start working again. We fixed a bug where fping always showed up even if the command failed.(edited)
@Kevin_Krumm Thanks! So this fixed the discovery/adding of the device from the shell with ./addhost -b host, but oddly enough I still can’t add through the web gui. I’m fine adding from the shell, but curious if you know why the gui side would still fail?
Mine also adds VIA shell, but no SNMP connection is added. Manually adding SNMP doesn’t work either.
Running snmpwalk using the hostname pulls OIDs from the target without a problem in the shell.
Likely. My expectations are that I should a) be able to add hosts (and begin collecting their SNMP stats) manually and b) run discoveries manually. Am I on track with those?
@Kevin_Krumm Correct. In the web ui it gives the same message as before “could not ping xxx” and fails to add the device. Adding via shell is working perfectly now.