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);
} }
Add comment