How to Track Script Execution and Exit Status?

0
3
Asked By CuriousCat42 On

I'm managing multiple scripts across various systems and I'm on the lookout for a tool, preferably open-source, that can help me monitor the run status of these scripts—specifically whether they ran successfully or encountered any errors based on their exit codes. Ideally, I'd like to set up a server that allows me to make REST API calls to log whether a script executed and what its outcome was. A dashboard for easy viewing of this information would be fantastic! For context, my scripts are primarily running on Windows servers, but I also have a bunch of Linux servers with various open-source utilities. Currently, I'm handling reporting through email, but that's becoming a bit overwhelming.

6 Answers

Answered By TaskScheduler99 On

We use VisualCron at my workplace. It includes all the functionality you’re looking for and seems to be a solid solution for tracking.

Answered By CloudNinja23 On

I'm in the process of using Azure Log Analytics for my PowerShell scripts. It's a paid option, charging about $2-$3 per GB of data, but it can handle quite a bit in terms of metrics. You would need a fair amount of data to hit a GB, though.

Answered By LogMaster88 On

I usually log outputs to files and then use PowerBI to visualize everything nicely. You might also want to check out Grafana; it can do a similar job and help you track metrics.

Answered By ServerGuru7 On

Have you considered using Nagios Core? It's good for this kind of thing, especially with the NRDP. You can send XML data with the exit codes and visualize it through graphs.

Answered By ExcelAdventurer On

My company didn't want to invest in software, so to keep things simple, I made my script update a number in a single-column Excel sheet. One column tracks the status, and another logs the exit codes.

Answered By DevOpsDude On

Don't forget about Jenkins! It's widely used and can track script execution as well.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.