I am writing a PowerShell script that will be polling the contents of out logging databases. I would like to be able to determine what queries should be run based on the name of the executing monitor. Is there a way to get the name of that monitor via the "$mon" object? I know that you can get ALL the monitors that are assigned to the server, but how do I know what the name of the current monitor is?

asked 10 Oct '16, 09:20

TheSemicolon's gravatar image

TheSemicolon
33810
accept rate: 0%

No one has an the answer to this one?

(20 Oct '16, 07:50) TheSemicolon
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×10
×4

Asked: 10 Oct '16, 09:20

Seen: 5,581 times

Last updated: 20 Oct '16, 07:50