New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Disk Transfers per Second Sensor Sensor

Votes:

0

Your Vote:

Up

Down

I have created a custom WMI sensor to monitor disk transfers per second on a selected disk using the SQL script:

SELECT DiskTransfersPersec FROM CPQ_PhysicalDisk WHERE PhysicalDisk Like '%F:%'

If the sensor returns any value higher than 0 it errors.

Example error: '16.9246711730957' is not a valid integer value

The value is the correct reading, however why does it state that it is not a valid integer value?

Thanks James

custom-sensor iops prtg wmi

Created on Mar 3, 2010 9:54:50 AM by  James Luxton (0) 1

Last change on Apr 29, 2010 9:39:41 AM by  Daniel Zobel [Paessler Support]



3 Replies

Accepted Answer

Votes:

1

Your Vote:

Up

Down

James,

WMI custom sensors are limited to integer values and your counter returns a floating point value. That's the reason for the error.

Unfortunately there is no way in WQL to truncate or round a floating point value, so there is nothing you can do at the moment to get this WMI counter working.

Instead please try to find a counter that returns an integer value, e.g. a counter that returns a "counted" value (kilobyte, packets, etc.), not a value that is already divided by a time measurement (kilobytes per second, packets per second, etc.).

We'll integrate support for floating point values in a future version.

- Volker

Created on Mar 3, 2010 1:11:55 PM by  Volker Uffelmann [Paessler Support]

Last change on Mar 3, 2010 1:15:35 PM by  Dirk Paessler [Founder Paessler AG] (10,848) 3 4



Votes:

1

Your Vote:

Up

Down

A possible alternative to using WMI for Disk Transfers per Second would be an SNMP Library sensor using SNMP Informant. As long as the SNMP Informant agent is installed on the server being monitored.

I have found that the freeware version of SNMP Informant gives me access to all of the disk usage counters like Reads, Writes, and Transfers per second as well as Disk Queue Length.

Jason Luedke

Created on Mar 3, 2010 6:29:16 PM by  Foy Whitley (10)




Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.