Add base MikroTik SNMP template.
This commit is contained in:
parent
84beedee4b
commit
e7052fbef1
7
templates/network-devices/mikrotik/README.md
Normal file
7
templates/network-devices/mikrotik/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# MikroTik SNMP template
|
||||||
|
|
||||||
|
This is a base template for MikroTik devices.
|
||||||
|
|
||||||
|
## No thresholds
|
||||||
|
|
||||||
|
This template contains no thresholds, feel free to modify it locally according to your needs.
|
474
templates/network-devices/mikrotik/mikrotik.xml
Normal file
474
templates/network-devices/mikrotik/mikrotik.xml
Normal file
@ -0,0 +1,474 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration>
|
||||||
|
<formatVersion>4</formatVersion>
|
||||||
|
<server>
|
||||||
|
<version>3.5.136</version>
|
||||||
|
<buildTag>3.5-136-g37db5ea3c4</buildTag>
|
||||||
|
<operatingSystem>Linux 4.19.0-12-amd64</operatingSystem>
|
||||||
|
</server>
|
||||||
|
<description></description>
|
||||||
|
<events>
|
||||||
|
</events>
|
||||||
|
<templates>
|
||||||
|
<template id="379">
|
||||||
|
<guid>18a7fbfb-29bb-40ba-9b9a-92ae5c11de0e</guid>
|
||||||
|
<name>Mikrotik</name>
|
||||||
|
<flags>0</flags>
|
||||||
|
<comments></comments>
|
||||||
|
<path>
|
||||||
|
<element id="1">SNMP</element>
|
||||||
|
<element id="2">Routers & Switches</element>
|
||||||
|
</path>
|
||||||
|
<dataCollection>
|
||||||
|
<dci id="4266">
|
||||||
|
<guid>fd4145ff-e0cb-4687-84cb-b3481ca499b7</guid>
|
||||||
|
<name>.1.3.6.1.2.1.25.1.1.0</name>
|
||||||
|
<description>Uptime</description>
|
||||||
|
<dataType>4</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return SecondsToUptime($1/100);</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4267">
|
||||||
|
<guid>06017ef2-4739-4920-b752-49fde976ac8d</guid>
|
||||||
|
<name>.1.3.6.1.4.1.2021.11.10.0</name>
|
||||||
|
<description>CPU usage</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4268">
|
||||||
|
<guid>6527984a-0616-4ed1-a76c-e0690178cf8c</guid>
|
||||||
|
<name>.1.3.6.1.4.1.14988.1.1.6.1.0</name>
|
||||||
|
<description>DHCP leases count</description>
|
||||||
|
<dataType>1</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4269">
|
||||||
|
<guid>5daf3fab-2f51-477f-8522-55c915999693</guid>
|
||||||
|
<name>.1.3.6.1.4.1.14988.1.1.3.8.0</name>
|
||||||
|
<description>Voltage</description>
|
||||||
|
<dataType>5</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 / 10.0;</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.4.1.14988.1.1.3.8.0</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

snmpValue = SNMPGetValue(transport, ".1.3.6.1.4.1.14988.1.1.3.8.0");
if (snmpValue == null) return false;

return true;</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4270">
|
||||||
|
<guid>3c6d1a45-2652-4c99-a910-38fccdd044e6</guid>
|
||||||
|
<name>.1.3.6.1.4.1.14988.1.1.3.14.0</name>
|
||||||
|
<description>CPU frequency</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4271">
|
||||||
|
<guid>5ee4bbbf-a14f-4908-a582-cdcfa066b4c1</guid>
|
||||||
|
<name>.1.3.6.1.4.1.14988.1.1.3.10.0</name>
|
||||||
|
<description>Temperature</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 / 10;</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.4.1.14988.1.1.3.10.0</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

snmpValue = SNMPGetValue(transport, ".1.3.6.1.4.1.14988.1.1.3.10.0");
if (snmpValue == null) return false;

return true;</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4272">
|
||||||
|
<guid>70dd4054-afb2-46a2-ba3e-475bc424b8ea</guid>
|
||||||
|
<name>.1.3.6.1.2.1.2.2.1.14.{instance}</name>
|
||||||
|
<description>Inbound error rate on {instance-name} (errors/sec)</description>
|
||||||
|
<dataType>7</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.2.2.1.14</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// Get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.2." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4317">
|
||||||
|
<guid>e99a277a-8f3f-470d-ab7a-f727b496479d</guid>
|
||||||
|
<name>.1.3.6.1.2.1.2.2.1.20.{instance}</name>
|
||||||
|
<description>Outbound error rate on {instance-name} (errors/sec)</description>
|
||||||
|
<dataType>7</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.2.2.1.20</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.2." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4318">
|
||||||
|
<guid>8f6b394a-cdc9-4503-b2e4-d8775c98e471</guid>
|
||||||
|
<name>.1.3.6.1.2.1.31.1.1.1.11.{instance}</name>
|
||||||
|
<description>Outbound traffic on {instance-name} (packets/sec)</description>
|
||||||
|
<dataType>8</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.31.1.1.1.11</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.1." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4319">
|
||||||
|
<guid>10a358ba-3e38-4ba9-8e1d-d1c57ab9e397</guid>
|
||||||
|
<name>.1.3.6.1.2.1.31.1.1.1.7.{instance}</name>
|
||||||
|
<description>Inbound traffic on {instance-name} (packets/sec)</description>
|
||||||
|
<dataType>8</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.31.1.1.1.7</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.1." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4320">
|
||||||
|
<guid>b109e688-b621-4dd7-9741-8dddc5161a3d</guid>
|
||||||
|
<name>.1.3.6.1.2.1.31.1.1.1.10.{instance}</name>
|
||||||
|
<description>Outbound traffic on {instance-name} (bytes/sec)</description>
|
||||||
|
<dataType>8</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.31.1.1.1.10</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.1." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4321">
|
||||||
|
<guid>0da0e8f6-245e-4b23-a525-c90882f1cc2e</guid>
|
||||||
|
<name>.1.3.6.1.2.1.31.1.1.1.6.{instance}</name>
|
||||||
|
<description>Inbound traffic on {instance-name} (bytes/sec)</description>
|
||||||
|
<dataType>8</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>2</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>4</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation></transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData>.1.3.6.1.2.1.31.1.1.1.6</instanceDiscoveryData>
|
||||||
|
<instanceFilter>transport = CreateSNMPTransport($node);
if (transport == null) return null;

