Download Ping Plotter

Purchase Ping Plotter
Product of NessoftNessoft, LLC

HomeE-mail usSearch
PingPlotter Pro Manual

Contents | Previous | Next

Event - Log to file

The "Log to file" alert writes data to a text file whenever alert conditions are met.

Log times for entire route?

This option specifies if you want to write data to the text file just for the monitored host, or the entire route.  Leaving this off means that for each time alert conditions are met, one data item will be written to the file – for the monitored host.  If the switch is turned on, then data for the entire route will be written.

Filename:

The filename is *required* to have the $host variable in it (or some variable that changes depending on which host / target is being logged).  If it is missing, then the file will be nonsensical if you attach this alert to more than one host.  The following variables can be used as part of the filename.  Note there is no way to "escape" the following sequences, so these are always parsed and can't be specified as literals in the filename.

$host

Host name (or IP address, if no name exists). 

$hostip

The host IP address

$hostdnsname

The resolved DNS name for the host

$year

Current Year

$month

Current Month

$day

Current day of month

$hour

Current hour

$minute

Current minute

$second

Current second

$date

Same as $year-$month-$day.

$time

The same as $hour$minute - note the absence of any punctuation - that's to make sure the file name is valid, if this mask is being used in a file name.

 

Note that one directory level of depth will be created automatically if it doesn't already exist, so you can specify c:\ppdata\$host\filename.txt and the $host directory will be created as needed.  Only one directory of depth will be created, however, so if the c:\ppdata directory didn't already exist, an error would occur.