Forum Discussion
Joe_Williams
3 months agoProfessor
We use the SFTP option to get the files actually. We are already monitoring via SSH.
We add the sftp.files property with the full path to the file. For example we could have "/etc/sysconfig/iptables" set and it will simply sftp the file.
- Justin_Lanoue2 months agoNeophyte
Thanks, I didn't know that this existed.
Although, I'm not able to get this to work. It always says "No such file or directory"
sftp.files = /tmp/test.conf
ls -l /tmp/test.conf
-rw-rw-r-- 1 user user 9 Nov 12 20:22 /tmp/test.confError!The script failed, elapsed time: 0 seconds - java.io.IOException: No such file or directoryjava.lang.RuntimeException: java.io.IOException: No such file or directoryat com.logicmonitor.groovy.objects.BaseWrapper.invoke(BaseWrapper.java:124)at com.logicmonitor.groovy.objects.lang.ScriptWrapper.run(ScriptWrapper.java:31)Any assistance would be greatly appreciated.- Joe_Williams2 months agoProfessor
This sounds like a permission issue but your tmp test should have worked.
Honestly, all we did was add the sftp.files property with our few files and it worked.
Related Content
- 9 months ago
- 10 days ago