I have written several custom sensors using a windows console app in c# using the same pattern. System.Environment.Exit(0) for success and System.Environment.Exit(2) for failure. My previously written sensors worked fine and are still working. However, I have written a new sensor with the same pattern and it fails with PRTG saying that it did not get a response. To figure out this issue I have simplified the sensor to the following and it still fails.
class Program { static void Main(string[] args) { System.Environment.Exit(0);
} }
Dear cstone
That program cannot work in PRTG as is does not produce a console output which can be interpreted by PRTG. Please include a console output which conforms to the PRTG custom sensor API. You can review its format via the PRTG web interface, menu Setup / PRTG API, tab "Custom Sensors".
Nov, 2016 - Permalink