Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

check status of web application

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know ways to check the status of a web application from a Unix script?
 
author & internet detective
Posts: 40200
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by the status? Started/stopped or something else?
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would a JACL script do? Could you kick one off?

Here's how I check if an application is stopped. Not quite what you want, but it's a start.

Here's more JACL scripts if you want them:

http://www.technicalfacilitation.com/get.php?link=scripts



if {[catch {$AdminControl invoke $appManager stopApplication $applicationName} result]} {
puts stdout " application already stopped"
} else {
}
 
jeetu krishnan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically I want to access a valid URL of the application and verify that the response code is successful.

I need to do this from a Unix script because I am verifying the status of other MQ based services using it. Also i need to schedule it so that there is no human intervention.

the architecture is as follows:

webserver -----> siteminder -----> webserver -- load balancer --- app server.

~j
 
Jeanne Boyarsky
author & internet detective
Posts: 40200
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeetu,
If you have lynx installed (a text browser), you could use that.

Scheduling automatically is easy - just setup a cron job.
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic