When adding custom Netflow or Packet Sniffing sensors under PRTG Network Monitor 7, you will notice a field entitled "Channel Definition". In this field you need to provide the channel definitions (one channel per entry) in the following manner:
#<id>:<Name>
<Rule>
For example:
#5:HTTP
Protocol[TCP] and
(SourcePort[80] or DestinationPort[80] or SourcePort[8080] or DestinationPort[8080])
The following rule syntax applies:
Keep the include list empty to include all traffic. To include and exclude specific traffic please enter filter rules based on the following format:
field[filter]
Valid fields are:
Sniffer Only Fields:
Netflow Only Fields:
Samples:
SourceIP[10.0.0.1]
SourceIP[10.*.*.*]
SourceIP[10.0.0.0/10]
DestinationIP[10.0.0.120-130]
DestinationPort[80-88]
Protocol[UDP]
Complex expressions can be created using parentheses and and/or/not:
Protocol[TCP] and not (DestinationIP[10.0.0.1] or SourceIP[10.0.0.120-130])
Recommendation: Write the rule list in an external editor and paste it into the respective PRTG field. Otherwise, if the rules contain an error, the entries will be removed when adding the rules in case!
Channel definition examples for differentiating by protocol:
#1:TCP
Protocol[TCP]
#2:UDP
Protocol[UDP]
#3:ICMP
Protocol[ICMP]