]> arthur.barton.de Git - netdata.git/commitdiff
configuration files
authorpaulfantom <paulfantom@gmail.com>
Wed, 6 Jul 2016 16:07:19 +0000 (18:07 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 6 Jul 2016 16:07:19 +0000 (18:07 +0200)
conf.d/python.d/apache.conf [new file with mode: 0644]
conf.d/python.d/apache_cache.conf [new file with mode: 0644]
conf.d/python.d/hddtemp.conf [new file with mode: 0644]
conf.d/python.d/nginx.conf [new file with mode: 0644]
conf.d/python.d/phpfpm.conf
conf.d/python.d/squid.conf
python.d/python_modules/base.py
python.d/squid.chart.py

diff --git a/conf.d/python.d/apache.conf b/conf.d/python.d/apache.conf
new file mode 100644 (file)
index 0000000..4d02dd4
--- /dev/null
@@ -0,0 +1,5 @@
+# Example configuration of apache.chart.py
+# YAML format
+
+local:
+  url: "http://localhost/server-status?auto"
diff --git a/conf.d/python.d/apache_cache.conf b/conf.d/python.d/apache_cache.conf
new file mode 100644 (file)
index 0000000..a6276de
--- /dev/null
@@ -0,0 +1,4 @@
+# Example configuration of apache_cache.chart.py
+# YAML format
+
+path: "/var/log/apache2/cache.log"
diff --git a/conf.d/python.d/hddtemp.conf b/conf.d/python.d/hddtemp.conf
new file mode 100644 (file)
index 0000000..e29f410
--- /dev/null
@@ -0,0 +1,7 @@
+# Example configuration of hddtemp.chart.py
+# YAML format
+
+update_every: 1
+host: 'localhost'
+port: 7634
+
diff --git a/conf.d/python.d/nginx.conf b/conf.d/python.d/nginx.conf
new file mode 100644 (file)
index 0000000..38f6d48
--- /dev/null
@@ -0,0 +1,5 @@
+# Example configuration of nginx.chart.py
+# YAML format
+
+local:
+  url: "http://localhost/stub_status"
index df3e5df9d32f3915e2c119f046759666902e1219..8ae5fa8fbb2e5d523c01bbeb41f4974410ce5408 100644 (file)
@@ -1,4 +1,5 @@
-#update_every: 3
+# Example configuration of phpfpm.chart.py
+# YAML format
 
 local:
   url: "http://localhost/status"
index 3751948df1c62dd10c63f7d14b614c6ad144535a..ad8dab4e016f3345ff3c0dff46f19acdeee3bb28 100644 (file)
@@ -1,4 +1,4 @@
-# Example configuration of mysql.chart.py
+# Example configuration of hddtemp.chart.py
 # YAML format
 
 update_every: 1
index d052024db48cb77ecff006f7c5ee628df6ef5924..ca480b8e835d3ebe2803860ff576eac2292ccddd 100644 (file)
@@ -497,7 +497,7 @@ class NetSocketService(SimpleService):
         except (KeyError, TypeError):
             self.error("No port specified. Using: '" + str(self.port) + "'")
         try:
-            self.port = int(self.configuration['request'])
+            self.request = int(self.configuration['request'])
         except (KeyError, TypeError):
             self.error("No request specified. Using: '" + str(self.request) + "'")
         self.request = self.request.encode()
index 726822dc418d36ff1ff8058ab769e0fcafcfb790..a179dd9e19852a167d17b0fd24fc327990c7af36 100644 (file)
@@ -47,7 +47,7 @@ class Service(NetSocketService):
         NetSocketService.__init__(self, configuration=configuration, name=name)
         self.request = ""
         self.host = "localhost"
-        self.port = (3128, 8080)
+        self.port = 3128
         self.order = ORDER
         self.definitions = CHARTS