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

PRTG graphing text file

Votes:

0

I've got a text file that gets updated via script with an integer.

The script basically counts the number of rendered frames our of our farm and then dumps it into a text file on a daily basis.

Is it possible to read the last line of a text file and then add it to a graph?

graphs prtg text

Created on Dec 16, 2011 8:52:48 PM



4 Replies

Votes:

0

if you already have a script reading the data and dumping it into a text file, why not changing the script a little and use it directly with PRTG?

please take a look at

https://www.paessler.com/manuals/prtg9/exe_script_sensor.htm

Created on Dec 18, 2011 9:18:45 PM by  Aurelio Lombardi [Paessler Support]



Votes:

0

It's a linux shell file so ideally I'd like to just read directly out of a text file rather than trying to get windows to ssh and exe a shell script.

The text file is incredibly simple, here's an example;

899 1945 1235 1853

Each number is produced every time the script is run via a daily cron.

Possible to just read the last line and graph it?

Created on Jan 9, 2012 6:07:13 PM



Votes:

0

Maybe it's possible to adjust the script so that the resulting File will be "compatible" to the File Content Sensor.

Created on Jan 9, 2012 6:20:25 PM by  Torsten Lindner [Paessler Support]



Votes:

0

aha. That looks like something that'd work.

Appreciate it

Created on Jan 9, 2012 6:22:07 PM




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.