Templates and Tokens

Templates in KMP are used to specify what output from the program should look like.  For FTP and FrontPage, these are typically web pages which can, for instance, include a client-side redirect.  For SMTP this is the subject or body of the mail message.  For HTTP this is the parameters sent to the server.

Each template in use must contain tokens for each of the possible IP addresses being monitored.

The tokens for network cards are of the format %ipaddress_n%, where n is a digit corresponding to the number of the card as displayed in the "cards to monitor" list.  For the router the token is %ipaddress_r%.  For external address detection the token is %ipaddress_e%.

In addition to the tokens for addresses, the following tokens can also be used:

Hint:

If you want a web page to redirect the user immediately to your dynamic address, you can put in a "client redirect" line.  Here is an example:

<html>
<head>
<title>My Server</title>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://%ipaddress_r%">
</head>
<body>
<h1 align="center">My server should be at:

<a href="http://%ipaddress_r%">http://%ipaddress_r%</a>

</h1>
</body>
</html>

This page will display a link to the new page, but it will also tell the browser to go to the new page automatically.