Interface Definition for EXE/BAT/CMD/VBS/PowerShell/SSH SensorsĮvery time the sensor is run, the selected file is executed. With each scanning interval, PRTG executes the script on the target system and receives the result as a sensor result. In this case, store your file in the following directory of the target system:Īs soon as a file is placed into the respective directory, you can create your own SSH script sensor and select the new script file from the list of scripts. If your SSH script returns XML or JSON, you use it with the SSH Script Advanced sensor. Place your SSH script files for the standard SSH Script sensor in the following directory of the target system: You must create the sensor as an SSH script and place it in a specific directory on the target system running your Linux/Unix installation where the script is executed. This is not allowed for processes that are started by a system service. NET framework, Windows PowerShell) you must manually copy or install these files on the probe system.ĮXE sensors fail if they attempt to open any graphical user interface windows using the Win32 APIs. If your custom sensor code relies on other files (for example. Create your own new files and make sure to give them unique names that do not start with Demo, for example. We recommend that you not edit the demo files. If you use a PowerShell script (.ps1) and if the PowerShell Security Enhancement experimental feature is enabled, scripts that use the write-host cmdlet to provide their output to PRTG do not work. For remote probes, the file actually runs on the remote probe system. The local probe runs the file on the local PRTG core server system. The probe then executes the file on the probe system using the account configured for the PRTG probe service (the default is system). As soon as a file is placed into the subfolders mentioned above, you can create your own custom EXE sensor and select the new file from the list of files. You find a sample set of demo sensors in these subfolders, too. In this case, store your file in the following subfolder of the PRTG program directory: If your executable or script returns XML or JSON, you use it with the EXE/Script Advanced sensor. For the standard EXE/Script sensor, this is the following subfolder of the PRTG program directory: bat), VBS scripts (.vbs), or PowerShell scripts (.ps1) into a subfolder of the PRTG program directory. Place executables (.exe), batch files (.cmd. In a cluster, you must store it on each cluster node. You must create the sensor as a file and store it in a specific subfolder on the probe system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |