Please share the steps to add template to monitor tomcat check_db by zabbix
Ad Widget
Collapse
tomcat monitoring
Collapse
X
-
Can you give an example of what you are looking to do ... at least to me the question doesn't make sense.
Zabbix does not include a template for "tomcat check_db" ... so are you looking to import a template from someone else, or are you simply looking to monitor processes, ports, or database on your tomcat web server? -
I hope this is what you are looking for ....
In the doc see https://www.zabbix.com/documentation...s/zabbix_agent
At the bottom are 3 web.page.* items you can define for reading individual web pages. If your URL checks on a database connection, then perhaps web.page.regexp[] would be used to invoke a page and look for pass/fail status.
Otherwise look at the doc for web scenarios: https://www.zabbix.com/documentation...web_monitoring
There are some examples on how to build a scenario that interacts with several pages and reports the pass/fail and performance stats in aggregate.Comment
-
jmx
I tried to add hot by JMX interfaces to monitor in zabbix. But it's unsuccessful. can anybody share the proper steps for the same. Also if I have more than one tomcat services on same host, is it possible to fetch those services for monitoring in one attempt when added the host, instead of adding web interface for each service one by one?Comment
-
the tomcat templates are broken. You need to change them to suit. I use jmxterm to pull all the available beans from a client and just write my own.
I'm not at the box with the full details atm but off the top of my head to monitor a standard tomcat instance I had to change the following.
1)http-8080 -> http-bio-8080
2)jk-8009 -> ajp-bio-8009
3) within the jmx command you need to add the double quotations to the bean. Like below.
From
jmx["Catalina:type=GlobalRequestProcessor,name=htt p-bio-8080", bytesReceived]
to
jmx["Catalina:type=GlobalRequestProcessor,name=\"h ttp-bio-8080\"", bytesReceived]
Hope this helps. Here's a link to a walkthrough on how to find all the available beans you can use.
Comment
Comment