Changed default timeouts in portcheck plugin
Chris committed
Feb 20, 2018 at 21:10 UTC
4b6f1a87e194b7ddbc8df15388619a911c786b93
2 files changed
+5
-8
python.d/README.md
+4
-7
@@ -1569,16 +1569,13 @@ Following charts are drawn per host:
1569
1570
```yaml
1571
server:
1572
- host: 'dns or ip'
1573
- ports:
1572
+ host: 'dns or ip' # required
1573
+ ports: # required
1574
- 22
1575
- timeout: 3
1576
- update_every: 1
1575
+ timeout: 1 # optional
1576
+ update_every: 1 # optional
1577
```
1578
1579
-`timeout` and `update_every` are optional with default `3` and `netdata-default (=1)`
1580
- (seconds) respectively.
1581
-
1579
### notes
1580
1581
* The error code chart is intended for health check or for access via API.
python.d/portcheck.chart.py
+1
-1
@@ -40,7 +40,7 @@ class Service(SimpleService):
40
self.chart_name = ""
41
self.host = self.configuration.get('host', None)
42
self.ports = self.configuration.get('ports', None)
43
- self.timeout = self.configuration.get('timeout', 3)
43
+ self.timeout = self.configuration.get('timeout', 1)
44
45
def check(self):
46
"""