Change units in portcheck, update docs
Chris committed
Feb 26, 2018 at 19:43 UTC
a021a1b3d3ad91182e01559287ff80e217238079
2 files changed
+7
-7
python.d/README.md
+6
-6
@@ -1556,11 +1556,11 @@ Following charts are drawn per host:
1556
* Time required to connect to a TCP port.
1557
Displays latency in 0.1 ms resolution. If the connection failed, the value is missing.
1558
1559
-2. **Error** int
1560
- * Connection successful: value = 1 otherwise 0
1561
- * Could not create socket: possible DNS problems (value = 1, otherwise 0)
1562
- * Connection refused: port not listening or blocked (value = 1, otherwise 0)
1563
- * Connection timed out: host or port unreachable (value = 1, otherwise 0)
1559
+2. **Status** boolean
1560
+ * Connection successful
1561
+ * Could not create socket: possible DNS problems
1562
+ * Connection refused: port not listening or blocked
1563
+ * Connection timed out: host or port unreachable
1564
1565
1566
### configuration
@@ -1575,7 +1575,7 @@ server:
1575
1576
### notes
1577
1578
- * The error chart is intended for alarms or for access via API.
1578
+ * The error chart is intended for alarms, badges or for access via API.
1579
* A system/service/firewall might block netdata's access if a portscan or
1580
similar is detected.
1581
* Currently, the accuracy of the latency is low and should be used as reference only.
python.d/portcheck.chart.py
+1
-1
@@ -26,7 +26,7 @@ CHARTS = {
26
]
27
},
28
'status': {
29
- 'options': [None, 'Portcheck status', 'flag', 'status', 'portcheck.status', 'line'],
29
+ 'options': [None, 'Portcheck status', 'boolean', 'status', 'portcheck.status', 'line'],
30
'lines': [
31
[PORT_SUCCESS, 'success', 'absolute'],
32
[PORT_TIMEOUT, 'timeout', 'absolute'],