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

Read .csv file as custom sensor value

Votes:

0

Greetings,

I've got a log file which produces content in following format:

"Display Name","User Principal Name","Mailbox Type","Primary SMTP Address","Item Count","Total Size","Total Size (Bytes)","IsArchieved","Deleted Item Count","Deleted Item Size","Issue Warning Quota","Prohibit Send Quota","Prohibit send Receive Quota"
"SMTP User","[email protected]","UserMailbox","[email protected]","5276","229.4 MB ","240529973","False","3618","30.47 MB (31,946,421 bytes)","1.96 GB ","1.979 GB ","2 GB "
"SMTP User","[email protected]","UserMailbox","[email protected]","5276","229.4 MB ","240529973","False","3618","30.47 MB (31,946,421 bytes)","1.96 GB ","1.978 GB ","2 GB "
"SMTP User","[email protected]","UserMailbox","[email protected]","5276","229.4 MB ","240529973","False","3618","30.47 MB (31,946,421 bytes)","1.96 GB ","1.978 GB ","2 GB "
...

to a shared destination in a .csv file. It gets updated every day with an additional single line. Now I want to create a custom .bat or XML sensor to read out new values. Is there a template I can use for handling .csv like these?

batch csv custom-sensor prtg ps1 xml

Created on Nov 2, 2020 1:36:33 PM



1 Reply

Votes:

0

Hi there,

So far I know there is no template for this. However, you can check our scriptworld for this:https://www.paessler.com/sensor-hub/all/all/all

In addition, did you already take a look at the File Content Sensor. This Sensor is able to read lines in a file and find certain strings. You can also define that only new lines will be searched.

Created on Nov 3, 2020 8:50:07 AM by  Moritz Heller [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.