Advertisement
Derango

Configurations

Mar 22nd, 2019
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SNMP CONFIG:
  2. --------------------------------------------------------------------
  3. <Plugin snmp>
  4.    <Data "if_octets">
  5.        Type "if_octets"
  6.        Table true
  7.        Instance "IF-MIB::ifDescr"
  8.        Values "IF-MIB::ifOutOctets" "IF-MIB::ifInOctets"
  9.    </Data>
  10.    <Data "if_speed">
  11.       Type "bitrate"
  12.       Table true
  13.       Instance "IF-MIB::ifDescr"
  14.       Values "IF-MIB::ifSpeed"
  15.    </Data>
  16.    <Data "temperature">
  17.       Type "temperature"
  18.       Table false
  19.       Instance "device"
  20.       Scale 0.1
  21.       Values "MIKROTIK-MIB::mtxrHlTemperature.0"
  22.    </Data>
  23.    <Data "processorTemperature">
  24.       Type "temperature"
  25.       Table false
  26.       Instance "processor"
  27.       Scale 0.1
  28.       Values "MIKROTIK-MIB::mtxrHlProcessorTemperature.0"
  29.    </Data>
  30.    <Data "fanspeed">
  31.       Type "fanspeed"
  32.       Table false
  33.       Instance "fan_speed"
  34.       Values "MIKROTIK-MIB::mtxrHlFanSpeed1.0"
  35.    </Data>
  36.    <Host "MikroTik">
  37.        Address "192.168.192.1"
  38.        Version 2
  39.        Community "public"
  40.        Collect "if_octets" "if_speed" "temperature" "processorTemperature" "fanspeed"
  41.        Interval 120
  42.     Timeout 10
  43.     Retries 1
  44.    </Host>
  45.    <Host "Smal">
  46.        Address "192.168.192.7"
  47.        Version 2
  48.        Community "public"
  49.        Collect "if_octets" "if_speed"
  50.        Interval 120
  51.     Timeout 10
  52.     Retries 1
  53.    </Host>
  54.    <Host "Brother">
  55.        Address "192.168.192.12"
  56.        Version 2
  57.        Community "public"
  58.        Collect "if_octets" "if_speed"
  59.        Interval 120
  60.     Timeout 10
  61.     Retries 1
  62.    </Host>
  63.    <Host "Apple Switch">
  64.        Address "192.168.192.252"
  65.        Version 2
  66.        Community "public"
  67.        Collect "if_octets" "if_speed"
  68.        Interval 120
  69.         Timeout 10
  70.         Retries 1
  71.    </Host>
  72.    <Host "NE-002">
  73.        Address "192.168.192.254"
  74.        Version 2
  75.        Community "public"
  76.        collect "if_octets" "if_speed"
  77.        Interval 120
  78.     Timeout 10
  79.     retries 1
  80.    </Host>
  81.    <Host "NE-001">
  82.        Address "192.168.192.253"
  83.        Version 2
  84.        Community "public"
  85.        collect "if_octets" "if_speed"
  86.        Interval 120
  87.         Timeout 10
  88.          retries 1
  89.    </Host>
  90. </Plugin>
  91. --------------------------------------------------------------------
  92.  
  93.  
  94.  
  95. WRITE_GRAPHITE CONFIG:
  96. --------------------------------------------------------------------
  97. <Plugin write_graphite>
  98.   <Node "metrics">
  99.     Host "{{ carbon_relay_ng_ip }}"
  100.     Port "{{ carbon_relay_ng_port }}"
  101.     Protocol "{{ carbon_relay_ng_protocol }}"
  102.     LogSendErrors true
  103.     Prefix "collectd."
  104.     StoreRates true
  105.     AlwaysAppendDS false
  106.     EscapeCharacter "_"
  107.     SeparateInstances true
  108.     DropDuplicateFields true
  109.   </Node>
  110. </Plugin>
  111. --------------------------------------------------------------------
  112.  
  113.  
  114. INTERFACE CONFIG:
  115. --------------------------------------------------------------------
  116. <Plugin interface>
  117.     Interface "ens33"
  118.     IgnoreSelected false
  119. </Plugin>
  120. --------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement