Skip to main content
Question

Start up script to check status of jamf.tomcat7

  • March 10, 2016
  • 4 replies
  • 23 views

Forum|alt.badge.img+1

OK JAMF nation, New to JAMF & Redhat. Do you know of a shell script that will check the status of jamf.tomcat7 take the parameter of start, stop restart and report back status after it runs.

4 replies

Forum|alt.badge.img+15
  • Contributor
  • March 10, 2016

If I recall correctly,

/etc/init.d/jamf.tomcat start/stop/status

(choose one)
will return what you are looking for. Browsing to https://yourjss.com:8443 will also tell you something ;-) What more are you looking for?


davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • March 10, 2016

I've used curl in the past to check that the site is reachable and readable.

Are you getting frequent tomcat crashes?


Forum|alt.badge.img+15
  • Contributor
  • March 10, 2016

You could also use the new Health Check page:

https://your.jss.com:8443/healthCheck.html

JSS Health Check Docs

-Brad


Forum|alt.badge.img+33
  • Hall of Fame
  • March 10, 2016

I've got a scripted solution for monitoring my JSS's Tomcat, which regularly checks that Tomcat is running. If it's not, the following actions are taken:

  1. Tomcat is restarted
  2. I receive an email letting me know Tomcat has been restarted, along with other diagnostic information.

I have a post about this solution available from the link below:

https://derflounder.wordpress.com/2011/12/14/monitoring-the-casper-jss-tomcat-on-red-hat-linux/

The scripts are available on my GitHub repo via the link below:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/tomcat_monitoring