All,
I've implemented this sensor in my monitoring solution:
https://github.com/htrengove/PRTGwindowsbackup/
It's running and connecting fine, I just seem to not be seeing the message of last successful backup. It's seems to truncate the date and only leave: "Last Successful Backup:"
https://imgur.com/a/J4Brht2
Curious if there is any formatting I would need to change to get it to completely display the correct date format?
Thanks!
Article Comments
Hello seanmailchimp,
please make sure that the date is a string instead of an object.
That would explain why it isn't shown there.
Sadly https://docs.microsoft.com/en-us/powershell/module/windowsserverbackup/get-wbsummary is rather quit about the data which is returned. So I cannot give you more hints.
But you can definitely run the script locally in your shell and play around until you get the right values. That would be my approach when documentation is lacking.
best regards,
Eugen Wilhelm
PRTG Development
Apr, 2019 - Permalink
Hello seanmailchimp,
please make sure that the date is a string instead of an object. That would explain why it isn't shown there.
Sadly https://docs.microsoft.com/en-us/powershell/module/windowsserverbackup/get-wbsummary is rather quit about the data which is returned. So I cannot give you more hints.
But you can definitely run the script locally in your shell and play around until you get the right values. That would be my approach when documentation is lacking.
best regards,
Eugen Wilhelm
PRTG Development
Apr, 2019 - Permalink