Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Add option to call external command for backup status #44

Open
maxxer opened this issue Aug 2, 2021 · 3 comments
Open

[RFE] Add option to call external command for backup status #44

maxxer opened this issue Aug 2, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@maxxer
Copy link

maxxer commented Aug 2, 2021

We use Zabbix, it would be great to be able to call zabbix_sender once the backup is done with the exit status, so we can log directly into the monitoring system if it was successful or not. Monitoring email is inconvenient (for us).

@kmwoley kmwoley added the enhancement New feature or request label Nov 15, 2021
@kmwoley
Copy link
Owner

kmwoley commented Nov 15, 2021

I like this idea. I'll work on something like this for the next revision.

@kmwoley
Copy link
Owner

kmwoley commented Feb 8, 2025

@maxxer - I know this is a bit old. If you're still interested, I've added a feature to do this the next release. Take a look at the release_1.8 branch and let me know if you think.

# (optional) custom actions 
# Define commands to pass to Invoke-Expression at script start and script end
# note: Errors will only be reported if the script does not eventually succeed. Errors 
#       from unsuccessful attempts to backup or maintain the repository will not result
#       in the custom error action being called unless all attempts to backup or maintain failed. 
$CustomActionStart = $null
$CustomActionEndError = $null
$CustomActionEndSuccess = $null

# Examples: Calling a healthcheck remote service
# $healthCheckURL = "https://healthcheckservice.com/etc/etc"
# $CustomActionStart = "Invoke-RestMethod $healthCheckURL/start"
# $CustomActionEndError = "Invoke-RestMethod $healthCheckURL/fail"
# $CustomActionEndSuccess = "Invoke-RestMethod $healthCheckURL"

# Example: Invoking a script
# $successScript = Join-Path $InstallPath "mySuccessScript.ps1"
# $CustomActionEndSuccess = "& $successScript"

@maxxer
Copy link
Author

maxxer commented Feb 10, 2025

Thank you for the update! Unfortunately I'm out of this business lately ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants