Giter Club home page Giter Club logo

veeamnotify's Introduction

VeeamNotify

Send Veeam Backup & Replication session summary notifications to Discord, Microsoft Teams, and Slack, detailing session result and statistics and optionally alerting you via mention when a job finishes in a warning or failed state.

VeeamNotify is a replacement for VeeamDiscordNotifications and the respective Teams and Slack projects, featuring improvements across the board and support for all the aforementioned messaging services in one, easy to use project.

Supported Notification Services

  • Discord
  • Slack
  • Microsoft Teams
  • Telegram

Please create a feature request if your preferred service isn't listed here.

Supported Veeam Job Types

  • VM Backup
  • VM Replication
  • Windows & Linux Agent Backup jobs*

*Agent job support

Due to limitations in Veeam, only some types of Agent jobs are supported.

Supported jobs are known as "Agent Backup" or "Managed by backup server". Unsupported jobs are known as "Agent policy" or "Managed by agent". See the spoilered illustration below if this isn't clear to you.

Illustrated screenshot showing an example of supported types

Note: Linux Agent Backup jobs are also supported, this image is only an example.

You can read about the difference between these two Agent job types here.

Unfortunately, even supported Agent jobs return a reduced amount of session information, so you won't see as much detail in the notification (see the example screenshots at the top).
As much relevant information as I've been able to discover from such backup sessions is included in the notifications, but I welcome any suggestions for improvement in this area.

Installation

Requirements:

  • Veeam Backup & Replication 11 or higher.
  • PowerShell 5.1 or higher.

Please see the How to Install wiki page.

Configuration

Default configuration can be found in C:\VeeamScripts\VeeamNotify\config\conf.json

Details and examples can be found in the Configuration Options wiki page.


Credits

MelonSmasher//TheSageColleges for the project which inspired me to make this.
dantho281 for various things - Assistance with silly little issues, the odd bugfix here and there, and the inspiration for and first works on the Updater.ps1 script.
Lee_Dailey for general pointers and the first revision of the ConvertTo-ByteUnit function.
philenst for committing or assisting with a number of core components of the project.
s0yun for the Installer.ps1 script.

Thank you all.

veeamnotify's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar philenst avatar tigattack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

veeamnotify's Issues

Notifications have stopped sending through to Teams

What happened?

We have successfully used the script for a few months with no issues, however recently the notifications have stopped coming through to our Teams Webhook. The script seems to be running successfully however no notifications come through, we have been in contact with Veeam regarding this however they seem to believe the scripting could be the issue rather than anything on their side.

Have you ever seen this issue before or seen a solution to this problem before.

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

No response

Relevant log output

No response

NTFY

Is your feature request related to a problem?

No response

Describe your ideal solution

Definition of done

Stretch

Further comments

[FEAT] File backup job support

Is your feature request related to a problem?

Currently there is no support for file backup jobs.

Describe your ideal solution

Definition of done

  • Basic support for file backup jobs

Stretch

Further comments

Error with B&R 12

What happened?

Upgraded to B&R 12 Community and now get this error. Seems "GetByOriginalSessionId" is now coming back as a null value

image

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

12

Relevant log output

**********************
Windows PowerShell transcript start
Start time: 20230425052532
Username: WORKGROUP\SYSTEM
RunAs User: WORKGROUP\SYSTEM
Configuration Name: 
Machine: WINSERVER (Microsoft Windows NT 10.0.20348.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1
Process ID: 14840
PSVersion: 5.1.20348.1366
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.1366
BuildVersion: 10.0.20348.1366
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2023-04-25T09:25:32.884Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2023-04-25_05.25.32_Bootstrap.log'.
2023-04-25T09:25:33.010Z [INFO] Version: v1.0
2023-04-25T09:25:33.355Z [INFO] Getting VBR job details
2023-04-25T09:25:53.891Z [INFO] Getting VBR session information
2023-04-25T09:25:54.143Z [INFO] Bootstrap script for Veeam job 'ubuntu' (job 18bf3c3b-c312-40ee-a0c1-2a3050d7bffa session f8037039-f6cd-400e-9016-8ae0b9ffd0a1) - Session & job detection complete.
2023-04-25T09:25:54.158Z [INFO] Launching AlertSender.ps1...
2023-04-25T09:25:54.252Z [INFO] AlertSender.ps1 launched successfully.
2023-04-25T09:25:54.268Z [INFO] Stopping transcript logging.

..................


}
 -Logfile C:\VeeamScripts\VeeamNotify\log\2023-04-25_05.25.32-ubuntu.log
