]> arthur.barton.de Git - netdata.git/commitdiff
Remove manager/status?XML=true URI Requirement
authorNMcCloud <kenneth.gendron@gmail.com>
Thu, 9 Mar 2017 04:33:17 +0000 (20:33 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2017 04:33:17 +0000 (20:33 -0800)
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.

python.d/tomcat.chart.py

index 154e4e4ba69ca8ea766c861eabc9a1491ce3a025..c20f85e1ecd2818a6b87386e1f2e8d1c368f7591 100644 (file)
@@ -51,10 +51,6 @@ class Service(UrlService):
         self.definitions = CHARTS
 
     def check(self):
         self.definitions = CHARTS
 
     def check(self):
-        if not self.url.endswith('manager/status?XML=true'):
-            self.error('Bad url(%s). Must be http://<ip.address>:<port>/manager/status?XML=true' % self.url)
-            return False
-
         netloc = urlparse(self.url).netloc.rpartition(':')
         if netloc[1] == ':': port = netloc[2]
         else: port = 80
         netloc = urlparse(self.url).netloc.rpartition(':')
         if netloc[1] == ':': port = netloc[2]
         else: port = 80