media="all">
"; for ($i = 0; $i < count($nav); $i++){ if ($dirMax >= $pthSize){ if(($nav[$i][2] != 1) && (getfilepath($nav[$i][1]) == $parsedpath)) echo "Help : ".$nav[$i][0]; if (parsefilepath($nav[$i][1]) == $dirs[$pthSize]){ if ((getfilepath($nav[$i][1]) != $pth) || getfilepath($nav[$i][1]) != $pth."index.php") echo "Help : "; if (getfilepath($nav[$i][1]) == $parsedpath) echo $nav[$i][0]; else { echo "".$nav[$i][0]." : "; for ($j = 0; $j < count($nav[$i][3]); $j++){ if(getfilepath($nav[$i][3][$j][1]) == $parsedpath) echo $nav[$i][3][$j][0]; if(parsefilepath($nav[$i][3][$j][1]) == $dirs[$pthSize + 1]) { if ((getfilepath($nav[$i][3][$j][1]) == $parsedpath));// echo $nav[$i][3][$j][0]; else { echo "".$nav[$i][3][$j][0]." : "; for($k = 0; $k < count($nav[$i][3][$j][3]); $k++) { if(getfilepath($nav[$i][3][$j][3][$k][1]) == $parsedpath) echo $nav[$i][3][$j][3][$k][0]; if (parsefilepath($nav[$i][3][$j][3][$k][1]) == $dirs[$pthSize+2] && getfilebase($nav[$i][3][$j][3][$k][1]) == $path_parts["basename"]) { if (getfilepath($nav[$i][3][$j][3][$k][1]) == $parsedpath) ; //echo $nav[$i][3][$j][3][$k][0]; else if (parsefilepath($nav[$i][3][$j][3][$k][1]) == $dirs[$pthSize+3] && $nav[$i][3][$j][3][$k][2] == 1) { for ($l = 0; $l < count($nav[$i][3][$j][3][$k][3]); $l++){ if (getfilepath($nav[$i][3][$j][3][$k][3][$l][1]) == $parsedpath) echo "".$nav[$i][3][$j][3][$k][0]." : "; echo $nav[$i][3][$j][3][$k][3][$l][0]; } } } } } } } } } } } echo ""; ?>

The following report template profiles the services provided by a server. The sections that will be substituted by the report generator are highlighted in blue. 

This template could easily be duplicated to report on additional servers. Just copy the template and edit the serverAddress, name and description assignment at the top of the file. Alternatively, an interactive version of this template can be created that prompts for the server specific parameters (see Interactive Server Example).



<inmon>
action=set;
serverAddress=www.inmon.com;
name=InMon.com;
description=Characterize traffic to InMon.com server;

reportName=TopN;
reportFormat=chart;
includeData=yes;
valueColumn=bytes;
date=yesterday
</inmon>

<inmon>
action=index;
category=Servers
</inmon>


<html>
<head>
<title>Profile of <inmon>action=print; variable=serverAddress</inmon></title>
</head>
<body>
<h1>Profile of <inmon>action=print; variable=serverAddress</inmon></h1>
<p><b>[<inmon>action=date; format=range</inmon>]</b></p>

<p>The following charts characterize the services provided by <inmon>action=print; variable=serverAddress</inmon>:</p>
<ul>
<li><a href=#clients>Top Clients</a> Clients generating most traffic.</li>
<li><a href=#tcpServices>TCP Services</a> Top TCP services provided.</li>
<li><a href=#udpServices>UDP Services</a> Top UDP services provides.</li>
<li><a href=#trend>Trend</a> Trend server traffic over time.</li>
</ul>

<hr>
<a name=#clients></a><h2>Top Clients</h2>
<inmon>
action=report;
tableType=IPV4;
categoryColumn=clientAddress
</inmon>


<hr>
<a name=#tcpServices></a><h2>TCP Services</h2>
<inmon>
action=report;
tableType=TCP;
categoryColumn=serverPortName
</inmon>


<hr>
<a name=#udpServices></a><h2>UDP Services</h2>
<inmon>
action=report;
tableType=UDP;
categoryColumn=serverPortName
</inmon>


<hr>
<a name=#trend></a><h2>Trend</h2>
<inmon>
action=report;
reportName=Trend;
tableType=IPV4
</inmon>


</body>

</html>