Can I create a custom sensor which provides the legend information (like the CPU sensor providing "Processor 1", "Processor 2") to graph the inside and outside temperature for one device?

The temperature values are stored in a SQL Server database. The custom sensor has to read the latest value from a view.


Article Comments

Dear Thomas,

on the 'Channels'-tab of the Custom Sensor, you can rename the channel from 'Value' to 'Processor 1' for example. Does this help?

Best Regards.


Dec, 2010 - Permalink

Torsten,

this helps not really. I want to setup a custom sensor which has three channels providing the same data type (in this case a temperature), but return different values. All those temperatures refer to the same device. Because I want to visually compare those temperatures I want to have all values in one graph.

Besides that I do want to realize the following scenario: We run a SMTP proxy server which stores reporting data in a SQL database. I want to setup a device for the proxy server itself and a sensor for the reporting. The probe should have the following channels: - Count of successfully delivered emails - Count of bounced emails - Count of accepted, but not delivered emails

Can I setup a custom sensor having more than one channel (besides the Downtime channel)?

Cheers, Thomas


Dec, 2010 - Permalink

At the moment an EXE/Script sensor can only have one channel, this will be changed soon. But for the time being, you could setup three Custom Sensors and combine their values using the Sensor Factory.

[Update] In PRTG 8 you can now add an EXE/Script advanced sensor. It expects XML as return values and supports multiple channels.


Dec, 2010 - Permalink

I will update to version 8 and check the new advanced sensors.


Dec, 2010 - Permalink

Is there a XML documentation or a custom demo sensor with XML output available?


Dec, 2010 - Permalink

The documentation for the "XML-Exe-Sensor" is under "Setup"->"PRTG API"->"Custom Sensors", but it might not be complete in the current 8.1.x release.


Dec, 2010 - Permalink