Forum Discussion
Joe_Williams
Professor
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_Lanoue
3 days 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.conf
Error!
The script failed, elapsed time: 0 seconds - java.io.IOException: No such file or directory
java.lang.RuntimeException: java.io.IOException: No such file or directory
at 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.
Related Content
- 7 months ago