Ping stops when device snmp not response

When asking for help and support, please provide as much information as possible. This should include:

If it’s an issue with the WebUI then please consider including the browser version you are using.

If you need to post any text longer than a few lines, please use a pastebin service such as https://p.libren.ms using non-expiring pastes.

  • Steps to reproduce an issue.
    ./snmp-scan.py device-ip/32
    the device snmp became unresponsive. but fping is successful.
    once turn off snmp check for the device on librenms, then start collecting ping data.

  • The output of ./validate.php

 librenms]# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.39-66-gb881cbe
DB Schema | 250
PHP       | 7.0.30
MySQL     | 5.5.56-MariaDB
RRDTool   | 1.6.0
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.6.5
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

expected behavior should be:
librenms collecting data via snmp and ping if snmp is responsive;
librenms collecting statistics of ping if snmp is not responsive.

I am not sure if it is bug or designed. But I think we should show ping information even snmp is not working.

snmp-scan.py does not collect fping statistics. It only adds devices that respond to snmp by default. There is a command line switch to add icmp only devices.

@murrant,
sorry that maybe I didn’t describe clearly.

the devices are running snmp fine while scanning. that is why it is added into the librenms. However, after sometime, the device snmp has became unresponsive for unknown reason although it is still ping-able. then it is noticed that no graph of the devices are generated, including ICMP, since the device has changed down from snmp check.

we are suspecting that either librenms stop collecting ping data or stop ping the device in the scenario. we would like to continue pinging even snmp has been stop on the device.
Look through the docs but cannot find any configs or discussion for that situation.

Thanks and regards,
Roger

If the device is down from snmp then we don’t record any further data, we could possibly move the icmp response info to another part of the code to continue to record that information.

The alternative is to use the service checks and use the check_ping.

If snmp is down, shouldn’t we treat it just like snmp is disabled?

That’s certainly an option yes, which I think in essence is only the recording of icmp stats.

If snmp is down, shouldn’t we treat it just like snmp is disabled?

Yes, it would be great if this can be implemented.
Thanks.