configuration files
paulfantom committed
Jul 6, 2016 at 18:07 UTC
ff3df396771ad0aa760a5fcadd3753f3dfd8367c
8 files changed
+26
-4
conf.d/python.d/apache.conf
new
+5
@@ -0,0 +1,5 @@
1
+# Example configuration of apache.chart.py
2
+# YAML format
3
+
4
+local:
5
+ url: "http://localhost/server-status?auto"
conf.d/python.d/apache_cache.conf
new
+4
@@ -0,0 +1,4 @@
1
+# Example configuration of apache_cache.chart.py
2
+# YAML format
3
+
4
+path: "/var/log/apache2/cache.log"
conf.d/python.d/hddtemp.conf
new
+7
@@ -0,0 +1,7 @@
1
+# Example configuration of hddtemp.chart.py
2
+# YAML format
3
+
4
+update_every: 1
5
+host: 'localhost'
6
+port: 7634
7
+
conf.d/python.d/nginx.conf
new
+5
@@ -0,0 +1,5 @@
1
+# Example configuration of nginx.chart.py
2
+# YAML format
3
+
4
+local:
5
+ url: "http://localhost/stub_status"
conf.d/python.d/phpfpm.conf
+2
-1
@@ -1,4 +1,5 @@
1
-#update_every: 3
1
+# Example configuration of phpfpm.chart.py
2
+# YAML format
3
4
local:
5
url: "http://localhost/status"
conf.d/python.d/squid.conf
+1
-1
@@ -1,4 +1,4 @@
1
-# Example configuration of mysql.chart.py
1
+# Example configuration of hddtemp.chart.py
2
# YAML format
3
4
update_every: 1
python.d/python_modules/base.py
+1
-1
@@ -497,7 +497,7 @@ class NetSocketService(SimpleService):
497
except (KeyError, TypeError):
498
self.error("No port specified. Using: '" + str(self.port) + "'")
499
try:
500
- self.port = int(self.configuration['request'])
500
+ self.request = int(self.configuration['request'])
501
except (KeyError, TypeError):
502
self.error("No request specified. Using: '" + str(self.request) + "'")
503
self.request = self.request.encode()
python.d/squid.chart.py
+1
-1
@@ -47,7 +47,7 @@ class Service(NetSocketService):
47
NetSocketService.__init__(self, configuration=configuration, name=name)
48
self.request = ""
49
self.host = "localhost"
50
- self.port = (3128, 8080)
50
+ self.port = 3128
51
self.order = ORDER
52
self.definitions = CHARTS
53