Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
kwhogster
Posts: 644 Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:
Post
by kwhogster » Mon Jan 29, 2018 9:25 pm
Nagios Core 4.3.4
Veeam B&R 9.5
Found this
https://exchange.nagios.org/directory/P ... ck/details
Works for my Backup and Replication Jobs
The Copy Jobs keeps saying it did not complete successfully.
Run this
Code: Select all
/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -t 50 -H TGCS008 -c checkveeambu -a "Win 81 Copy Job" 1
Results
Code: Select all
/usr/local/nagios/etc/objects# /usr/lib/nagios/plugins/check_nrpe -t 50 -H TGCS008 -c checkveeambu -a "Win 81 Copy Job" 1
WARNING! Job 'Win 81 Copy Job' didn't fully succeed.
nsclient.ini entry
Code: Select all
; check veeam backups
checkveeambu = cmd /c echo scripts/powershell/check_veeam.ps1 "$ARG1$" "$ARG2$"; exit $LastExitCode | powershell.exe -command -
My Veeam server cfg
Code: Select all
define service{
use generic-service
host_name TGCS008
service_description Win 10 Copy Job
check_interval 1440
notification_interval 0
check_command check_nrpe!checkveeambu! -a 'Win 10 Copy Job' 1
servicegroups Veeam
}
Any ideas?
Last edited by
dwhitfield on Tue Jan 30, 2018 11:58 am, edited 1 time in total.
Reason: code blocks FTW
dwhitfield
Former Nagios Staff
Posts: 4583 Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:
Post
by dwhitfield » Tue Jan 30, 2018 12:01 pm
I think you have a typo (the command twice).
If you run the powershell locally, what does it say? I suspect this has nothing to do with NRPE (the output of the plugin will tell us this), but rather is an issue with the plugin which would leave you with the options of rewriting it, or finding another plugin.
kwhogster
Posts: 644 Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:
Post
by kwhogster » Tue Jan 30, 2018 8:21 pm
Same results
PS C:\program files\nsclient++\scripts\powershell> .\check_veeam.ps1 "Win 81 Copy Job"
WARNING! Job 'Win 81 Copy Job' didn't fully succeed.
PS C:\program files\nsclient++\scripts\powershell>
Any thoughts on another one
This one works for Backup jobs and replication jobs too. Strange that it does not for the Copy jobs?
Thanks
Tom
dwhitfield
Former Nagios Staff
Posts: 4583 Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:
Post
by dwhitfield » Wed Jan 31, 2018 10:13 am
You'll need to email the author at
nagiosexchange@robinsmit.nl , find another plugin, or rewrite the current plugin. This is not a script we wrote or support.
kwhogster
Posts: 644 Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:
Post
by kwhogster » Wed Jan 31, 2018 10:15 pm
Thanks
Found this one
https://exchange.nagios.org/directory/P ... ps/details
After some minor changes to the powershell script I got it working.
PS C:\program files\nsclient++\scripts\powershell> .\check_veeam_backups.ps1 "Win 81 Copy Job" 1
OK! Backup process of job 'Win 81 Copy Job' completed successfully.
PS C:\program files\nsclient++\scripts\powershell>
This can now be locked