Article Rating (8 Votes)
Rate this article
Home » Categories » Multiple Categories

Logging data to text file.

Question

How do I log data to a live file as it is being collected?

Solution

Both MultiPing and PingPlotter can use the alert system to log live data (as it is being collected) to a text file.

This technique requires setting up an alert with an event to "Log to file", setting the parameters on the alert to always fire, and then associating the alert to the targets you want to log.

Create the alert:

 

  • In either MultiPing or PingPlotter, go to Edit -> Alert Setup...
  • Create a new alert by hitting the "New" button.
  • Pick an alert name, ie: "Always log to file"
  • Set "Samples to Examine:" to 10, Alert when "1" or more samples are over "-1" ms. Yes, that's a negative 1. This means the alert will always fire - on every sample.
  • In "Event 1", set the "Event Type" to Log to file.
  • Enter a variable filename. You might use c:\ping data\$host\$host $year-$month-$day.log. This will put each host's data in its own directory, and will put each day's worth of data into its own log file. ****IMPORTANT**** Make sure the first level directory, in this case, the "c:\ping data" directory. The tool will only create the very tip directory, ensuring that a typo doesn't cause a bunch of errant directories to be created.
  • Close the alert dialog by hitting "OK".

 

Associate the alert to a target:

A newly created alert will not automatically monitor any targets, you need to configure which targets you want it to monitor.

  • In MultiPing or PingPlotter, start pinging or tracing to a target.
  • Right-click on the host you want to "Watch" (or, in this case, which host you want data logged for).
  • From the right-click menu, select "Watch this host (Alerts)...".
  • In the popup dialog, move your newly configured alert to the "Selected Alert(s)" side of things
  • Close the dialog.

 

OK, all your data should now be logged to file! If you want more information about configuring alerts, visit our tutorial and look at the alerts section, or check out the alert troubleshooting section.

Attachments Attachments
There are no attachments for this article.
Related Articles
Alerting when site is unreachable
Viewed 1417 times since Wed, Dec 10, 2008
Socket Error 10061 when testing an alert
Viewed 2192 times since Mon, Jan 12, 2009
Socket error 10054 when testing email alerts.
Viewed 5611 times since Fri, Jul 11, 2008
MultiPing as a service with FireDaemon
Viewed 5183 times since Tue, Jan 18, 2005
E-mail us