Previous Thread
Next Thread
Print Thread
#1428 08/08/05 11:44 AM
Joined: Jul 2005
Posts: 24

Joined: Jul 2005
Posts: 24
I've been trying to find a list of variables such a $host. Is there such?

My problem is that I've a few hosts with different IP addresse but the same hostname. When an error is logged it will only create one log file. This means that I can't see what IP address that is having problems when it all is in 1 file.

Would it be possible to save the log as:
C:\Traceroute\$ip $host.log

Or something?

Joined: Aug 1999
Posts: 1,107

Joined: Aug 1999
Posts: 1,107
There is no variable for doing the IP address, although there is a solution to your problem (as I understand it).

When adding a target to MultiPing, alias the IP Address with a name of your choosing like this:

192.168.1.128 My Target 1

MultiPing will use "My Target 1" for the name throughout, including the alert log files. This means you'll be able to specify the "override" name for that IP so you won't have problems with multiple targets with the same name.

Will this soluation satisfy your need?

Just for information, here are the list of variables for MultiPing 1.01.2:

$host - The monitored host – i.e.: the target that failed.
$year - Current 4 digit year (i.e.: 2003)
$month - Current 2 digit month (i.e.: 03)
$day - Current 2 digit day (i.e.: 08)
$date - Date, 4-2-2 format (i.e.: 2003-03-08) for March 8th.
$hour - 24 hour format, (i.e.: 06)
$minute - 2 digit minute, (i.e.: 02)

- Pete

Joined: Jul 2005
Posts: 24

Joined: Jul 2005
Posts: 24
Yes, that sounds like a good solution. Thanks!


Link Copied to Clipboard
Forum Search
Who's Online Now
0 members (), 31 guests, and 1 robot.
Key: Admin, Global Mod, Mod
Powered by UBB.threads™ PHP Forum Software 8.0.1