Meine config sieht so aus:
Gestartet wird vzlogger folgendermaßen:
Viele Grüße
Sebastian
Code:
"retry" : 30, /* how long to sleep between failed requests, in seconds */
//"daemon": false, /* run periodically */
//"foreground" : true, /* dont run in background (prevents forking) */
"verbosity" : 15, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
"local" : {
"enabled" : true, /* should we start the local HTTPd for serving live readings? */
"port" : 8080, /* the TCP port for the local HTTPd */
"index" : true, /* should we provide a index listing of available channels? */
"timeout" : 30, /* timeout for long polling comet requests, 0 disables comet, in seconds */
"buffer" : 5 /* how long to buffer readings for the local interface, in seconds */
},
"meters" : [{
"enabled" : true, /* disabled meters will be ignored */
"protocol" : "sml",
"interval" : 2,
"device" : "/dev/lesekopfS",
"channels" : [{
"uuid" : "00000000-0000-0000-0000-000000000000",
"middleware" : "Strom-Leistung",
"identifier" : "1-0:15.7.0*255" /* Strom Leistung */
}, {
"uuid" : "11111111-1111-1111-1111-111111111111",
"middleware" : "Strom-Arbeit",
"identifier" : "1-0:1.8.0*255" /* Strom Arbeit */
}]
}, {
"protocol" : "sml",
"interval" : 2,
"device" : "/dev/lesekopfH",
"channels" : [{
"uuid" : "22222222-2222-2222-2222-222222222222",
"middleware" : "Heizung-Leistung",
"identifier" : "1-0:15.7.0*255" /* Heizung Leistung */
}, {
"uuid" : "33333333-3333-3333-3333-333333333333",
"middleware" : "Heizung-1-Arbeit",
"identifier" : "1-0:1.8.1*255" /* Heizung 1 Arbeit */
}, {
"uuid" : "44444444-4444-4444-4444-444444444444",
"middleware" : "Heizung-2-Arbeit",
"identifier" : "1-0:1.8.2*255" /* Heizung 2 Arbeit */
}]
}
]}
Code:
/usr/bin/vzlogger --config /etc/vzlogger.conf --httpd
Sebastian



Kommentar