[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Tomcat Monitoring



If JMX is on, you can throw periodic calls at the endpoint and get back metrics you?d like to see.  Check this out:

using the free package ?check_jmx?
https://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx/details:


./check_jmx -U service:jmx:rmi://10.212.212.37:44444/jndi/rmi://10.212.212.37:1099/karaf-root -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192 -username XXXXX -password XXXXX

Eden Space Used
./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -O java.lang:type=MemoryPool,name="Eden Space" -A Usage -K used -username XXXXX  -password XXXXX

Perm Gen Used
./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -O java.lang:type=MemoryPool,name="Perm Gen" -A Usage -K used -username XXXXX -password XXXXX

Survivor Space Used
./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -O java.lang:type=MemoryPool,name="Survivor Space" -A Usage -K used -username XXXXX -password XXXXX

Tenured Gen Used
./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -O java.lang:type=MemoryPool,name="Tenured Gen" -A Usage -K used -username XXXXX -password XXXXX



> On Oct 4, 2016, at 6:20 AM, Chuck Payne <terrorpup at gmail.com> wrote:
> 
> Guys,
> 
> I got a couple of Tomcat Apps that when Jenkins does a build the app
> stop responding.
> 
> I can't use tcp port monitor with Nagios, because tomcat is up.
> 
> So is there a way to monitor an app with Nagios, that is the pages
> stop responding. I can get an alert, if I have to write my own jsp
> page to monitor.
> --
> Terror PUP a.k.a
> Chuck "PUP" Payne
> -----------------------------------------
> Discover it! Enjoy it! Share it! openSUSE Linux.
> -----------------------------------------
> openSUSE -- Terrorpup
> openSUSE Ambassador/openSUSE Member
> skype,twiiter,identica,friendfeed -- terrorpup
> freenode(irc) --terrorpup/lupinstein
> Register Linux Userid: 155363
> 
> Have you tried SUSE Studio? Need to create a Live CD,  an app you want
> to package and distribute , or create your own linux distro. Give SUSE
> Studio a try.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20161004/fcfaffa7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.ale.org/pipermail/ale/attachments/20161004/fcfaffa7/attachment.sig>