Backup and Recovery

Veeam Backup Check – Via Event Logs

Description:

Check_veeam_eventlogs is a PowerShell script to check if Veeam jobs ran properly. If you have the Endpoint version of Veeam, use the check_veeam_endpoint_eventlogs script instead. Note: This uses built-in Windows event logs to check for Veeam backup codes and it does *not* utilize the Veeam PowerShell snap-in because I had far too many issues on far too many systems. Yes, I also realize Veeam has the built-in capability to email, but that doesn’t scale well with any significant number of machines. And if you choose to only send email on failure, what happens if email isn’t working — spam blocks, authentication failures, etc? Too many possibilities to assume email notifications are even remotely reliable and Nagios is able to consolidate all alerts to a centralized location.
***
The examples in the script itself were recently updated to reflect changes to the plugins API location/syntax in newer versions of NCPA.
***
I have tested this extensively using NCPA, although NRPE and other agents would likely work. If you have issues with it, please let me know and I will make changes as necessary. The script is heavily commented and very readable with numerous usage examples in the script itself. Enjoy!

Current Version

1.0

Last Release Date

2015-05-06

Compatible With

  • Nagios 4.x
  • Nagios XI

Owner

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Photos
Project Notes
Reviews (5) Add a Review
Replication Job always shows failed
by rcoultas, April 30, 2021
I am attempting to get this check working with Veeam VBR 11 on Windows 2019. I have a single replication job that completed successfully in the last hour. Running the script from the shell on the Veeam server always shows::

Backup failed: backup job CoreReplication has not run in last 240 hours

Backup failed: backup job CoreReplication has not run in last 240 hours |'BackupNotRun'=1

Looking in Event Viewer, I can see Event ID 190 in the last hour, and the name matches exactly.
Helpful? Yes  No 
Need Help
by Premium, June 30, 2020
hello
What do I have to change in the NSCLIENT ++ .ini to make it work ?

Thanks a lot
Helpful? Yes  No 
Error
by pkrauss28, August 31, 2019
Hallo,

i got an Error
Get-WinEvent : Falscher Parameter
In C:Program FilesNSClient++scriptscheck_veeam_endpoint_eventlogs.ps1:43 Zeichen:15
+ ... ogEntries = Get-WinEvent -MaxEvents $ArgMaxEntries -FilterHashtable $ ...
+

Could you fix this?
Helpful? Yes  No 
problem nrpe
by slayder66, May 31, 2018
hello, I have 2.8.22 centreon and nsclient ++, in my nsclient.ini I have:
check_veeam_eventlogs = check_veeam_eventlogs.ps1 'Backup X3v7 4vm SRVBACKUP' 24

and the answer on centreon is:
Command line usage: check_veeam_eventlogs.ps1
Nagios NCPA usage: agent / plugin / check_veeam_eventlogs.ps1 / /

while command-line powershell directly execute on the server in question, the command:
check_veeam_eventlogs.ps1 'Backup X3v7 4vm SRVBACKUP' 24
works very well.

I feel that nsclient ++ does not approve of ' or space in my job?

thank you
Helpful? Yes  No 
Backup failed: backup job X has not run
by ytaborda17, March 31, 2018
I tried the plugin and it works fine, but it I try to use the seccond argument it always returns the same output "Backup failed: backup job X has not run in last 9999 hours".

How can I fix this?

Thanks in advance!
Owner's Reply:

I just tried it and it worked ok. Please make sure you are following the examples in the script comments. I also updated the script to reflect recent changes in the NCPA plugins syntax.


0 of 2 found this review helpful.
Helpful? Yes  No 2
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (6)
Favorites
0
Views
24,315