Download Ping Plotter

Purchase Ping Plotter
Product of NessoftNessoft, LLC

HomeE-mail usSearch
PingPlotter Standard 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.

 

$destThe target destination's name (or IP Address if the IP didn't resolve to a name).  This is different than $host because an alert might be attached to an intermediate hop, whose information is accessed via the $host variable(s).  The final destination, though, is accessed via the $dest variable(s).
$destipThe destination IP address
$destnameThe resolved DNS name for the destination
$hostHost name (or IP address, if no name exists).  If used in an alert on a non-target hop, the alerting hop's information will be used.
$hostipThe host IP address
$hostdnsnameThe resolved DNS name for the host
$yearCurrent Year
$monthCurrent Month
$dayCurrent day of month
$hourCurrent hour
$minuteCurrent minute
$secondCurrent second
$dateSame as $year-$month-$day.
$timeThe 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.