Page 1 of 1
Apache Tomcat wizard configuration problem
Posted: Tue Jun 18, 2019 1:58 am
by Frédéric GRANAT
Hi,
I'm trying to configure the apache tomcat wizard with JMX (without agent on the monitoring host) .
I need the following informations :
Is my server remote-JMX-capable ?
Service URL
Tomcat username/password
About service URL, I saw in "How to monitor Apache Tomcat with NagiosXI" :
Code: Select all
service:jmx:rmi:///jndi/rmi://<host>:<port>/jmxrmi
Is it the correct url and where to find the port ?
Where to find these informations ?
Re: Apache Tomcat wizard configuration problem
Posted: Tue Jun 18, 2019 10:04 am
by lmiltchev
This would depend on how you installed and configured Tomcat. Nagios XI provides a wizard for monitoring Tomcat, but the installation and configuration of Tomcat is out of scope of Nagios support. Having said that, you could run something like this to find the PID of your application:
or
then check the ports:
where you substitute <PID> with the actual tomcat PID.
One my "test" tomcat box, I am using port 9090, so my service URL is:
Code: Select all
service:jmx:rmi:///jndi/rmi://192.168.x.x:9090/jmxrmi
Hope this helps.
Re: Apache Tomcat wizard configuration problem
Posted: Thu Jun 20, 2019 2:11 am
by Frédéric GRANAT
Hi,
Thanks, but I'm running apache on Windows.
Could you please provide the same informations for that OS ?
Re: Apache Tomcat wizard configuration problem
Posted: Thu Jun 20, 2019 9:56 am
by swolf
Do you have JConsole installed on that windows machine? If so, you can connect to it as a process and you should be able to find the remote Service URL from that browser.
EDIT: I should mention that even if your server isn't currently remote-JMX-capable, you should be able to configure it to enable that. There are quite a few guides available for this,
this one seems to be accurate to me.
Re: Apache Tomcat wizard configuration problem
Posted: Thu Jun 20, 2019 10:14 am
by Frédéric GRANAT
Hi,
Do you have JConsole installed on that windows machine?
=> No
Re: Apache Tomcat wizard configuration problem
Posted: Thu Jun 20, 2019 4:14 pm
by ssax
Then you will need to do this (same one that swolf posted after reading his):
Code: Select all
https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=439649886
It's the same process as long as the ports are available on the host and open in the windows firewall/network firewall path.