FHEM Forum

FHEM => Sonstiges => Thema gestartet von: crissiloop am 14 Februar 2013, 22:24:26

Titel: Logfile bleibt leer und kein EventMonitor
Beitrag von: crissiloop am 14 Februar 2013, 22:24:26
Hallo,
leider habe ich seit 08.02.13 keine Einträge mehr im Logfile und sehe auch nichts im EventMonitor.
Danach wurde mein PC-Kram mit Fritzbox und HMLAN abgebaut und erst am 10.02.13 wieder in Betrieb genommen wegen des Umzuges.
Woran kann das liegen?

Hier der Auszug aus meiner fhem.cfg
attr global autoload_undefined_devices 1

attr global logfile ./log/fhem-%Y-%m.log

attr global modpath .
attr global motd SecurityCheck:\\\\
\\\\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\\\\
telnetPort has no password/globalpassword attribute.\\\\
\\\\
Restart fhem for a new check if the problem is fixed,\\\\
or set the global attribute motd to none to supress this message.\\\\
attr global sendStatistics onUpdate
attr global statefile ./log/fhem.save
attr global uniqueID ./FHEM/FhemUtils/uniqueID
attr global userattr devStateIcon icon webCmd
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone smallscreen 1

define WEBtablet FHEMWEB 8085 global
attr WEBtablet touchpad 1

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog


Und das war der letzte Eintrag aus dem Logfile
2013.02.08 01:00:00 2: CUL_HM set Steckdose_Schlafzimmer off rxt:1
2013.02.08 21:30:00 2: CUL_HM set Steckdose_Schlafzimmer on rxt:1


Gruß Christian
Titel: Aw: Logfile bleibt leer und kein EventMonitor
Beitrag von: crissiloop am 14 Februar 2013, 22:33:54
habe gerade gesehen, dass currentlogfile auf     
./log/fhem-2012-02.log
steht und da wird auch geloggt.

Wie kann ich das wieder in 2013 ändern?
Titel: Aw: Logfile bleibt leer und kein EventMonitor
Beitrag von: Rohan am 15 Februar 2013, 11:28:32
Indem du deiner FHEM-Hardware das richtige Systemdatum dauerhaft ermöglichst (NTP) und FHEM danach ggfls. einmal neu startest. FHEM erledigt den Rest durch diese Zeile "attr global logfile ./log/fhem-%Y-%m.log".

Gruß
Thomas
Titel: Aw: Logfile bleibt leer und kein EventMonitor
Beitrag von: crissiloop am 15 Februar 2013, 19:09:12
Vielen Dank für den Tip.
Der Hinweis mit dem Zeitserver war gold richtig.
Die Fritzbox hat, warum auch immer, sich um ein Jahr vertan.
Also habe ich die Fritzbox neu gestartet und so hat Sie sich die neue Uhrzeit geholt.
Und da die Fritzbox als Zeitserver im Netzwerk zur Verfügung steht, sollte nun auch fhem wieder die richtige Zeit bekommen.

edith: Und nun hat auch FHEM wieder die richtige Zeit und schreibt in das richtige Logfile.
Die Fritzbox hatte nach dem Umzug beim Start keinen Internetzugang und hat sich somit nicht die richtige Zeit geholt. Warum Sie genau ein Jahr daneben lag, weiß ich nicht.