Posted on 03-09-2016 04:58 PM
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.
Posted on 03-10-2016 06:00 AM
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?
Posted on 03-10-2016 06:52 AM
I've used curl in the past to check that the site is reachable and readable.
Are you getting frequent tomcat crashes?
Posted on 03-10-2016 11:30 AM
You could also use the new Health Check page:
https://your.jss.com:8443/healthCheck.html
-Brad
Posted on 03-10-2016 12:00 PM
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:
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