Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- templates:
- -
- - template: 'Template Net Juniper SNMPv2'
- + template: 'Juniper SNMP'
- - name: 'Template Net Juniper SNMPv2'
- + name: 'Juniper SNMP'
- - description: "Template Net Juniper version: 0.15\r\nMIBs used:\r\nJUNIPER-ALARM-MIB\r\nJUNIPER-MIB\r\nSNMPv2-MIB"
- + description: "Template Net Juniper\r\n\r\nMIBs used:\r\nJUNIPER-ALARM-MIB\r\nJUNIPER-MIB\r\nSNMPv2-MIB\r\n\r\nTemplate tooling version used: 0.38"
- templates:
- -
- name: 'EtherLike-MIB SNMP'
- -
- name: 'Generic SNMP'
- -
- name: 'Interfaces SNMP'
- macros:
- - -
- - macro: '{$CPU_UTIL_MAX}'
- - value: '90'
- + -
- + macro: '{$CPU.UTIL.CRIT}'
- + value: '90'
- -
- macro: '{$FAN_CRIT_STATUS}'
- value: '6'
- -
- macro: '{$HEALTH_CRIT_STATUS}'
- value: '3'
- - -
- - macro: '{$MEMORY_UTIL_MAX}'
- - value: '90'
- + -
- + macro: '{$MEMORY.UTIL.MAX}'
- + value: '90'
- -
- macro: '{$PSU_CRIT_STATUS}'
- value: '6'
- -
- macro: '{$TEMP_CRIT}'
- value: '60'
- -
- macro: '{$TEMP_CRIT:"Routing Engine"}'
- value: '80'
- -
- macro: '{$TEMP_CRIT_LOW}'
- value: '5'
- -
- macro: '{$TEMP_WARN}'
- value: '50'
- -
- macro: '{$TEMP_WARN:"Routing Engine"}'
- value: '70'
- items:
- + -
- + name: 'Operating system'
- + type: SNMP_AGENT
- + snmp_oid: 1.3.6.1.2.1.1.1.0
- + key: 'system.sw.os[sysDescr.0]'
- + delay: 1h
- + history: 2w
- + trends: '0'
- + value_type: CHAR
- + description: 'MIB: SNMPv2-MIB'
- + inventory_link: OS
- + preprocessing:
- + -
- + type: REGEX
- + parameters:
- + - 'kernel (JUNOS [0-9a-zA-Z\.\-]+)'
- + -
- + -
- + type: DISCARD_UNCHANGED_HEARTBEAT
- + parameters:
- + - 1d
- + tags:
- + -
- + tag: Application
- + value: Inventory
- + triggers:
- + -
- + expression: 'last(/Juniper SNMP/system.sw.os[sysDescr.0],#1)<>last(/Juniper SNMP/system.sw.os[sysDescr.0],#2) and length(last(/Juniper SNMP/system.sw.os[sysDescr.0]))>0'
- + name: 'Operating system description has changed'
- + priority: INFO
- + description: 'Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.'
- + manual_close: 'YES'
- -
- name: 'Hardware model name'
- type: SNMP_AGENT
- snmp_oid: 1.3.6.1.4.1.2636.3.1.2.0
- key: system.hw.model
- delay: 1h
- history: 2w
- trends: '0'
- value_type: CHAR
- description: "MIB: JUNIPER-MIB\r\nThe name, model, or detailed description of the box,indicating which product the box is about, for example 'M40'."
- inventory_link: MODEL
- tags:
- -
- tag: Application
- value: Inventory
- + preprocessing:
- + -
- + type: DISCARD_UNCHANGED_HEARTBEAT
- + parameters:
- + - 1d
- -
- name: 'Hardware serial number'
- type: SNMP_AGENT
- snmp_oid: 1.3.6.1.4.1.2636.3.1.3.0
- key: system.hw.serialnumber
- delay: 1h
- history: 2w
- trends: '0'
- value_type: CHAR
- description: "MIB: JUNIPER-MIB\r\nThe serial number of this subject, blank if unknown or unavailable."
- inventory_link: SERIALNO_A
- tags:
- -
- tag: Application
- value: Inventory
- + preprocessing:
- + -
- + type: DISCARD_UNCHANGED_HEARTBEAT
- + parameters:
- + - 1d
- triggers:
- -
- - expression: '(last(/Template Net Juniper SNMPv2/system.hw.serialnumber,#1)<>last(/Template Net Juniper SNMPv2/system.hw.serialnumber,#2))=1 and length(last(/Template Net Juniper SNMPv2/system.hw.serialnumber))>0'
- + expression: 'last(/Juniper SNMP/system.hw.serialnumber,#1)<>last(/Juniper SNMP/system.hw.serialnumber,#2) and length(last(/Juniper SNMP/system.hw.serialnumber))>0'
- - recovery_mode: NONE
- name: 'Device has been replaced (new serial number received)'
- priority: INFO
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nDevice serial number has changed. Ack to close"
- + description: 'Device serial number has changed. Ack to close'
- manual_close: 'YES'
- -
- name: 'Overall system health status'
- type: SNMP_AGENT
- snmp_oid: 1.3.6.1.4.1.2636.3.4.2.3.1.0
- key: 'system.status[jnxRedAlarmState.0]'
- delay: 30s
- history: 2w
- trends: 0d
- description: "MIB: JUNIPER-ALARM-MIB\r\nThe red alarm indication on the craft interface panel.\r\nThe red alarm is on when there is some system\r\nfailure or power supply failure or the system\r\nis experiencing a hardware malfunction or some\r\nthreshold is being exceeded.\r\n\r\nThis red alarm state could be turned off by the\r\nACO/LT (Alarm Cut Off / Lamp Test) button on the\r\nfront panel module."
- valuemap:
- name: 'JUNIPER-ALARM-MIB::jnxRedAlarmState'
- tags:
- -
- tag: Application
- value: Status
- triggers:
- -
- - expression: 'count(/Template Net Juniper SNMPv2/system.status[jnxRedAlarmState.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1'
- + expression: 'count(/Juniper SNMP/system.status[jnxRedAlarmState.0],#1,"eq","{$HEALTH_CRIT_STATUS}")=1'
- name: 'System status is in critical state'
- priority: HIGH
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nPlease check the device for errors"
- + description: 'Please check the device for errors'
- - tags:
- - -
- - tag: type
- - value: Critical
- + opdata: 'Current state: {ITEM.LASTVALUE1}'
- discovery_rules:
- -
- name: 'CPU and Memory Discovery'
- type: SNMP_AGENT
- snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5]'
- key: jnxOperatingTable.discovery
- delay: 1h
- filter:
- conditions:
- -
- macro: '{#SNMPVALUE}'
- value: 'Routing Engine.*'
- formulaid: A
- description: "Scanning JUNIPER-MIB::jnxOperatingTable for CPU and Memory\r\nhttp://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines"
- item_prototypes:
- + -
- + name: '{#SNMPVALUE}: CPU utilization'
- + type: SNMP_AGENT
- + snmp_oid: '1.3.6.1.4.1.2636.3.1.13.1.8.{#SNMPINDEX}'
- + key: 'system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]'
- + history: 7d
- + value_type: FLOAT
- + units: '%'
- + description: "MIB: JUNIPER-MIB\r\nThe CPU utilization in percentage of this subject. Zero if unavailable or inapplicable.\r\nReference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf"
- + tags:
- + -
- + tag: Application
- + value: CPU
- + trigger_prototypes:
- + -
- + expression: 'min(/Juniper SNMP/system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}'
- + name: '{#SNMPVALUE}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
- + opdata: 'Current utilization: {ITEM.LASTVALUE1}'
- + priority: WARNING
- + description: 'CPU utilization is too high. The system might be slow to respond.'
- + -
- + name: '{#SNMPVALUE}: Memory utilization'
- + type: SNMP_AGENT
- + snmp_oid: '1.3.6.1.4.1.2636.3.1.13.1.11.{#SNMPINDEX}'
- + key: 'vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]'
- + history: 7d
- + value_type: FLOAT
- + units: '%'
- + description: "MIB: JUNIPER-MIB\r\nThe buffer pool utilization in percentage of this subject. Zero if unavailable or inapplicable.\r\nReference: http://kb.juniper.net/library/CUSTOMERSERVICE/GLOBAL_JTAC/BK26199/SRX%20SNMP%20Monitoring%20Guide_v1.1.pdf"
- + tags:
- + -
- + tag: Application
- + value: Memory
- + trigger_prototypes:
- + -
- + expression: 'min(/Juniper SNMP/vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}'
- + name: '{#SNMPVALUE}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
- + priority: AVERAGE
- + description: 'The system is running out of free memory.'
- graph_prototypes:
- -
- name: '{#SNMPVALUE}: CPU utilization'
- ymin_type_1: FIXED
- ymax_type_1: FIXED
- graph_items:
- - -
- - drawtype: GRADIENT_LINE
- - color: 1A7C11
- - item:
- - host: 'Template Net Juniper SNMPv2'
- - key: 'system.cpu.util[jnxOperating5MinLoadAvg.{#SNMPINDEX}]'
- + -
- + drawtype: GRADIENT_LINE
- + color: 1A7C11
- + item:
- + host: 'Juniper SNMP'
- + key: 'system.cpu.util[jnxOperatingCPU.{#SNMPINDEX}]'
- -
- name: '{#SNMPVALUE}: Memory utilization'
- ymin_type_1: FIXED
- ymax_type_1: FIXED
- graph_items:
- - -
- - drawtype: GRADIENT_LINE
- - color: 1A7C11
- - item:
- - host: 'Template Net Juniper SNMPv2'
- - key: 'vm.memory.pused[jnxOperatingBuffer.{#SNMPINDEX}]'
- + -
- + drawtype: GRADIENT_LINE
- + color: 1A7C11
- + item:
- + host: 'Juniper SNMP'
- + key: 'vm.memory.util[jnxOperatingBuffer.{#SNMPINDEX}]'
- -
- name: 'FAN Discovery'
- type: SNMP_AGENT
- snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.4]'
- key: jnxOperatingTable.discovery.fans
- delay: 1h
- description: 'Scanning JUNIPER-MIB::jnxOperatingTable for Fans'
- item_prototypes:
- -
- name: '{#SNMPVALUE}: Fan status'
- type: SNMP_AGENT
- snmp_oid: '1.3.6.1.4.1.2636.3.1.13.1.6.4.{#SNMPINDEX}'
- key: 'sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}]'
- delay: 3m
- history: 2w
- trends: 0d
- description: 'MIB: JUNIPER-MIB'
- valuemap:
- name: 'JUNIPER-ALARM-MIB::jnxOperatingState'
- tags:
- -
- tag: Application
- value: Fans
- trigger_prototypes:
- -
- - expression: 'count(/Template Net Juniper SNMPv2/sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1'
- + expression: 'count(/Juniper SNMP/sensor.fan.status[jnxOperatingState.4.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1'
- name: '{#SNMPVALUE}: Fan is in critical state'
- priority: AVERAGE
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nPlease check the fan unit"
- + description: 'Please check the fan unit'
- + opdata: 'Current state: {ITEM.LASTVALUE1}'
- -
- name: 'PSU Discovery'
- type: SNMP_AGENT
- snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.5.2]'
- key: jnxOperatingTable.discovery.psu
- delay: 1h
- description: 'Scanning JUNIPER-MIB::jnxOperatingTable for Power Supplies'
- item_prototypes:
- -
- name: '{#SNMPVALUE}: Power supply status'
- type: SNMP_AGENT
- snmp_oid: '1.3.6.1.4.1.2636.3.1.13.1.6.2.{#SNMPINDEX}'
- key: 'sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}]'
- delay: 3m
- history: 2w
- trends: 0d
- description: "MIB: JUNIPER-MIB\r\nIf they are using DC power supplies there is a known issue on PR 1064039 where the fans do not detect the temperature correctly and fail to cool the power supply causing the shutdown to occur.\r\nThis is fixed in Junos 13.3R7 https://forums.juniper.net/t5/Routing/PEM-0-not-OK-MX104/m-p/289644#M14122"
- valuemap:
- name: 'JUNIPER-ALARM-MIB::jnxOperatingState'
- tags:
- -
- tag: Application
- value: 'Power supply'
- trigger_prototypes:
- -
- - expression: 'count(/Template Net Juniper SNMPv2/sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1'
- + expression: 'count(/Juniper SNMP/sensor.psu.status[jnxOperatingState.2.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1'
- name: '{#SNMPVALUE}: Power supply is in critical state'
- priority: AVERAGE
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nPlease check the power supply unit for errors"
- + description: 'Please check the power supply unit for errors'
- + opdata: 'Current state: {ITEM.LASTVALUE1}'
- -
- name: 'Temperature discovery'
- type: SNMP_AGENT
- snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.2636.3.1.13.1.7,{#SENSOR_INFO},1.3.6.1.4.1.2636.3.1.13.1.5]'
- key: jnxOperatingTable.discovery.temp
- delay: 1h
- filter:
- conditions:
- -
- macro: '{#SNMPVALUE}'
- value: '[^0]+'
- formulaid: A
- description: "Scanning JUNIPER-MIB::jnxOperatingTable for Temperature\r\nhttp://kb.juniper.net/InfoCenter/index?page=content&id=KB17526&actp=search. Filter limits results to Routing Engines"
- item_prototypes:
- -
- name: '{#SENSOR_INFO}: Temperature'
- type: SNMP_AGENT
- snmp_oid: '1.3.6.1.4.1.2636.3.1.13.1.7.{#SNMPINDEX}'
- key: 'sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}]'
- delay: 3m
- - history: 30d
- value_type: FLOAT
- units: °C
- description: "MIB: JUNIPER-MIB\r\nThe temperature in Celsius (degrees C) of {#SENSOR_INFO}"
- tags:
- -
- tag: Application
- value: Temperature
- trigger_prototypes:
- -
- - expression: 'avg(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:""}'
- + expression: 'avg(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:""}'
- recovery_mode: RECOVERY_EXPRESSION
- - recovery_expression: 'max(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:""}-3'
- + recovery_expression: 'max(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:""}-3'
- name: '{#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""}'
- priority: HIGH
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nThis trigger uses temperature sensor values as well as temperature sensor status if available"
- + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available'
- - tags:
- - -
- - tag: type
- - value: Critical
- + opdata: 'Current value: {ITEM.LASTVALUE1}'
- -
- - expression: 'avg(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:""}'
- + expression: 'avg(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_WARN:""}'
- recovery_mode: RECOVERY_EXPRESSION
- - recovery_expression: 'max(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:""}-3'
- + recovery_expression: 'max(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_WARN:""}-3'
- name: '{#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""}'
- priority: WARNING
- - description: "Last value: {ITEM.LASTVALUE1}.\r\nThis trigger uses temperature sensor values as well as temperature sensor status if available"
- + description: 'This trigger uses temperature sensor values as well as temperature sensor status if available'
- dependencies:
- - -
- - name: '{#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""}'
- - expression: 'avg(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:""}'
- - recovery_expression: 'max(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:""}-3'
- + -
- + name: '{#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""}'
- + expression: 'avg(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT:""}'
- + recovery_expression: 'max(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT:""}-3'
- + opdata: 'Current value: {ITEM.LASTVALUE1}'
- -
- - expression: 'avg(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:""}'
- + expression: 'avg(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:""}'
- recovery_mode: RECOVERY_EXPRESSION
- - recovery_expression: 'min(/Template Net Juniper SNMPv2/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:""}+3'
- + recovery_expression: 'min(/Juniper SNMP/sensor.temp.value[jnxOperatingTemp.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:""}+3'
- name: '{#SENSOR_INFO}: Temperature is too low: <{$TEMP_CRIT_LOW:""}'
- priority: AVERAGE
- - description: 'Last value: {ITEM.LASTVALUE1}.'
- + opdata: 'Current value: {ITEM.LASTVALUE1}'
Advertisement
Add Comment
Please, Sign In to add comment