Process ID: 2308
PSVersion: 5.1.20348.1366
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.1366
BuildVersion: 10.0.20348.1366
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2023-04-25T09:25:58.209Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2023-04-25_05.25.32-ubuntu.log'.
PS>TerminatingError(Get-VBRSessionInfo): "Exception calling "GetByOriginalSessionId" with "1" argument(s): "Object reference not set to an instance of an object.""
2023-04-25T09:25:59.089Z [ERROR] A terminating error occured:
2023-04-25T09:25:59.105Z [INFO] Stopping transcript logging.
**********************
Windows PowerShell transcript end
End time: 20230425052559
**********************

[FEAT] Notify only on Fail/Warn

Feat:

A configuration option to only send a notification when a job has failed or ended in a warning state.

Currently we have many jobs on many servers and it is sometimes difficult to spot failures even with notifications enabled.

Definition of done:

Only sending notifications on results other than success.

[FEAT] New service: cURL / Webhook endpoint

Is your feature request related to a problem?

cURL / Webhook

Describe your ideal solution

Send the log data etc. To webhooks or cURL to present the data in external tools. We have a monitoring section in our custom portal. We feed it from our linux backups with cURL uploads to a signed url in Laravel. And extract the data. Would be nice to have this option.

[FEAT] New service: Google Chat

Is your feature request related to a problem?

Not at all

Describe your ideal solution

Definition of done

Stretch

Further comments

Could you add the feature to send notifications to google chat spaces? could be great for us. We are looking for the same functionality of Discord notification, but using Google Workspaces Chat Spaces at destination.

[FEAT] New service: webex

Is your feature request related to a problem?

hello, how to integrate it with webex in the company?

Describe your ideal solution

Definition of done

Stretch

Further comments

[FEAT] Support full automation for Installer.ps1

Installer.ps1 currently includes quite a few interactive prompts.

This keeps it pretty user friendly and simple to use for people without more advanced knowledge, however, it does make it a fairly manual process.

Additional parameters should be added to allow overriding the prompts with values specified in the initial invocation of the script.

Example:

./Installer.ps1 -Version v1.0 -Service Discord -Webhook https://some.discord.webhook -Mention OnWarn,OnFail -UserId 1234567890 -DeployConfig

[BUG] installer is broken due

What happened?

When attempting to run the installer in either option 1 or 2 it's checking for a file but the file doesn't exisit because the installer hasn't downloaded any of the applications file yet.

Screenshot 2023-08-20 at 14 05 01

As I understand the installer in it's present iteration it should automatically download the needed files?

Steps To Reproduce

Run either option 1 or option 2 for installer on a veeam instance that's not got veeamnotify currently setup.

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

11.0.0.837

Relevant log output

Unable to provide any logs as the installer fails,

[FEAT] New service:

Is your feature request related to a problem?

Google Spaces (Google chat) could be a good addon for the amazing proyect.
We use it as an alert notification solution.

Thanks in advance.

Describe your ideal solution

Definition of done

Stretch

Further comments

Script error

What happened?

image

Receiving the follow error in veeam. Nothing in the logs file.

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

11.0.1.1261

Relevant log output

Log folder empty

[BUG] Install method broken

What happened?

The one-line install command produces the following error in both PS 5.1 and PS 7:

Invoke-Expression: The attribute cannot be added because variable Version with value would no longer be valid

This is a known issue in PowerShell - PowerShell/PowerShell#8778

Steps To Reproduce

  1. Run the one-line install command.
  2. See error.

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

N/A

Relevant log output