// Check that interface we will create DCI for isn't dynamic one.
// We'll check for OpenVPN (1) and L2TP (23) here, so comparsion should be
// extended in future (maybe?).
ifType = SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.3." . $1);
switch (ifType) {
	case "1":
		return false;
	case "23":
		return false;
}

// get the interface name to return as instance-name
interfaceName = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.1." . $1);
if (interfaceName == null) return false;

return %(true, $1, interfaceName);</instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4394">
|
||||||
|
<guid>c4d5c0d6-51e0-45c9-a570-e2a240fea820</guid>
|
||||||
|
<name>.1.3.6.1.2.1.25.2.3.1.5.131072</name>
|
||||||
|
<description>Disk size</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 * 1000;
</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4395">
|
||||||
|
<guid>ca0f5477-e188-483b-b457-fd8cd5c6e25b</guid>
|
||||||
|
<name>.1.3.6.1.2.1.25.2.3.1.5.65536</name>
|
||||||
|
<description>RAM size</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 * 1000;
</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4396">
|
||||||
|
<guid>360803ec-4bee-4126-8a84-12f525d1a55a</guid>
|
||||||
|
<name>.1.3.6.1.2.1.25.2.3.1.6.131072</name>
|
||||||
|
<description>Disk used</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 * 1000;
</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
<dci id="4397">
|
||||||
|
<guid>9d53c1b8-c701-48dd-a151-d6101e008166</guid>
|
||||||
|
<name>.1.3.6.1.2.1.25.2.3.1.6.65536</name>
|
||||||
|
<description>RAM used</description>
|
||||||
|
<dataType>0</dataType>
|
||||||
|
<samples>0</samples>
|
||||||
|
<origin>2</origin>
|
||||||
|
<scheduleType>0</scheduleType>
|
||||||
|
<interval></interval>
|
||||||
|
<retentionType>0</retentionType>
|
||||||
|
<retention></retention>
|
||||||
|
<instance></instance>
|
||||||
|
<systemTag></systemTag>
|
||||||
|
<delta>0</delta>
|
||||||
|
<flags>0</flags>
|
||||||
|
<snmpRawValueType>0</snmpRawValueType>
|
||||||
|
<snmpPort>0</snmpPort>
|
||||||
|
<snmpVersion>127</snmpVersion>
|
||||||
|
<instanceDiscoveryMethod>0</instanceDiscoveryMethod>
|
||||||
|
<instanceRetentionTime>-1</instanceRetentionTime>
|
||||||
|
<comments></comments>
|
||||||
|
<isDisabled>false</isDisabled>
|
||||||
|
<transformation>return $1 * 1000;
</transformation>
|
||||||
|
<perfTabSettings><config>
 <enabled>false</enabled>
 <autoScale>true</autoScale>
 <logScaleEnabled>false</logScaleEnabled>
 <stacked>false</stacked>
 <showLegendAlways>false</showLegendAlways>
 <extendedLegend>true</extendedLegend>
 <minYScaleValue>0.0</minYScaleValue>
 <maxYScaleValue>100.0</maxYScaleValue>
 <timeRange>1</timeRange>
 <timeUnits>1</timeUnits>
 <type>0</type>
 <color>49152</color>
 <title></title>
 <name></name>
 <showThresholds>false</showThresholds>
 <groupName></groupName>
 <order>100</order>
 <parentDciId>0</parentDciId>
 <modifyYBase>false</modifyYBase>
 <invertedValues>false</invertedValues>
</config></perfTabSettings>
|
||||||
|
<instanceDiscoveryData></instanceDiscoveryData>
|
||||||
|
<instanceFilter></instanceFilter>
|
||||||
|
</dci>
|
||||||
|
</dataCollection>
|
||||||
|
<agentPolicies>
|
||||||
|
</agentPolicies>
|
||||||
|
</template>
|
||||||
|
</templates>
|
||||||
|
<traps>
|
||||||
|
</traps>
|
||||||
|
<rules>
|
||||||
|
</rules>
|
||||||
|
<scripts>
|
||||||
|
</scripts>
|
||||||
|
<objectTools>
|
||||||
|
</objectTools>
|
||||||
|
<dciSummaryTables>
|
||||||
|
</dciSummaryTables>
|
||||||
|
<actions>
|
||||||
|
</actions>
|
||||||
|
<webServiceDefinitions>
|
||||||
|
</webServiceDefinitions>
|
||||||
|
</configuration>
|
Loading…
Reference in New Issue
Block a user