Hello!

In .....\PRTG Network Monitor\devicetemplates, I have created a new device Template for our company's Cisco devices. I have created a pingsensor and a snmpciscosystemhealth. Additionally, I want to add the snmptraffic sensor. By default, it add's all the ports as sensors to my device, but I only want to add the Stacking Ports and the ports with the description "Uplink ...". Is there a way, to modify the template?

My Code:

<?xml version="1.0" encoding="UTF-8"?>
  <devicetemplate id="custom" name="Cisco-Test-Template" priority="1">
    <check id="ping" meta="ping"/>
    <create id="pingsensor" kind="ping" requires="ping" displayname="Ping"/>
    <check id="snmp" meta="snmp" requires="ping"/>
    <check id="snmpciscosystemhealth" meta="snmpciscosystemhealth" requires="snmp"/>
    <create id="_snmpciscosystemhealth" kind="snmpciscosystemhealth" requires="snmpciscosystemhealth" meta="snmpciscosystemhealth"/>
    <create id="snmptraffic" kind="snmptraffic" meta="portscan" requires="snmp">
      <createdata>
        ???
      </createdata>
    </create>
  </devicetemplate>

Article Comments

Hi there,

Thank you very much for your post.

This is per design and can't be disabled natively, I'm afraid. With Traffic Sensors as part of a device template, PRTG will create sensors for each interface with data bigger than "0". This is also described in the corresponding manual.

In general, you cannot save all sensor settings and channel settings (for example, channel limits of dynamically created channels) of sensors that dynamically scan for available monitoring items when you add the sensor. This affects, for example, traffic sensors where you can choose interfaces that you want to monitor in the Add Sensor dialog.

This behavior cannot be changed. There might be a workaround for it but please note that we don't offer any technical support for this approach.

Best,
Sebastian


Mar, 2020 - Permalink