Open oferpld opened 4 years ago
@oferpld - can you try updating your path to
"C:\\tmp"
Also, I'm not sure it would support the existence of a folder. It's built to check for the existence of a file, but I guess we will see...
@oferpld - After doing a quick check of the source it calls System.IO.File.Exists which does not support a folder. You will always get a failure unless you specify a file.
Docs: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.exists?view=netframework-4.8
I'm guessing you aren't a developer, but it would be fairly trivial to update the codebase to support a folder in addition to a file.
Hi there, I have already tried with the following options and still does not show anything in NR. C:\tmp\test\service.log.txt C:\tmp\test\service.log.txt
Additionally I don't see any logs in \org.healthwise.newrelic.filewatcher\logs\newrelic_plugin.log although log_level is set to "finest".
Any further suggestions? Can you please share the exact plugin folder structure of such installation?
Ofer
Hi @oferpld,
I'm not involved in this project anymore and didn't do any of the original work. @zmaillard - can you chime in on this one?
-Mark
@oferpld - just to be clear, are you using double backslashes in you path? If you only use a single it will cause issues as you need to escape the backslash. Your examples only show a single, so I want to make sure that isn't the issue...
Bad
C:\tmp\test\service.log.txt
Good
C:\\tmp\\test\\service.log.txt
Hi there,
I have installed successfully the FileWatcher plugin on Windows server machine (according to https://rpm.newrelic.com/accounts/1980202/plugins/directory/655). It is watching some test folder of mine.
{ "agents": [ { "name": "File Watcher Monitor", "path": "C:\tmp" }
] }
New relic UI shows that plugin reports - attached:
However, there is no real indication for file existence although I have added one.
The warning message below has appeared in the event viewer after starting the service: _"Child process [1608 - C:\Users\ofer.peled\Downloads\platform_installer-win32-v0.1.5\platform_installerwin32\plugins\org.healthwise.newrelic.filewatcher\org.healthwise.newrelic.filewatcher\plugin.exe ] finished with -1"
Kindly your advise.
Thanks in advance. Ofer