iex : The attribute cannot be added because variable Version with value  would no longer be valid.
At line:1 char:166
+ ...  -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('ht ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (:) [Invoke-Expression], ValidationMetadataException
    + FullyQualifiedErrorId : ValidateSetFailure,Microsoft.PowerShell.Commands.InvokeExpressionCommand

job status Api callback

Is your feature request related to a problem?

Hello,

I am planning to create an admin dashboard to manage and monitor job status in Veeam. I would like to display job progress as a percentage on this dashboard.

To do this effectively, I need to set up callbacks from Veeam to fetch relevant data. Unfortunately, I couldn't find any documentation on this process.

Does your package support sending information to a specific URL for this purpose?

Thank you for your assistance.

Describe your ideal solution

Definition of done

Stretch

Further comments

[BUG] Veeam configuration deployment error

What happened?

When running the install I get this error when backup jobs on the B&R are Computer Agent Backups.

Job Configuration Selection
Do you wish to configure all supported jobs, make a decision for each job, or configure none?
[A] All  [D] Decide  [N] None  [?] Help (default is "A"): a
: This cmdlet is not supported for computer backup jobs. Use Set-VBRComputerBackupJob instead.ion.ps1: line 269

When I change the line 269 in the 'resources\DeployVeeamConfiguration.ps1' file to Set-VBRJobOptions -Job $job -Options $jobOptions | Out-Null the following output is displayed:

Job Configuration Selection
Do you wish to configure all supported jobs, make a decision for each job, or configure none?
[A] All  [D] Decide  [N] None  [?] Help (default is "A"): a
: A parameter cannot be found that matches parameter name 'Options'.rces\DeployVeeamConfiguration.ps1: line 269

So... I removed the options switch on line 269 so it looks like this: Set-VBRJobOptions -Job $job | Out-Null

Then it succeeded.

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

12.1.0.2131

Relevant log output

No response

Can't send the notification to Discord

What happened?

It won't send the notification to Discord.

Running post-job script Executing custom command [powershell.exe], arguments [ -ExecutionPolicy ByPass -Command " try {& 'C:\VeeamScripts\VeeamNotify\Bootstrap.ps1' -ErrorAction Stop } catch { exit 1 } "]
Post-job script completed successfully

I'm using B&R version 12.

Thanks.

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

12.0.0.1420 P20230412

Relevant log output

{
    "services":  {
                     "discord":  {
                                     "webhook":  "https://discord.com/api/webhooks/xxx",
                                     "user_id":  "123456789"
                                 },
                     "slack":  {
                                   "webhook":  "SlackWebhook",
                                   "user_id":  "A1B2C3D4E5"
                               },
                     "teams":  {
                                   "webhook":  "TeamsWebhook",
                                   "user_id":  "[email protected]",
                                   "user_name":  "Your Name"
                               }
                 },
    "mentions":  {
                     "on_failure":  false,
                     "on_warning":  false
                 },
    "notifications":  {
                          "on_success":  true,
                          "on_failure":  true,
                          "on_warning":  true
                      },
    "logging":  {
                    "enabled":  true,
                    "level":  "info",
                    "max_age_days":  7
                },
    "update":  {
                   "notify":  true,
                   "auto_update":  false,
                   "auto_update_comment":  "auto_update will NOT work. Leave as \u0027false\u0027"
               },
    "thumbnail":  "https://raw.githubusercontent.com/tigattack/VeeamDiscordNotifications/master/asset/thumb01.png"
}

**********************
Windows PowerShell transcript start
Start time: 20230906101409
Username: DNX\SYSTEM
RunAs User: DNX\SYSTEM
Configuration Name: 
Machine: DNX-HH-VEEAM (Microsoft Windows NT 10.0.20348.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1
Process ID: 39800
PSVersion: 5.1.20348.1850
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.1850
BuildVersion: 10.0.20348.1850
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2023-09-06T02:14:09.343Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2023-09-06_10.14.09_Bootstrap.log'.
2023-09-06T02:14:09.453Z [INFO] Version: v1.0
2023-09-06T02:14:09.781Z [INFO] Getting VBR job details
2023-09-06T02:14:17.593Z [INFO] Getting VBR session information
2023-09-06T02:14:17.843Z [INFO] Bootstrap script for Veeam job 'VM WORKGROUP Guests with DATA Partitions Only' (job d28502ac-80a6-414d-86aa-5680312a7ed5 session c4e79571-de21-45a1-8883-c01f5793f534) - Session & job detection complete.
2023-09-06T02:14:17.859Z [INFO] Launching AlertSender.ps1...
2023-09-06T02:14:17.921Z [INFO] AlertSender.ps1 launched successfully.
2023-09-06T02:14:17.953Z [INFO] Stopping transcript logging.
**********************
Windows PowerShell transcript end
End time: 20230906101417
**********************
**********************
Windows PowerShell transcript start
Start time: 20230906101421
Username: XXX\SYSTEM
RunAs User: XXX\SYSTEM
Configuration Name: 
Machine: DNX-HH-VEEAM (Microsoft Windows NT 10.0.20348.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -file C:\VeeamScripts\VeeamNotify\AlertSender.ps1 -JobName VM WORKGROUP Guests with DATA Partitions Only -Id c4e79571-de21-45a1-8883-c01f5793f534 -JobType EpAgentBackup -Config {
  "services": {
           "discord": {
                   "webhook": "https://discord.com/api/webhooks/xxx",
                   "user_id": "123456789"
                 },
           "slack": {
                  "webhook": "SlackWebhook",
                  "user_id": "A1B2C3D4E5"
                },
           "teams": {
                  "webhook": "TeamsWebhook",
                  "user_id": "[email protected]",
                  "user_name": "Your Name"
                }
         },
  "mentions": {
           "on_failure": false,
           "on_warning": false
         },
  "notifications": {
             "on_success": true,
             "on_failure": true,
             "on_warning": true
           },
  "logging": {
          "enabled": true,
          "level": "info",
          "max_age_days": 7
        },
  "update": {
          "notify": true,
          "auto_update": false,
          "auto_update_comment": "auto_update will NOT work. Leave as \u0027false\u0027"
        },
  "thumbnail": "https://raw.githubusercontent.com/tigattack/VeeamDiscordNotifications/master/asset/thumb01.png"
}
 -Logfile C:\VeeamScripts\VeeamNotify\log\2023-09-06_10.14.09-VM_WORKGROUP_Guests_with_DATA_Partitions_Only.log
Process ID: 42764
PSVersion: 5.1.20348.1850
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.1850
BuildVersion: 10.0.20348.1850
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2023-09-06T02:14:21.468Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2023-09-06_10.14.09-VM_WORKGROUP_Guests_with_DATA_Partitions_Only.log'.
PS>TerminatingError(Get-VBRSessionInfo): "Exception calling "GetByOriginalSessionId" with "1" argument(s): "Object reference not set to an instance of an object.""
2023-09-06T02:14:22.406Z [ERROR] A terminating error occured:
2023-09-06T02:14:22.421Z [INFO] Stopping transcript logging.
**********************
Windows PowerShell transcript end
End time: 20230906101422
**********************

Post-Job Script TIMEOUT Warning

What happened?

Hi,
We install the latest DEV version.
But when the script is run simultaneously with another Backup JOB we always get the TIMEOUT Warning.
Are there any restrictions on the simultaneous execution of the Post-Job Script?

image

Steps To Reproduce

No response

VeeamNotify version

1.0-beta1

PowerShell version

5.1

Veeam Backup & Replication build number

No response

Relevant log output

No response

[FEAT] New service: Multi webhook discord

Is your feature request related to a problem?

No response

Describe your ideal solution

Enable multiple discord webhooks to be configured to send alerts to multiple servers

[FEAT] Backup copy job support

Is your feature request related to a problem?

Currently there is no support for backup copy jobs.

Describe your ideal solution

Definition of done

  • Basic support for backup copy jobs.

Stretch

Further comments

[FEAT] New service: FILES BACKUP

Is your feature request related to a problem?

No response

Describe your ideal solution

Definition of done

Stretch

Further comments

Improve logging function

Add logic to Write-LogMessage function to handle logging levels (i.e. debug, info, warn, error).

[FEAT] Telegram service support

Is your feature request related to a problem?

Currently there is no support for sending to Telegram.

Describe your ideal solution

Definition of done

  • Basic support for sending notifications to Telegram.
  • Simple Markdown formatting will suffice; Telegram does not support embeds/cards like Discord, Slack, and Teams do.

Stretch

  • Find a workaround to improve formatting. Probably not realistic.

Further comments

[BUG] Config script ignores InstallParentPath

What happened?

If you allow the installer to configure your jobs for you it ignores any custom InstallParentPath and uses the default C:\VeeamScripts.

The install passes InstallParentPath here https://github.com/tigattack/VeeamNotify/blob/main/Installer.ps1#L390 but the DeployVeeamConfiguration.ps1 expects $InstallPath as a parameter

Steps To Reproduce

  • Run installer.ps1 with a custom InstallParentPath
  • Allow the installer to configure jobs for you
  • Check the post-job script path for the jobs

VeeamNotify version

1.0-beta1

PowerShell version

5.1

Veeam Backup & Replication build number

11.0.1.1261

Relevant log output

.\VeeamNotify.ps1 -InstallParentPath "D:\VeeamScripts\" -Latest "Release"

Configuration set successfully. Configuration can be found in "D:\VeeamScripts\\VeeamNotify\config\conf.json".

Updated post-job script for job "Veeam esxi Backup".
Old: Powershell.exe -ExecutionPolicy Bypass -File D:\VeeamScripts\VeeamDiscordNotifications\DiscordNotificationBootstrap.ps1
New: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1

Error running the Installation Script

After running the script and entering the Slack URL we get the error below in powershell.
I tried with several options (B, F, N, W) and they all give the same error.

Exception setting "on_fail": "The property 'on_fail' cannot be found on this object. Verify that the property exists
and can be set."
At D:\Veeam\Scripts_Veeam\Installer.ps1:214 char:3

  •     $config.mentions.on_fail = $true
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecord
      2022-04-12 12_42_01-172 16 1 6 - Conexão de Área de Trabalho Remota
      Exception
    • FullyQualifiedErrorId : ExceptionWhenSetting

Ping URL on success (feature request)

Would be good to have an option to ping a URL for success. Currently I have this bodged into the script manually.

Example usecase: ping endpoint for https://healthchecks.io on success, so will be alerted if you miss one. The on fail mention is pretty good but would not alert you if your script/job didn't run at all

[BUG] No creating log file or sending notification to Teams Hook

What happened?

OS: Windows Server 2016
Veeam: version 12 latest

I ran the command below and ran through the setup with no issues and checked in Veeam and can see the scripts have been added but when I have a failed backup nothing appears in Teams.

I have created a webhook in Teams and confirmed the information is correct.

I have enabled the debug logging in the config file but the log folder is empty and no logs created.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/tigattack/VeeamNotify/main/Installer.ps1'))

Steps To Reproduce

  1. Ran backup and did a stop job, job showed failed.
  2. No information was posted to the Teams Channel.
  3. no logs files were generated even with debug enabled.

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

12.0.0.1420 P20230412

Relevant log output

{
    "services":  {
                     "discord":  {
                                     "webhook":  "DiscordWebhook",
                                     "user_id":  "123456789"
                                 },
                     "slack":  {
                                   "webhook":  "SlackWebhook",
                                   "user_id":  "A1B2C3D4E5"
                               },
                     "teams":  {
                                   "webhook":  "https://ttmcazurettmcco.webhook.office.com/webhookb2/b688e623removed",
                                   "user_id":  "[email protected]",
                                   "user_name":  ""
                               }
                 },
    "mentions":  {
                     "on_failure":  true,
                     "on_warning":  true
                 },
    "notifications":  {
                          "on_success":  true,
                          "on_failure":  true,
                          "on_warning":  true
                      },
    "logging":  {
                    "enabled":  true,
                    "level":  "debug",
                    "max_age_days":  7
                },
    "update":  {
                   "notify":  true,
                   "auto_update":  false,
                   "auto_update_comment":  "auto_update will NOT work. Leave as \u0027false\u0027"
               },
    "thumbnail":  "https://raw.githubusercontent.com/tigattack/VeeamDiscordNotifications/master/asset/thumb01.png"
}

[FEAT] Notifications for Veeam Backup for Office365

Is your feature request related to a problem?

Add the option for Veaam Backup For Office365/Google

Describe your ideal solution

Would be awesome if we could use this tool for Veeam Backup for Office365/Google so we have everything of veeam in one place.
The Veeam Backup for Office365 etc. Does only have email options no post/pre scripts

Logrotate feature

Default 7d with LOG_EXPIRY_DAYS config option, inc. 0 option to disable.

I get an error when sending a message in Telegram. I don't understand what the error could be.

What happened?

I get an error when sending a message in Telegram. I don't understand what the error could be.

Steps To Reproduce

2024-04-19T20:36:00.442Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2024-04-19_23.35.44-sait_(Incremental).log'.
2024-04-19T20:36:13.940Z [INFO] Sending notification to Telegram.
PS>TerminatingError(Send-Payload): "Не удается найти параметр, соответствующий имени параметра "Body"."
2024-04-19T20:36:14.014Z [ERROR] Unable to send Telegram notification: Не удается найти параметр, соответствующий имени параметра "Body".
2024-04-19T20:36:14.102Z [INFO] Stopping transcript logging.

VeeamNotify version

v1.0

PowerShell version

7.x

Veeam Backup & Replication build number

11.01

Relevant log output

**********************
Начало записи сценария Windows PowerShell
Время начала: 20240419233544
Имя пользователя: WORK\СИСТЕМА
Запуск от имени пользователя: WORK\СИСТЕМА
Имя конфигурации: 
Компьютер: VEEAM (Microsoft Windows NT 10.0.17763.0)
Ведущее приложение: powershell.exe -ExecutionPolicy ByPass -Command  try {& 'C:\VeeamScripts\VeeamNotify\Bootstrap.ps1'  -ErrorAction Stop } catch { exit 1 } 
ИД процесса: 4072
PSVersion: 5.1.17763.5458
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.5458
BuildVersion: 10.0.17763.5458
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2024-04-19T20:35:44.642Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2024-04-19_23.35.44_Bootstrap.log'.
2024-04-19T20:35:44.779Z [INFO] Version: v1.0.1
2024-04-19T20:35:45.077Z [INFO] Getting VBR job details
2024-04-19T20:35:51.298Z [INFO] Getting VBR session information
2024-04-19T20:35:57.408Z [INFO] Bootstrap script for Veeam job 'sait (Incremental)' (job f525ae6b-ad10-4665-833e-36d42f24559c session 1a31f01e-19dd-4325-b554-4255d10ddc55) - Session & job detection complete.
2024-04-19T20:35:57.427Z [INFO] Launching AlertSender.ps1...
2024-04-19T20:35:57.487Z [INFO] AlertSender.ps1 launched successfully.
2024-04-19T20:35:57.504Z [INFO] Stopping transcript logging.
**********************
Конец записи протокола Windows PowerShell
Время окончания: 20240419233557
**********************
**********************
Начало записи сценария Windows PowerShell
Время начала: 20240419233600
Имя пользователя: WORK\СИСТЕМА
Запуск от имени пользователя: WORK\СИСТЕМА
Имя конфигурации: 
Компьютер: VEEAM (Microsoft Windows NT 10.0.17763.0)
Ведущее приложение: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file C:\VeeamScripts\VeeamNotify\AlertSender.ps1 -JobName sait (Incremental) -Id 1a31f01e-19dd-4325-b554-4255d10ddc55 -JobType Backup -Config {  "services": {    "discord": {      "webhook": "DiscordWebhook",      "user_id": "123456789"    },    "slack": {      "webhook": "SlackWebhook",      "user_id": "A1B2C3D4E5"    },    "teams": {      "webhook": "TeamsWebhook",      "user_id": "[email protected]",      "user_name": "Your Name"    },    "telegram": {      "bot_token": "..............",      "chat_id": "........"    }  },  "mentions": {    "on_failure": false,    "on_warning": false  },  "notifications": {    "on_success": true,    "on_failure": true,    "on_warning": true  },  "logging": {    "enabled": true,    "level": "info",    "max_age_days": 7  },  "update": {    "notify": true,    "auto_update": false,    "auto_update_comment": "auto_update will NOT work. Leave as 'false'"  },  "thumbnail": "https://raw.githubusercontent.com/tigattack/VeeamDiscordNotifications/master/asset/thumb01.png"} -Logfile C:\VeeamScripts\VeeamNotify\log\2024-04-19_23.35.44-sait_(Incremental).log
ИД процесса: 10844
PSVersion: 5.1.17763.5458
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.5458
BuildVersion: 10.0.17763.5458
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2024-04-19T20:36:00.442Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2024-04-19_23.35.44-sait_(Incremental).log'.
2024-04-19T20:36:13.940Z [INFO] Sending notification to Telegram.
PS>TerminatingError(Send-Payload): "Не удается найти параметр, соответствующий имени параметра "Body"."
2024-04-19T20:36:14.014Z [ERROR] Unable to send Telegram notification: Не удается найти параметр, соответствующий имени параметра "Body".
2024-04-19T20:36:14.102Z [INFO] Stopping transcript logging.
**********************
Конец записи протокола Windows PowerShell
Время окончания: 20240419233614
**********************

[BUG] � instead of umlauts

What happened?

I'm using VeeamNotify on a German server. The date contains umlauts and the current encoding doesn't seem to support them.

grafik

Steps To Reproduce

  1. run script in german enviroment

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

No response

Relevant log output

No response

Linux Agent Support?

Is your feature request related to a problem?

No response

Describe your ideal solution

Hello all,

Is it actually possible to use the script for the Linux Agent? Since my servers are backed up via the Linux Agent, without a Veeam Backup & Replication Server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.