Finding an agent...?

Hello all,We are getting a message on our console every 1-3 minutes:

09/01/2004 03:01:15 PM Agent ‘Counter’ error: Notes error: You are not authorized to perform that operation

Based on the frequency, I belive it’s a triggered agent somewhere, not scheduled. ‘tell amgr sched’ reveals nothing.

The ‘tell amgr debug *’ command reveals no other information.

Any other ideas how I can track down the location of this agent?

Subject: Sounds like it is in the “homepage” database for your web site.

Based on the name “Counter” I would assume that it is a hit counter for your site.

Subject: RE: Sounds like it is in the “homepage” database for your web site.

Reasonable guess… but I already checked. Just did an extended search on Webmail, etc. Nothing.

Thanks though.

Subject: RE: Sounds like it is in the “homepage” database for your web site.

have a script cycle though all the datbase looking for an agent with that name. There is a LotusScript class for agents.

Subject: RE: Sounds like it is in the “homepage” database for your web site.

Thought of that one… and <yuck!> was hoping for an easier answer. But that should do the trick.

Thank you

Subject: Its not all that hard…

Create a button in a memo and paste in the following code:Sub Click(Source As Button)

Dim dbdir As New NotesDbDirectory("TSNet03/Teamwork")

Dim db As NotesDatabase

Set db = dbdir.GetFirstDatabase(DATABASE)

While Not(db Is Nothing)

	Print "Processing " + db.FileName

	Call db.Open("", "")

	If db.IsOpen And Isarray(db.Agents) Then

		Forall ag1 In db.Agents

			If ag1.Name = "Counter" Then

				Msgbox "Found agent Counter in " + db.FileName

			End If

		End Forall

	End If

	Set db = dbdir.GetNextDatabase

Wend

End Sub