Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

How to troubleshoot minion registration?

0 votes
24 views
I need help in troubleshooting a new and first minion. I've tried the minion:ping and all clear there:

admin@minion> minion:ping
Connecting to ReST...
OK
Connecting to Broker...
OK

Also, I've run tcpdump and can see the communication in both directions from both the Horizon server and the minion. I have also changed the minion password on one side, confirmed that it broke connection, changed it back and saw that the pings work again. I have rebooted both sides testing the order of boot: first boot one side first, then try booting the other side first.

Both the horizon server and the minion are running the same version of the stable code base.

Server rpm: opennms-20.0.0-1.noarch

Minion rpm: opennms-minion-20.0.0-1.noarch

I have no minions listed in the "Manage Minions" portion of the admin page of the UI.

Where else should I be checking?
OpenNMS version
20.0.0
Java version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
Operating system
CentOS Linux release 7.3.1611 (Core)
PostgreSQL version
postgresql-server-9.2.18-1.el7.x86_64
asked Jun 28 by joelcolvin (150 points)

1 Answer

0 votes

To get the minion to work please check the following things:

* OpenNMS Horizon is listening on TCP 61616
* Create a user “minion” in the WebUI with a password, e.g. “foobarpass” and you have assigned the role “ROLE_MINION” to the “minion” user
* Added the credentials to the Minion in the Karaf shell with [1]
* The minion:ping command tests the connection to the broker-url and ReST API defined in the http-url
* Make sure the http-url and the broker-url is reachable from your Minion to the OpenNMS Horizon instance, you can use telnet or nmap -p [61616 | 8980]
* In the Admin section of the Web UI under “Configure OpenNMS -> Manage Minion” your Minion should appear with the assigned location and the “Last Updated” should be a current time stamp.

answered Jun 28 by indigo (11,140 points)
...