Hello,<\/p>\n
I was wondering if it was possible to write a Powershell script that would access an sftp server, look through the sftp logs and report via PRTG the last time a file transferred? My experience with powershell is limited, but I have written a few basic Powershell scripts that are useful to my help desk job.<\/p>\n
The gist of the issue is, we coordinate with another organization that relies on us to send files over to them, our users put them on a drive we set up, that sends them to the correct server, the other organization has a script that transfers the files 3 times a day. We get flooded with tickets because staff from the other organization does not communicate with their IT department, as they request files after the last transfer is scheduled to go (why the script does not pull once an hour, I have no idea, but beyond my control).<\/p>\n
I feel like the script would help us, since all we would have to do is look at the sensor and tell users that everything is good on our end (99 times out of 100 it is), instead of looking through logs on the SFTP server to verify that everything is good on our end. Maybe there is an easier way than I asked for is why I wanted to include the backstory.<\/p>\n
Thanks!<\/p>","upvoteCount":3,"answerCount":11,"datePublished":"2021-02-02T18:06:28.000Z","author":{"@type":"Person","name":"ascetek","url":"https://community.spiceworks.com/u/ascetek"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello,<\/p>\n
I was wondering if it was possible to write a Powershell script that would access an sftp server, look through the sftp logs and report via PRTG the last time a file transferred? My experience with powershell is limited, but I have written a few basic Powershell scripts that are useful to my help desk job.<\/p>\n
The gist of the issue is, we coordinate with another organization that relies on us to send files over to them, our users put them on a drive we set up, that sends them to the correct server, the other organization has a script that transfers the files 3 times a day. We get flooded with tickets because staff from the other organization does not communicate with their IT department, as they request files after the last transfer is scheduled to go (why the script does not pull once an hour, I have no idea, but beyond my control).<\/p>\n
I feel like the script would help us, since all we would have to do is look at the sensor and tell users that everything is good on our end (99 times out of 100 it is), instead of looking through logs on the SFTP server to verify that everything is good on our end. Maybe there is an easier way than I asked for is why I wanted to include the backstory.<\/p>\n
Thanks!<\/p>","upvoteCount":3,"datePublished":"2021-02-02T18:06:28.000Z","url":"https://community.spiceworks.com/t/powershell-sftp-prtg-monitor/789366/1","author":{"@type":"Person","name":"ascetek","url":"https://community.spiceworks.com/u/ascetek"}},{"@type":"Answer","text":"