I currently have java tomcat8 running on a custom folder /opt. How do I configure check-process to monitor and check if tomcat8 is loaded ?
ps -ef reports
usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
···
On Friday, October 7, 2016 at 1:54:09 PM UTC+5:30, Siddharth Jagtiani wrote:
I currently have java tomcat8 running on a custom folder /opt. How do I configure check-process to monitor and check if tomcat8 is loaded ?
For java processes I found configuring process checks a bit trickier than usual. For example I use the following to check for a running Elasticsearch instance.
'check-process.rb --pattern “/usr/lib/jvm/java-7-openjdk-amd64//bin/java .* -cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.5.jar”
``
You could try the following. I admit this is not very precise, but from a cursory look these seem to be the attributes most closely related to Tomcat itself in your PS output.
‘check-process.rb --pattern “/usr/bin/java * -Dcatalina.base=/opt/tomcat8 *”’
``
···
On Friday, October 7, 2016 at 10:25:27 AM UTC+2, Siddharth Jagtiani wrote:
usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
I currently have java tomcat8 running on a custom folder /opt. How do I configure check-process to monitor and check if tomcat8 is loaded ?
I am getting the following error
CheckProcess CRITICAL: Found 0 matching processes; cmd //usr/bin/java * -Dcatalina.base=/opt/tomcat8 */
My config.json has the following check
“command”: “check-process.rb --pattern "/usr/bin/java * -Dcatalina.base=/opt/tomcat8 *" -W 1”,
My ps -ef | grep tomcat gives the following
ubuntu 23100 1 0 Oct07 ? 00:01:32 /usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
···
On Friday, October 7, 2016 at 5:16:35 PM UTC+5:30, Alexander Skiba wrote:
For java processes I found configuring process checks a bit trickier than usual. For example I use the following to check for a running Elasticsearch instance.
'check-process.rb --pattern “/usr/lib/jvm/java-7-openjdk-amd64//bin/java .* -cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.5.jar”
``
You could try the following. I admit this is not very precise, but from a cursory look these seem to be the attributes most closely related to Tomcat itself in your PS output.
‘check-process.rb --pattern “/usr/bin/java * -Dcatalina.base=/opt/tomcat8 *”’
``
On Friday, October 7, 2016 at 10:25:27 AM UTC+2, Siddharth Jagtiani wrote:
usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
I currently have java tomcat8 running on a custom folder /opt. How do I configure check-process to monitor and check if tomcat8 is loaded ?
Fixed it on stackoverflow
···
On Saturday, October 8, 2016 at 4:52:16 PM UTC+5:30, Siddharth Jagtiani wrote:
I am getting the following error
CheckProcess CRITICAL: Found 0 matching processes; cmd //usr/bin/java * -Dcatalina.base=/opt/tomcat8 */
My config.json has the following check
“command”: “check-process.rb --pattern "/usr/bin/java * -Dcatalina.base=/opt/tomcat8 *" -W 1”,
My ps -ef | grep tomcat gives the following
ubuntu 23100 1 0 Oct07 ? 00:01:32 /usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
On Friday, October 7, 2016 at 5:16:35 PM UTC+5:30, Alexander Skiba wrote:
For java processes I found configuring process checks a bit trickier than usual. For example I use the following to check for a running Elasticsearch instance.
'check-process.rb --pattern “/usr/lib/jvm/java-7-openjdk-amd64//bin/java .* -cp :/usr/share/elasticsearch/lib/elasticsearch-1.4.5.jar”
``
You could try the following. I admit this is not very precise, but from a cursory look these seem to be the attributes most closely related to Tomcat itself in your PS output.
‘check-process.rb --pattern “/usr/bin/java * -Dcatalina.base=/opt/tomcat8 *”’
``
On Friday, October 7, 2016 at 10:25:27 AM UTC+2, Siddharth Jagtiani wrote:
usr/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -classpath /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8 -Dcatalina.home=/opt/tomcat8 -Djava.io.tmpdir=/opt/tomcat8/temp org.apache.catalina.startup.Bootstrap start
I currently have java tomcat8 running on a custom folder /opt. How do I configure check-process to monitor and check if tomcat8 is loaded ?
In this given post, it is clarifying an actual process so that they can easily monitor any errors if generate in their platforms. For recovering these errors they must need an actual solution provided by Dart vs Javascript that would be significant for them.