Wait until the monitors are loaded before processing RPC requests

Description

On startup, it is possible that poll requests via the RPC module are processed before the monitors are loaded.

This leads to errors of the form:

opennms> poller:poll -l MINION org.opennms.netmgt.poller.monitors.SnmpMonitor 127.0.0.1 ................. Service Unknown on 127.0.0.1 using org.opennms.netmgt.poller.monitors.SnmpMonitor Reason: No monitor found with class name 'org.opennms.netmgt.poller.monitors.SnmpMonitor'.

Subsequent requests work with:

opennms> poller:poll -l MINION org.opennms.netmgt.poller.monitors.SnmpMonitor 127.0.0.1 Service Up on 127.0.0.1 using org.opennms.netmgt.poller.monitors.SnmpMonitor: response-time: 14.0539

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Jesse White July 31, 2019 at 3:11 PM

As alluded, because this case returns "Unknown" it won't cause a false positive outage.

This does mean that a monitor that does not exist will continue to report "unknown" as never cause an outage though.

Seth Leger November 30, 2016 at 3:49 PM

Because this returns poll status "Unknown", it should not cause false positive outages or anything that severe, is that correct?

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created September 19, 2016 at 1:25 PM
Updated March 3, 2020 at 3:37 PM

Flag notifications