summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattttv <dev.matv@xoxy.net>2016-12-21 16:37:31 +0100
committerMatthias Vierthaler <m.vierthaler@conova.com>2016-12-21 16:37:31 +0100
commitf2126cca66d7377720981edab9e718e4c02924c8 (patch)
treee3ccaa49beca6102f407f5df4314a494a730a8e6
parent1466f0f635d1e014ea993179729306d3a9a8d381 (diff)
documention: debug inside input is now boolean
-rw-r--r--README.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 82c33a5..da1fac8 100644
--- a/README.md
+++ b/README.md
@@ -346,14 +346,18 @@ docker run -v /etc/oxidized:/root/.config/oxidized -p 8888:8888/tcp -e CONFIG_RE
## Cookbook
### Debugging
-In case a model plugin doesn't work correctly (ios, procurve, etc.), you can enable live debugging of SSH/Telnet sessions. Just add a ```debug``` option, specifying a log file destination to the ```input``` section.
+In case a model plugin doesn't work correctly (ios, procurve, etc.), you can enable live debugging of SSH/Telnet sessions. Just add a ```debug``` option containing the value true to the ```input``` section. The log files will be created depending on the parent directory of the logfile option.
-The following example will log an active ssh session to ```/home/fisakytt/.config/oxidized/log_input-ssh``` and telnet to ```log_input-telnet```. The file will be truncated on each consecutive ssh/telnet session, so you need to put a ```tailf``` or ```tail -f``` on that file!
+The following example will log an active ssh/telnet session ```/home/oxidized/.config/oxidized/log/<IP-Adress>-<PROTOCOL>```. The file will be truncated on each consecutive ssh/telnet session, so you need to put a ```tailf``` or ```tail -f``` on that file!
```
+log: /home/oxidized/.config/oxidized/log
+
+...
+
input:
default: ssh, telnet
- debug: /tmp/oxidized_log_input
+ debug: true
ssh:
secure: false
```