# check_BackupExec_Active_Alerts is a Nagios Plugn for reading Active Alerts # # This script will check for the active alerts with severity Warning or Error # tested on BE2014 # It use NSClient++ to execute the ps1 script on the Backupexec server. # # Installation steps: On backup server: 1. Install NSClient++ and select NRPE 2. Edit the NSC.ini and in the [NRPE] section add: command[check_backupexec_active_alerts]=powershell.exe -executionpolicy bypass -file scripts\check_backupexec_active_alerts.ps1 3. Copy check_BackupExec_Active_Alerts.ps1 to C:\Program Files\NSClient++\scripts\ On the Nagios server: 4. In Commands.cfg add the following: # 'check_backupexec_active_alerts' command definition define command { command_name check_backupexec_active_alerts command_line $USER1$/check_nrpe -u -H $HOSTADDRESS$ -p 5666 -c check_backupexec_active_alerts -t 120 }