These scripts can be used to add a (checkmk) service check for Veeam Agent. Since there is no built-in check for the Agent (only for Veeam B&R) in checkmk, i decided to write one of my own. They are tested with the FREE Version only.
The Powershell script parses the Log of the Agent located in "C:\ProgramData\Veeam\Endpoint". This should be always the same, according to https://www.veeam.com/kb2404. Updates may possibly break this, so it's work in progress.
successfully tested with (feel free to contribute more):
- v5.0.3.4708
This is how the output of the script can look like
2 "VeeamBackup" - Last Backup State: Failed, 24.10.2022 17:24:31
This is how the check look like in checkmk WebUI:
- Copy the
veeam-check.ps1
toC:\ProgramData\checkmk\agent\local
- Run a Discovery on your host
The Shell script parses the output of the Veeam Agent CLI. It uses veeamconfig session list
to retrieve the status of the last backups. You can check the usage of the CLI here: https://helpcenter.veeam.com/docs/agentforlinux/userguide/ui_overview_cmd.html?ver=50
successfully tested with (feel free to contribute more):
- v5.0.0.4318
This is how the output of the script can look like
0 "VeeamBackup" - Last Backup State: Success, 2022-10-26 06:00
This is how the check look like in checkmk WebUI:
- copy the
veeam-check.sh
to/var/lib/checkmk/local
wget https://github.com/Steffen-MLR/veeam-agent-check/raw/master/linux/veeam-check.sh sudo mv veeam-check.sh /var/lib/checkmk/local
- make the file executable
sudo chmod +x /var/lib/checkmk/local/veeam-check.sh
- Run a Discovery on your host