What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Is there a way for a custom sensor to generate a .txt?

Votes:

0

I want to add a sensor with the custom script option but I would like to know Whether or not the file to be loaded for the sensor can generate a file from time to time on the server's desktop within that code?

I want you to extract the data from the configured sensor and this data is the content of the file to generate on the desktop .txt

archive custom-script-exe exe-script-sensor

Created on May 6, 2020 8:36:51 PM



3 Replies

Votes:

1

Dear Oscar,

Sure, you simply need to insert the code for the file output into the script. With every sensor run, you can therefore write a txt file on your system.

Another option would be to enable the Write Result to Disk option in the sensor. The output will then be stored in the directory ProgramData\Paessler\PRTG Network Monitor\Logs\sensors.


Kind regards,
Felix Saure, Tech Support Team

Created on May 7, 2020 5:30:59 AM by  Felix Saure [Paessler Support]



Votes:

0

¿Me podrías indicar? ¿Dónde esta la opción para Habilitar? Escribir resultado en disco estoy con la versión 20.1.57.1745 Y SÍ de casualidad tienes un script a manera de ejemplo con la parte que escribía un archivo generado cada vez que el sensor sea censado por PRTG Monitor Ayudaría mucho puesto que no he llegado a esa parte de encontrar la sintaxis aquí estoy intentando un script con los DEMO de PowerShell y .bat.

Could you tell me? Where is the option to Enable? Write result to disk I am with version 20.1.57.1745 AND YES by chance has a script in an example way with the part that writes a generated file every time the sea sensor censored by PRTG Monitor It would help a lot since it didn't get to that part of finding the syntax here I am trying a script with the PowerShell and .bat DEMOs.

Thank you so much for everything

Created on May 7, 2020 4:10:14 PM



Votes:

1

Hello Oscar,

The write result to disk option is located in the settings of the custom sensor you try to create. For PowerShell, the OutFile syntax should help: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-file?view=powershell-7


Kind regards,
Felix Saure, Tech Support Team

Created on May 11, 2020 4:29:33 AM by  Felix Saure [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.