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 section in red contains the parameters that need to be prompted for (using the ask action). The sections that will be substituted by the report generator are highlighted in blue.

Installing this interactive template will create an entry in the Interactive Reports index. The
Server Traffic Generate a report of traffic to a server.
entry will be installed under the Host category.

This template can then be used to schedule regular reports for key servers.



<inmon>
action=ask;
askCategory=Host;
askName=Server Traffic;
askDescription=Generate a report of traffic to a server;
askTitle=Server Report;
serverAddress.default=www.inmon.com;
serverAddress.prompt=Enter the domain name of a server;
serverAddress.required=YES;
name.default=InMon.com;
name.prompt=Enter a name for the server;
description.default=Traffic to server;
description.prompt=Enter a description of the server
</inmon>

<inmon>
action=set;

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>