I have two Windows servers 2012 R2 and 2016 both run Veeam B&R 10
I have a powershell script to check the backup jobs replication jobs and copy jobs.
The same script is on both servers.
On the 2016 server I am getting the following errors
Host: TGCS024
Service: Win 12 VM Backup
Status: CRITICAL
Last check: 03-25-2020 14:25:37
Duration: 0d 2h 49m 43s
Attempt: 10/10
Status information: CHECK_NRPE: Socket timeout after 120 seconds.
Host: TGCS024
Service: Linux Backup Copy Job
Status: UNKNOWN
Last check: 03-25-2020 14:25:31
Duration: 0d 2h 50m 53s
Attempt: 10/10
Status information: Command checkveeambu didn't terminate within the timeout period 60s
From the Nagios server I run from the command line
root@tgcs017:/usr/lib/nagios/plugins# ./check_nrpe -u -H TGCS024 -t 120 -c checkveeambu -a 'Linux VM backup' 1
CHECK_NRPE: Socket timeout after 120 seconds.
root@tgcs017:/usr/lib/nagios/plugins# ./check_nrpe -u -H TGCS024 -t 240 -c checkveeambu -a 'Linux VM backup' 1
Command checkveeambu didn't terminate within the timeout period 60s
From Nagios cfg file
Code: Select all
define service{
use generic-service
host_name hostname
service_description Linux VM Backup
check_interval 1440
notification_interval 1440
check_command check_nrpe!checkveeambu! -a 'Linux VM Backup' 1
servicegroups Veeam
}
Code: Select all
check veeam backups
checkveeambu = cmd /c echo scripts/powershell/check_veeam_backups.ps1 "$ARG1$" "$ARG2$"; exit $LastExitCode | powershell.exe -command -
On the 2012R2 server all the checks work
When I run the script on the server directly it takes awhile to complete. It took 1min 52 seconds
PS C:\program files\nsclient++\scripts\powershell> .\check_veeam_backups.ps1 'linux vm backup' 1
Linux VM Backup Stopped 100% Success
Any thoughts or ideas?
Thank you
Tom