Hello PRTG Team,
I'd like to create a custom WMI sensor. WMI script looks like this:
select bytesreceivedpersec, bytessentpersec from Win32_PerfformattedData_Tcpip_NetworkInterface where name Like '%broadcom%'
(yes i know you got a similiar sensors among your build-in ones)
PRTG tells that there are to many fields.
If I just select "bytesreceivedpersec" however, the script runs fine. Do I have to create two sensors to get bytesreceivedpersec and bytessentpersec?
Actually I thought that's what channels are for... to label multiple return values properly? Yet I can only create one channel for each sensor created.
regards
Christian
Article Comments
Hello Thorsten,
thanks for your reply. OK.. that sort of worked, but how can I prevent devices from being cluttered up with sensors I've combined with the Sensor Factory? I can't seem to find an option to hide certain sensors.
In my example above.. I got a sensor for incoming traffic, outgoing traffic and the combined traffic of them both. Can I hide the traffic incoming & outgoing sensors so the only one visible is the combined one?
regards
Christian
Sep, 2011 - Permalink
I'm afraid hiding the source sensors is not possible, except if you would setup and use a user in PRTG which only has specific access to the sensor factory sensors.
Sep, 2011 - Permalink
Will the multi-channel custom WMI sensor feature available in the near future?
May, 2018 - Permalink
As of right now, it's not planned.
Kind regards,
Stephan Linke, Tech Support Team
May, 2018 - Permalink
I'm afraid that due to the very low demand for that, combined with the rather complex implementation of such a sensor, it won't happen anytime soon. However, you could use PowerShell to query WMI objects with our Custom Advanced Sensors, have them execute multiple queries (or just one) and evaluate it accordingly.
PRTG Scheduler |
PRTGapi |
Feature Requests |
WMI Issues |
SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Feb, 2019 - Permalink
Dear Christan,
yes, in the moment you have to create two WMI Custom Sensors, each one getting one result. This can't be changed in the moment. You can then however use the Sensor Factory to display the results in one graph.
best regards.
Aug, 2011 - Permalink