<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hallo,<div class=""><br class=""></div><div class="">mir ist die Verwendung des meters „file“ unklar.</div><div class="">Kann das erläutert werden, bzw. gibt es Beispiele?</div><div class=""><br class=""></div><div class="">Ich würde eventuell Einträge eines Logfiles parsen wollen.</div><div class="">Dann immer über die letzte Zeile.</div><div class=""><br class=""></div><div class="">Das einzige was sich finde ist halt die Beschreibung in vzlogger.conf</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class="">{</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "enabled": false, // disabled meters will be ignored</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "skip": false, // if enabled, errors when opening meter will lead to meter being ignored</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "protocol": "file",</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "path": "/proc/loadavg",</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class="">// "format": "$i $v $t", // a format string for parsing complex logfiles</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> // arbitrary text and whitespaces are allowed, see 'scanf()'</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> // at least $v has to be used</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> // $i => identifier, $v => value, $t => timestamp</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "rewind": true, // reset file pointer each interval to the beginning of the file</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> "interval": 2 // of ommitted, we will try to listen on changes with inotify</font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""> },</font></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""><br class=""></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""><br class=""></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Danke</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Patric</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""><br class=""></font></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><font color="#0042aa" class=""><br class=""></font></div></body></html>