Home Directory Plugins Backup and Recovery Veeam Backup Check - Via Event Logs

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Veeam Backup Check - Via Event Logs

Rating
3 votes
Favoured:
0
Current Version
1.0
Last Release Date
2015-05-06
Compatible With
  • Nagios 4.x
  • Nagios XI
Twitter Handle
@oneoffdallas
License
GPL
Hits
6796
Files:
FileDescription
veeam_backup.pngExample output for a successful backup job
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Veeam Backup Check - Via Event Logs
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!
Reviews (2)
byslayder66, May 4, 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
byytaborda17, March 21, 2018
0 of 1 people found this review helpful
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.