Health-check command is missing

Hello there!
We recently upgraded our minion to the latest version .28 and now we cannot find the command health-check.
Has something change ?
Thank you in advance !

Regarding

shouldn’t it be opennms:health-check?

1 Like

yes :nerd_face: , we 've tried opennms:health-check and still can’t find it

I wasn’t able to test Minion in 28.0.0 yet due to https://issues.opennms.org/browse/NMS-13347
Maybe there are other issues that causes your missing health check?

health-tab tab :smiley:

If it’s really not there, I recommend you stop OpenNMS, run $OPENNMS_HOME/bin/fix-karaf-setup.sh, answer y, and then start OpenNMS and check again.

12:18 PM

the problem is about minion ! :thinking:we re trying to install commands in minion and receive these :admin@minion()> feature:install activemq
Error executing command: Error:
Error downloading mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.1
Error downloading mvn:org.apache.activemq/activemq-karaf/5.14.5
Error downloading mvn:commons-codec/commons-codec/1.9
Error downloading mvn:org.apache.activemq/activeio-core/3.1.4
Error downloading mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.4.0
Error downloading mvn:com.fasterxml.jackson.core/jackson-databind/2.6.3
Error downloading mvn:org.scala-lang/scala-library/2.11.0
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt-spring31/1.9.2_1
Error downloading mvn:org.apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0
Error downloading mvn:com.fasterxml.jackson.core/jackson-core/2.6.3
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.7_6
Error downloading mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.3
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.9.2_1
Error downloading mvn:org.codehaus.jettison/jettison/1.3.8
Error downloading mvn:org.apache.aries/org.apache.aries.util/1.1.0
Error downloading mvn:joda-time/joda-time/2.9
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.4.8_1
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_5
admin@minion()> feature:install activemq-broker
Error executing command: Error:
Error downloading mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.4.0
Error downloading mvn:org.codehaus.jettison/jettison/1.3.8
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt-spring31/1.9.2_1
Error downloading mvn:com.fasterxml.jackson.core/jackson-core/2.6.3
Error downloading mvn:org.apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0
Error downloading mvn:org.scala-lang/scala-library/2.11.0
Error downloading mvn:org.apache.aries/org.apache.aries.util/1.1.0
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.4.8_1
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.9.2_1
Error downloading mvn:joda-time/joda-time/2.9
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_5
Error downloading mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.3
Error downloading mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.1
Error downloading mvn:org.apache.activemq/activeio-core/3.1.4
Error downloading mvn:org.apache.activemq/activemq-karaf/5.14.5
Error downloading mvn:commons-codec/commons-codec/1.9
Error downloading mvn:com.fasterxml.jackson.core/jackson-databind/2.6.3
Error downloading mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.7_6

Why are you trying to feature:install activemq ? You should never have to do that.

@dino2gnt here : etc/org.apache.karaf.features.cfg we put the features in this .cfg but the minion cannot load them.
In gereral, the main problem is that the minion cannot start the features after the restarting :thinking:
we use this how-to guide :Installing Minion
Do you think it’s something that can be fixed by you ?

The question I am really asking is “why are you making changes to the installed features at all?”

Maybe we should take a few steps back and you explain what you’re actually trying to fix and the steps you’ve taken to attempt to do so.

If you have time, take a look at this channel:
https://chat.opennms.com/opennms/channels/opennms-minions
to mikepap1’s replies
We’re colleagues on the same team and yesterday he sent some logs and more details about this topic on your Minion issues channel.

The log posted in the Minion channel by your colleague very clearly contains:

Caused by: java.lang.OutOfMemoryError: Java heap space

How much heap do you have allocated to this minion? (Hint: it’s set in /etc/sysconfig/minion)

Looks like you need to increase it.

@dino2gnt We use the default opennms (v.28.0.0)memory 2 gigs . Also, today, we tested downgrading minion to an older version (version 26 ) and while at first everything seemed to be OK, after 12 hours, opennms stopped bringing events.
Furthermore, we’ve increased the opennms memory to 4 gigs
and we ran the ./fix-karaf-setup.sh command, but it still crashes.
Actually, we have to handle 50000 snmp traps per hour.
How much memory do you think we need for that and how we could calculate it based on incoming events?