Re: Antw: Re: Error: Could not find or load main class org.opennms.netmgt.poller.nrpe.CheckNrpe
Jonathan Heard <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Thanh You still need to include the full classpath as per my example - The 'help' output I included doesn't actually give you the correct java command in your context... So - From the directory where all your OpenNMS JAR files are - you need to run: /java -cp org.opennms.features.poller.monitors.core-20.1.0.jar org.opennms.netmgt.poller.monitors.nrpe.CheckNrpe //-t 1 -H xxx.xxx.xxxx.xxxx -c _NRPE_CHECK/ Please bear in mind that I know nothing about what this class does or how to drive it so you'll need to check if your -t -H and -c options are set correctly... Hope this helps Jonathan On 15/11/17 10:05, Dinh-Thanh Ngo wrote: > Hi Jonathan, > with the command see below , I get the Erro > java CheckNrpe -t 1 -H xxx.xxx.xxx.xxxx -c _NRPE_CHECK -P 5666 > Error: Could not find or load main class CheckNrpe > have you idea ? > Thanhs > Thanh > > >>> Jonathan Heard <[email protected]> 15.11.2017 10:39 >>> > > > > Hi Thanh, > > You've got the wrong jar file... My version is different from yours > but this example should get you to the right place if you just change > the version number to match yours: > > java -cp org.opennms.features.poller.monitors.core-20.0.2.jar > org.opennms.netmgt.poller.monitors.nrpe.CheckNrpe -h > > Usage: java CheckNrpe -H <host> [-p <port>] [-P <padding>] \ > [-t <timeout>] [-c <command>] [-a <arglist ...>] > Note: if the -a option is specified it *must* be the last option > > HTH > Jonathan > On 15/11/17 09:28, Dinh-Thanh Ngo wrote: >> Hi everyone, >> I have execute below the command and get Error see below >> java -cp opennms-services-20.1.0.jar >> org.opennms.netmgt.poller.nrpe.CheckNrpe -t 1 -H xxx.xxx.xxxx.xxxx -c >> _NRPE_CHECK >> Error: Could not find or load main class >> org.opennms.netmgt.poller.nrpe.CheckNrpe >> has everyone idea about problem >> Thanks >> Thanh >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org!http://sdm.link/slashdot >> >> >> _______________________________________________ >> Please read the OpenNMS Mailing List FAQ: >> http://www.opennms.org/index.php/Mailing_List_FAQ >> >> opennms-discuss mailing list >> >> To *unsubscribe* or change your subscription options, see the bottom of this page: >> https://lists.sourceforge.net/lists/listinfo/opennms-discuss > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ > > opennms-discuss mailing list > > To *unsubscribe* or change your subscription options, see the bottom of this page: > https://lists.sourceforge.net/lists/listinfo/opennms-discuss ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss