Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uint issue #14

Open
Greyspirit128 opened this issue Nov 7, 2016 · 1 comment
Open

Uint issue #14

Greyspirit128 opened this issue Nov 7, 2016 · 1 comment

Comments

@Greyspirit128
Copy link

The Symantec System Recovery poll script sometimes fails. copied the script from NCentral and put it on the server and ran it manually. Looking closer I found that the line 91

$lastBackupMinsAgo = (($lastBackupDate - $timenow).Totalminutes) * -1

sometimes returns a negative number causing a UINT callout. Seems to be mostly when run right after backup completes. Sometimes for unknown reason, even after 24 hours it still does it. Might be sometime with the time of day but I didn't have time to localize it further. I propose a change to cause it to always be a positive number.

$lastBackupMinsAgo = [Math]::ABS( (($lastBackupDate - $timenow).Totalminutes) )

@jamesweakley
Copy link
Contributor

While it would be ideal to determine what causes the problem (perhaps continually poll and log the last backup date during the backup?)

Failing that, this workaround seems pretty safe, the worst it would do is turn the existing monitoring error into a failed backup alert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants