Remove manager/status?XML=true URI Requirement
It would be nice if the end-user could use a different URL to provide the Tomcat status. Basically you are requiring the manager application be used to provide this, but any app using the org.apache.catalina.manager.StatusManagerServlet servlet is suitable. I simply do not want to use authentication to provide the information to Netdata.
NMcCloud committed
Mar 8, 2017 at 20:33 UTC
1899f0e3c7d3e67170909be5335d75fb39ac5463
1 file changed
-4
python.d/tomcat.chart.py
-4
@@ -51,10 +51,6 @@ class Service(UrlService):
51
self.definitions = CHARTS
52
53
def check(self):
54
- if not self.url.endswith('manager/status?XML=true'):
55
- self.error('Bad url(%s). Must be http://<ip.address>:<port>/manager/status?XML=true' % self.url)
56
- return False
57
-
54
netloc = urlparse(self.url).netloc.rpartition(':')
55
if netloc[1] == ':': port = netloc[2]
56
else: port = 80