Blog Daniel Buschke

4. Oktober 2009

WHS Add-In Directory Watcher

Abgelegt unter: AddIns, Homeserver — Daniel @ 16:50

Leute es gibt mal wieder ein neues Add-In :)

Directory Watcher überwacht Ordner oder Ordnerstrukturen auf gelöschte oder neue Dateien und meldet es euch direkt.

Weitere Details findet ihr hier

38 Kommentare »

  1. Kommentar von Michael — 6. Oktober 2009 @ 09:14

    Hallo Daniel, Danke für das neue Add-In. Sehr schöne Sache. Ein Vorschlag für spätere Versionen: Der RSS geht nur Public? Ich würde gern die Änderungen im Intranet verteilen. Muß ja nicht die ganze Welt wissen was ich für neue Filme sehe..

    Das Add-In ist englisch? Jedenfalls bei mir. Geht es auf deutsch?

    LG Michael


  2. Kommentar von Andreas — 6. Oktober 2009 @ 10:08

    Hallo Daniel !

    Dein ADDin finde ich klasse, nur leider funktioniert die Versendung mit E-Mail nicht.
    Hast Du dazu eine Idee, alles richtig eingestellt.

    Für einen Rückläufer wäre ich dankbar.

    Herzliche Grüße

    Andreas


  3. Daniel

    Kommentar von Daniel — 6. Oktober 2009 @ 19:38

    Hi

    danke euch beiden!

    @Michael
    RSS geht natürlich nicht nur Public. Ist vorgemerkt für das nächste Release, ebenso wie deutsch.

    @Andreas
    hmm, wenn du alles korrekt eingestellt hast sollte es eigentlich gehen. Habe aber gerade festgtestellt das die Testmail nicht verschickt wird, da hat sich wohl doch noch ein kleiner Fehler eingeschlichen. Aber die eigentlichen Mails über den Service kommen bei mir an. Sitzt du vielleicht hinter einem Proxy? smtpserver angegeben? Steht was im Eventlog?

    Gruß Daniel


  4. Kommentar von Pat Cavit — 7. Oktober 2009 @ 03:16

    This is an add-in I’ve actually tried to create using various hacky methods previously, so thanks for doing it right!

    Seconding the request for an intranet-only feed, I don’t like having remote access enabled on my home server.

    Also, while Firefox will properly recognize the feed as RSS it won’t show any of the items when I add it as a Live Bookmark. Part of this may be due to the feed not validating. It probably doesn’t need the element at the root, and the timestamps aren’t RFC-822 like they should be.

    Thanks again for this, it’s a great start and I can’t wait to see where it goes from here!


  5. Kommentar von Andreas — 7. Oktober 2009 @ 08:22

    Hallo Daniel !

    Ich habe es mit einer anderen EMaildaresse ausprobiert, meine info.x@online.de hat nicht funktioniert, wahrscheinlich weil es ein spezielle Adresse mit info.* beginnend ist, auf der anderen Adresse lief es problemlos nur noch der kleine Fehler mit der Testmail. Probier bitte mal aus ob das bei Dir eventuell mit einer info EMailadresse auch nicht funktioniert.Einstellungen müssen gepasst haben, da ich nur die EMail Adresse ausgetauscht habe.

    Herzliche Grüße

    Andreas


  6. Daniel

    Kommentar von Daniel — 7. Oktober 2009 @ 11:33

    Hallo Andreas,

    ich werde es heute Abend mit einer Info Adresse probieren. Denke aber nicht das dies einen Unterschied macht. Ich melde es dir dann. Das mit der Testmail ist bereits gefixt, kommt in der v1.1 mit.

    Danke für die Rückmeldung

    Gruß Daniel


  7. Kommentar von Darren — 8. Oktober 2009 @ 13:41

    I love the new Directory watcher add-in. However, when I restart my Windows Home Server the add-in goes to stopped status and I have to restart it by clicking on the save button. Is there a fix for this?

    Thanks


  8. Kommentar von pepschmier — 8. Oktober 2009 @ 15:58

    hört sich klasse an. eine frage: wäre es möglich, dass sich in einer späteren version auch downloads überwachen lassen? der grund: ich stelle manchen leuten files zur verfügung. und wenn ich per email darüber informiert werde, dass die dateien bereits heruntergeladen wurden, könnte ich sie sofort wieder löschen. momentan muss ich halt immer erst nachfragen, ob die leute die files schon heruntergeladen haben. und das nervt manchmal …

    thx+gruß,

    pepschmier


  9. Daniel

    Kommentar von Daniel — 8. Oktober 2009 @ 20:18

    @Darren
    please check the service startup type.
    Start – Run – type: services.msc
    Choose “Windows Home Server Directory Watcher”

    It’s automatic, all looks fine, ist startup type manual you need to change it to automatic (right click, properties)

    @pepschmier
    erstmal die aktuelle Version, dann sehen wir weiter. Ich schreibs mal auf den Wunschzettel :)

    @Andreas
    Also an einer Info Adresse kann es definitiv nicht liegen, ich habe verschiedene Kombis getestet. Kann es sein das die einfach dort im Spam Ordner gelandet sind und sie dir nur nicht aufgefallen sind?

    regards Daniel


  10. Kommentar von Andreas — 9. Oktober 2009 @ 07:04

    Hallo Daniel !

    Im Spamordner sind sie nicht gelandet, hab ich überprüft. Da ch meinen Account bei 1&1 habe, habe ich bei der Adresse info.name@online.de ein Dienstekonto bei 1&1 erhalten.Mit den anderen email Adressen von 1&1 funktioniert es nähmlich. Muss also an der 1&1 email liegen werde das mal überprüfen, was da anders ist.Trotzdem vielen Dank

    Herzliche Grüße

    Andreas


  11. Kommentar von Healey — 9. Oktober 2009 @ 12:51

    Hallo Daniel,
    das hört sich super an das Add-In. Ich werds mal probieren.
    Vorher eine Frage: Ich habe eine Menge (!) Musik auf dem WHS. Mein 2TB Platte ist zu 60% voll :) . . Ich würde gerne – damit man den überblick gehält – den ganze Musikordner (und auch den Videoordner) überwachen, damit man im RSS sehen kann was neu dazugekommen ist .. -> Family-Friendly..dann können auch Frau und Kids sehen was für tolle neue Sachen wir haben. .
    Ich habe nun bedenken, das der Check das System ziemlich auf Dauer belasten wird, denn das sind so einige Unterverzeichnisse zu prüfen. .
    Es würde mir z.B. reichen wenn man den Check z.B. 1 x die Woche laufen lassen würde. .

    Gruß
    Healey


  12. Daniel

    Kommentar von Daniel — 9. Oktober 2009 @ 17:32

    Hallo Healey,

    probiere es doch einfach mal :)
    Ich glaube du verwechselst da etwas… das Add-In legt keinen Index an und macht einen Abgleich der Dateien, sondern er überwacht die Verzeichnisse nur. Das ist eine Eigenschaft die dem Entwickler gegeben ist. Wenn du einen Ordner zur Überwachung hinzufügst, dann ist es egal ob da eine oder 1000 Dateien drin liegen. Er merkt erst das eine neue hinzukommt, wenn das Event dafür ausgelöst wird. Die anderen 1000 interessieren in diesem Moment nicht.

    Somit ist die Performance gleich.

    Gruß Daniel


  13. Kommentar von Bipe — 9. Oktober 2009 @ 19:49

    Hi,
    I have a problem. after installation whs console closes (crashes?), after starting there is directory watcher, but i get this error when i click on it:
    http://gathering-team.hr/bipe/whserror.jpg

    also, “Windows Home Server Directory Watcher” service is not started, when i start it manualy and try to add directory to watch, console closes (crashes?) and service stopps

    thank you


  14. Kommentar von Mats — 10. Oktober 2009 @ 15:24

    Hi,

    great idea and plugin. Is it possible to exclude files ? For instance, watch for all files unless they are of a specific extension ? (This would be to not notify until a downloaded file is finished, since many download-clients have a temporary extension on the file until it has finished).


  15. Kommentar von Healey — 10. Oktober 2009 @ 20:24

    N’abend Daniel !

    ich habe das gute Stück installiert. Erstaunlich das so etwas mit so wenig Leistung möglich ist. . Coole Sache! Allerdings. . :

    Das läuft alles, auch in Unterverzeichnissen… aber ich bekommen zum einen keinen RSS-Feed und zum anderen stürzt der Dienst nach einer Datei ab (beendet sich ohne Kommentar – auch im Eventviewer nix zu sehen. .

    Ich haben dann eben nochmal ein wenig probiert – der Dienst beendet sich nur, wenn ich den RSS auch aktiviert habe. Ich denke das ist ein Rechteproblem mit dem Inetpub . . ??

    Kannst Du mir einen Tip geben. . ?
    Schönen Abend und WE noch!
    Healey


  16. Kommentar von Tony — 11. Oktober 2009 @ 12:57

    Instead of sending an email for every event an option to send a summary email at a specific time would be great. E.g. every morning an email is sent out containing all the changes of the last 24 hours.

    An option to have multiple email recipients for each watched folder. E.g. changes in folder 1 go to person 1+2, changes in folder 2 go to person 2+3.


  17. Kommentar von Uli — 11. Oktober 2009 @ 22:42

    Hallo Daniel,

    sehr schönes Add-In – hilft ungemein dagegen, dass die Familie versehentlich eine Freigabe leerputzt…

    Ich hätte da auch noch ein paar Anregungen :-)
    -optinal(pro Ordner) nur auf neue/nur auf gelöschte prüfen
    -”Negativliste” bei den Dateiendungen (z.B. Ausschließen von Temporärdateien)
    -Benachrichtigungen “sammeln” (z.B. nur 1x stündlich, 1x täglich)

    Gruß,
    Uli


  18. Kommentar von Darren — 12. Oktober 2009 @ 11:44

    Thanks for that…the service was set to Manual…soon sorted thanks..great plugin. I use it to update me when my MCE has uploaded new TV shows to the Windows Home Server.

    Great plugin.


  19. Kommentar von Evan Basalik — 15. Oktober 2009 @ 23:50

    What about adding the ability for the email to go to mobile phones? The Remote Notification add-in does this and it is the most efficient way for me to find out about server events.


  20. Daniel

    Kommentar von Daniel — 19. Oktober 2009 @ 10:13

    I don’t know what you mean, but you can specify an email address that has SMS support same as remote notification add-in.


  21. Kommentar von Pads — 22. Oktober 2009 @ 17:54

    Hello

    I posted here http://forum.wegotserved.com/index.php?/topic/10592-text-file-notification/ but thought here is more appropriate.

    I have two whs machines which are remote from each over and connected over a vpn. Currently I use ‘unison’ to synchronise data between them.
    Unison is set to run every night to propogate any changes, but with your directory watcher routine I’m hoping it could be made to run whenever a directory changes.
    To enable this Directory watcher would need to write the paths of the modified directories to a text file. Is this possible or something that you could be interested in enabling?

    This is the Unison homepage http://www.cis.upenn…ison/index.html

    Its similar to rsync except that it works in both directions.
    ‘Unison can deal with updates to both replicas of a distributed directory structure. Updates that do not conflict are propagated automatically. Conflicting updates are detected and displayed.’

    here’s a note from the unison change log:

    Very preliminary support for triggering Unison from an external filesystem-watching utility. The current implementation is very simple, not efficient, and almost completely untested—not ready for real users. But if someone wants to help improve it (e.g., by writing a filesystem watcher for your favorite OS), please make yourself known!

    On the Unison side, the new behavior is very simple:

    * use the text UI
    * start Unison with the command-line flag “-repeat FOO”, where FOO is name of a file where Unison should look for notifications of changes
    * when it starts up, Unison will read the whole contents of this file (on both hosts), which should be a newline-separated list of paths (relative to the root of the synchronization) and synchronize just these paths, as if it had been started with the “-path=xxx” option for each one of them
    * when it finishes, it will sleep for a few seconds and then examine the watchfile again; if anything has been added, it will read the new paths, synchronize them, and go back to sleep
    * that’s it!

    To use this to drive Unison “incrementally,” just start it in this mode and start up a tool (on each host) to watch for new changes to the filesystem and append the appropriate paths to the watchfile. Hopefully such tools should not be too hard to write.

    Thanks Pads


  22. Kommentar von Scoob101 — 26. Oktober 2009 @ 17:51

    Great Idea for an add-in, but didn`t work for me.

    I installed the add-in and it was running fine for a couple of weeks, then the logs showing added and removed files just disappeared from my WHS console. Adding and removing files after that didn`t show anything in the log – it just says empty.

    Uninstalled it now, but looking forward to an update with some bugfixes…..good luck.


  23. Daniel

    Kommentar von Daniel — 26. Oktober 2009 @ 18:42

    How many days have you set to store the log file? The log file was completely empty? I am currently working on the v1.1, but in order to fix this, I need some more info. You are the first who told me this “error”.
    Excuse the circumstances, hopefully it will work with the new version!


  24. Kommentar von scoob101 — 28. Oktober 2009 @ 20:25

    Logfile set to 0 (0-ALL)

    Uninstalled, and reinstalled, still no joy – also rebooted server, and now im getting alerts on the WHS icon, but the log file is still empty!!!


  25. Kommentar von scoob101 — 28. Oktober 2009 @ 20:44

    I have also got repeated alerts for the same file deletion event, but this only happened once, i cant replciate it.


  26. Kommentar von Adam Swift — 4. November 2009 @ 19:29

    Hey Daniel,

    I just wanted to say thank you for picking up my Add in idea. I was kinda bummed when it only got 9th place and people didn’t really seem to get what the idea was for but when I saw that you had created it I felt as happy as I did when I got into the top 10. You got it great for a first version and I look forward to more updates. Thanks Again!

    -Adam Swift


  27. Kommentar von stefan — 27. November 2009 @ 15:08

    Hallo Daniel,

    Tolles Programm!!!
    Besteht die Möglichkeit, zuzuordnen welcher User (Anmeldename) eine Datei erstellt/gelöscht hat? Wenn ja wäre es auch toll, wenn man nur bestimmte User überwachen, oder nach Usern sortieren könnte…

    Eines der besten Tools für meinen kleinen Server – vielen Dank für deine Mühe!!!

    Grüße, Stefan


  28. Kommentar von John Poussart — 11. Dezember 2009 @ 20:41

    Very nice and very very useful.
    However now its only possible to give in 1 email adress.
    Should it be possible to enter more than 1.
    For example seperated by a comma or maybe ad a cc field.


  29. Kommentar von Paul — 29. Dezember 2009 @ 22:37

    This is SOOOO close to what I need but not quite. I was hoping I could use this to create a public RSS feed for a particular folder which has photos in it. I want an RSS feed that is automatically updated as I add new pictures to a folder on my home server. I tried this and it does indeed create an RSS feed but the data in the feed just mentions the name of the .jpg and the location on the server. I’d love it if the actual photo could be attached to the feed.

    Is the source available?

    Thanks!


  30. Daniel

    Kommentar von Daniel — 29. Dezember 2009 @ 23:58

    Hi John,
    wait for the next release.
    In the next version you can add multiple email addresses

    regards Daniel


  31. Daniel

    Kommentar von Daniel — 30. Dezember 2009 @ 00:11

    Hi Paul,

    there are 2 ways
    - it would have all the images are copied into a folder that is reachable by the public website
    or
    - a virtual path must be set to this folder, but what has the consequence, that all the images are available from outside (did not really wish)

    This would have to be distinguished, for it will be monitored not only an image folder, what happens with other file types?
    I’ll mark it possible for another version, but not for next release!


  32. Kommentar von Harald — 30. Dezember 2009 @ 20:48

    Ich habe Probleme mit dem Emailversand. Mein extra eingerichtetes Emailkonto scheint nicht mit dem Addin zu funktionieren, Tests mit einem Email-Client und per Telnet funktionieren aber. Gibt es vielleicht irgendwo eine Logdatei oder Ähnliches, damit ich rausfinden kann, warum das Testemail bzw. die normalen Emails nicht rausgehen.


  33. Daniel

    Kommentar von Daniel — 30. Dezember 2009 @ 21:02

    Hallo Harald,

    in der Version hat der Testmail Button leider keine Funktion bzw. ist sie irgendwie verloren gegangen… Füge deine Emaildaten einfach hinzu und ändere etwas in einem überwachten Ordner, da sollte die Email dann ankommen.

    Gruß Daniel


  34. Kommentar von Harald — 30. Dezember 2009 @ 23:37

    Ok, ist natürlich gut zu wissen, dass dieser Testbutton nichts macht. Mit dem Datei reinkopieren habe ich auch getestet, aber da ist auch nichts angekommen. Ich habe keine Ahnung, an was es liegen könnte. Wäre cool, wenn in v1.1 einfach die Exception ausgegeben oder irgendwohin geschrieben wird.

    Und falls es noch nicht unterstützt wird: TLS Unterstützung wäre fein, dann könnte ich mein gmail Konto als Ausgangsserver benutzen.


  35. Daniel

    Kommentar von Daniel — 31. Dezember 2009 @ 00:09

    Ja sorry, steht aber auch schon bei bekannte Bugs mit drin :(

    Zum Log: Erfolgreich oder fehlgeschlagen müsstest du eigentlich im Eventlog vom WHS sehen können.

    TLS nehme ich mal mit auf!

    Gruß Daniel


  36. Kommentar von Thomas — 9. Januar 2010 @ 17:52

    E-Mails über eine gesicherte Kennwortauthentifizierung zu senden funktioniert nicht.


  37. Kommentar von Deutscher WHS Benutzer — 11. Februar 2010 @ 14:53

    Wann kann denn mit einem Release der Version 1.1 gerechnet werden? Weil mit einem deutschen WHS ist das Teil ziemlich nutzlos. Wir haben mehrere Leute, die den WHS auffüllen, da verliert man schnell die Übersicht und das Plugin wäre ideal.


  38. Kommentar von Pads — 15. Februar 2010 @ 17:12

    would be great if there was an option to run an external program on directory change. bat file, exe or both.
    The event of a file change could this trigger whatever you wanted.
    Is this a possibility?

    thanks


RSS-Feed für Kommentare zu diesem Artikel. TrackBack-URL

Einen Kommentar hinterlassen