How to Monitor the windows Tomcat service in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
idm_bse
Posts: 1
Joined: Sat Jul 12, 2014 5:25 am

How to Monitor the windows Tomcat service in Nagios

Post by idm_bse »

Dear All,

Please suggest for below monitoring issue, We have nagios server which monitoring windows servers more than 50.
Lot of windows servers was running tomcat application so How we can monitor this tomcat and associate web service in nagios.
NSC++ plugin was running all servers which commnad use to same ?

check_nt ?


Regards,
IDM
User avatar
tylerhoadley
Posts: 43
Joined: Tue Jul 02, 2013 1:41 pm

Re: How to Monitor the windows Tomcat service in Nagios

Post by tylerhoadley »

Haven't fully tested this on Windows but can't see why it wouldn't work for you... Works natively running locally on nagios server to remote tomcat server on linux. so nagios to tomcat on windows should do it

install check_tomcat.pl and its dependancies (perl)
http://exchange.nagios.org/directory/Pl ... pl/details

either wget or curl it to /usr/local/nagios/libexec
chmod +x ./check_tomcat.pl

./check_tomcat.pl -H TOMCATSERVER -p TOMCATPORT -l ADMINUSER -a 'ADMINPASSWORD'
this will return something like this...
OK: memory in use 74 MiB (989 MiB); threads[http-bio-8080]=1(200);|used=78334064 free=959625104 max=1037959168 currentThreadsBusy=1 currentThreadCount=10 maxThreads=200

then you can also do check_http or check_tcp check to ensure availability on the running port... then to go one step further, can use webinject.pl to create a user interactive session against your application and ensure the site is showing the right information even if jvm memory is fine and http is responding. this is best produced by using HTTP live headers in your browser to log the HTTP GET and POST and/or session/cookie data you may need to incorporate into your webinject testdata.xml

Cheers,
Locked