This post is more than 5 years old

163628

March 1st, 2013 11:00

exlude alerts for DVD drives on Logical disk space available rule

Hi,

I have created a new rule to monitor the drive space available in megabytes using logicaldisk topology for my windows Hosts. The rule is also trigger alerts for CD/DVD drives. I would need to exluded them from monitoring/alerting. Please guide if you have any idea how it can be exluded/ignored.

Scope query I am using : LogicalDisk : host.agents.type in {'ActiveDirectory', 'ExchangeAgent', 'WindowsAgent'} With spaceAvailable property. DVD drive alerts are ignored if I use LogicalDisk capacityavailable property. But it shows the free space available in % which I dont need.

132 Posts

March 13th, 2013 12:00

Go to Administration -> Tooling -> Script Console, and paste the following into the query box:

LogicalDisk : (host.agents.type in {'ActiveDirectory', 'ExchangeAgent', 'WindowsAgent'}) and (detail.writable != false)

select 'Do Query' and Let us know if that succeeds.

(It just worked for me)

171 Posts

March 1st, 2013 18:00

Are all of the drives D: or other such letter?  You could then just exclude that/those letters in the scope.  Otherwise it would take a little more work since you have to look at each logical drive and remove those that are CD (query the properties)

March 4th, 2013 04:00

No. There are different Drive letters like A:,D:,S: etc. I tried to eclude it from the scope, but I am not sure where exactly and how to exlude it in the scope. Here is the line I have in my scope to monitor AD,Exchange&windows servers. What exactly I need to add in the scope to exclude the drives.

LogicalDisk : host.agents.type in {'ActiveDirectory', 'ExchangeAgent', 'WindowsAgent'}

Thanks for your help.

171 Posts

March 7th, 2013 00:00

Can you post the scope and the rule text/code?

March 7th, 2013 05:00

I have attached the snapshot of the Rule scope. Please let me know if you need any additional information. ThanksHostLogicaldiskCapAcityavailableRule.png

Thanks.

171 Posts

March 7th, 2013 20:00

LogicalDisk : (host.agents.type in {'ActiveDirectory', 'ExchangeAgent', 'WindowsAgent'}) and (detail.writable != false)

March 13th, 2013 11:00

Hi,

I am getting the below error while validating this scope.

Scoping query is invalid: java.lang.IllegalArgumentException: Type 'foglight-5:Windows_System_FileSys_Table:12' does not have a property with the name 'writable'

March 14th, 2013 09:00

I am sorry to say that, I got the same error when I run this from the query box.

QueryException: java.lang.IllegalArgumentException: Type 'foglight-5:Windows_System_FileSys_Table:12' does not have a property with the name 'writable' - 3/14/13 2:33:15 AM

Please check your query and retry.

Thanks.

No Events found!

Top