Work in progress
The goal of this project is to facilitate creation of custom PRTG sensors, especially Advanced EXE/SCRIPT Sensors.
More details comming soon
-
Create new .NET console application and get PrtgSensorSharp.
-
Write a sensor. Make sure not to print anything into console!
public class Program
{
public static void Main()
{
PrtgExeScriptAdvanced.Run(() =>
{
// Get some cool metrics...
return PrtgReport.Successful(new[]
{
new PrtgResult("Number of connected users", connectedUsers),
new PrtgResult("Number of active users", activeUsers)
});
});
}
}
-
Build it and put it in
Custom Sensors\EXEXML
directory. -
Create EXE/Script Advanced sensor in your PRTG instance and select the exe you just created.
-
Enjoy some fine metrics.
To learn mroe about PRTG and creating sensors, please visit: