Topic Options
#1428 - 08/08/05 07:44 AM List af variables
Jimmy E. Frederiksen Offline

Registered: 07/27/05
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?

#1429 - 08/08/05 09:18 PM Re: List af variables [Re: Jimmy E. Frederiksen]
Pete Ness Offline

Registered: 08/30/99
Posts: 1106
Loc: Boise, Idaho
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: 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

#1430 - 08/09/05 04:39 AM Re: List af variables [Re: Pete Ness]
Jimmy E. Frederiksen Offline

Registered: 07/27/05
Posts: 24
Yes, that sounds like a good solution. Thanks!



Who's Online
0 registered (), 12 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod