Hello every one,
I'm testing prtg and today i try to know if one of my script launch every hours correctly launch. This script is launch every hour thanks to task scheduler, and the script is a .bat
The script is take files from a distant ftp and paste them into my folder.
Is it possible to and see in prtg if my script is correctly execute ??
thank you very much
Article Comments
I would learn towards altering the script.
For a example adding code to create a "heartbeat" file one the script complete and checks its done what it has meant to do. Get PRTG to check the age of this file, its its more than 2 hours old, it means it fail.
To expand on this (this is what i use), a code snippet that writes the absolute date and the status in CSV format. I then use and XML EXE Sensor that runs a script that turns this CSV into a XML with a relative date (ie, the age).
The XML EXE censor that reads this and can alarm on any of the channels.
Its a bit to create at first, but it can easily be added to dozens of scripts.
Let me know if it sounds useful and you want me to expand, I can post some code, but would have to clean it up first :)
Mar, 2018 - Permalink
Thanks for chipping in, AndrewG. Please feel free to share your code or "template" you're suggesting. You could also contribute it to PRTG Script World if you like.
Kind regards,
Erhard
Mar, 2018 - Permalink
Hello there,
You can monitor the task itself with "ScheduledTask2XML" from here. You need an EXE/Script Advanced Sensor for this.
Kind regards,
Erhard
Mar, 2018 - Permalink