Juniper loss not polling correctly

We’ve started using junipers rpm-probe feature to monitor customers links on SRX devices. This works great for us in order to produce icmp graphs under the new SLA tab.

However under Health → Loss, all graphs show 0 even in cases where we have experienced loss on probe.

Digging further into this it seems that the conversion of ascii to decimal is not quite right when polling over SNMP.

On an SRX I have the following configuration:

services {
    rpm {
        probe voip-failover {
            test icmp-test {
                target address;
                probe-count 3;
                probe-interval 15;
                test-interval 1;
                thresholds {
                    successive-loss 3;
                    total-loss 3;
                destination-interface ge-0/0/3.0;

Running the snmp walk for the specific MIB both default decimal and ascii

> show snmp mib walk jnxRpmResSumPercentLost
jnxRpmResSumPercentLost. = 0
jnxRpmResSumPercentLost. = 0
jnxRpmResSumPercentLost. = 185147

> show snmp mib walk jnxRpmResSumPercentLost ascii
jnxRpmResSumPercentLost."voip-failover"."icmp-test".1 = 0
jnxRpmResSumPercentLost."voip-failover"."icmp-test".2 = 0
jnxRpmResSumPercentLost."voip-failover"."icmp-test".4 = 185128

Where we see the issue is from the output in LibreNMS:

SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? ["loss",78] 0.55ms] 

SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-OUQnte' '-M' '/srv/librenms/mibs:/srv/librenms/mibs/junos' 'udp:HOSTNAME:161' '.' '.' '.']

.*.4.1.26*.*.*.*.*.*.*.*.*.*.115.116 = No Such Object available on this agent at this OID
.*.4.1.26*.*.*.*.*.*.*.*.*.*.*.* = No Such Object available on this agent at this OID
.*.4.1.26*.*.*.*.*.*.*.*.*.115.116.115 = No Such Object available on this agent at this OID

Checking (snmp) loss voip-failover.icmp-test.currentTest Probe Loss... 
Checking (snmp) loss voip-failover.icmp-test.lastCompletedTest Probe Loss... 
Checking (snmp) loss voip-failover.icmp-test.allTests Probe Loss... 



The ascii to decimal conversion appears to mess this up.

What is .

should be according to the SRX:


From running decimal to ascii conversions I can see that LibreNMS pulls out:
1181111051124510297105108111118101114461059910911245116101115116469911711411410111011684101115116 which is voip-failover.icmp-test.currentTest in ascii.

It seems that when it comes to polling that, the SRX does not like it at all possibly due to the inclusion of currentTest within the OID string.

snmpwalk -v2c -On -c <community> -M /opt/librenms/mibs:/opt/librenms/mibs/junos .
. = No Such Object available on this agent at this OID

That’s as far as I have got. I’ve also tested this against an MX router with same results

Component | Version
--------- | -------
LibreNMS  | 21.7.0-63-ga7f9c97ae
DB Schema | 2021_25_01_0127_create_isis_adjacencies_table (213)
PHP       | 7.4.3
Python    | 3.8.10
MySQL     | 10.3.30-MariaDB-0ubuntu0.20.04.1
RRDTool   | 1.7.2
SNMP      | NET-SNMP 5.8

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

Juniper SRX:

> show version
Hostname: xxxx
Model: srx300
Junos: 19.2R2.7
JUNOS Software Release [19.2R2.7]

Just wondering/hoping someone else has come into this issue, or where to go next. It would be nice to have the loss polling in LibreNMS.


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

Fix is coming for this issue in New OS - Ciena RLS 6500 by h-barnhart · Pull Request #15909 · librenms/librenms · GitHub

1 Like