MOM 2005 Script Error
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
MOM 2005 Script Error

 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM
Author Message
David Thomas
Guest





Posted: Tue Jan 25, 2005 5:54 am    Post subject: MOM 2005 Script Error Reply with quote

I'm getting an error alert due to a script failing, with the
associated event 9100's that cause the alert. The script in question
is "MOM Action Account Expiration Check" and it fails on line 90. If
blank lines are counted line 90 is a Dim statement, so I don't think
that's it. If blank lines aren't counted line 90 is setting the alert
level during alert creation. The alert its creating is to tell me
that the Action account is due it expire in X days. I believe I have
the action account set up to never expire (blah blah blah security
blah blah).

Any ideas?

Here's the subfunction:
Sub CreateAlert(ByVal sAccount, ByVal lDays, ByVal lAlertLevel)
Dim oAlert
Set oAlert = ScriptContext.CreateAlert()
With oAlert
.Name = sAccount & " password expires soon"
.Description = "The password for the " & sAccount & " action
account will expire in " & lDays & " days."
.AlertSource = "Microsoft Operations Manager"
.AlertLevel = lAlertLevel <----- Line 90 w\o blank lines
End With
ScriptContext.Submit oAlert
End Sub
Back to top
JesseH
Guest





Posted: Fri Jan 28, 2005 10:01 pm    Post subject: Re: MOM 2005 Script Error Reply with quote

You may want to try setting your own alert level here... say 50 and see if
that works?

"David Thomas" <DaveT72@yahoo.ca> wrote in message
news:j72bv09ru65t48neaee10ei8iqjtapd6ov@4ax.com...
Quote:
I'm getting an error alert due to a script failing, with the
associated event 9100's that cause the alert. The script in question
is "MOM Action Account Expiration Check" and it fails on line 90. If
blank lines are counted line 90 is a Dim statement, so I don't think
that's it. If blank lines aren't counted line 90 is setting the alert
level during alert creation. The alert its creating is to tell me
that the Action account is due it expire in X days. I believe I have
the action account set up to never expire (blah blah blah security
blah blah).

Any ideas?

Here's the subfunction:
Sub CreateAlert(ByVal sAccount, ByVal lDays, ByVal lAlertLevel)
Dim oAlert
Set oAlert = ScriptContext.CreateAlert()
With oAlert
.Name = sAccount & " password expires soon"
.Description = "The password for the " & sAccount & " action
account will expire in " & lDays & " days."
.AlertSource = "Microsoft Operations Manager"
.AlertLevel = lAlertLevel <----- Line 90 w\o blank lines
End With
ScriptContext.Submit oAlert
End Sub
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB