Ad Widget

Collapse

Display modified Switch number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nazar
    Junior Member
    • Sep 2020
    • 1

    #1

    Display modified Switch number

    Hi All!

    I have downloaded and modified template for Juniper QFX and have some problems
    The problem is about displaying some items. After zabbiz has been collected some data, I can see the result like this:

    Switch 1 - 5 min load average
    Switch 1 - CPU usage
    Switch 1 - Memory usage
    Switch 1 - Routing Engine temperature
    Switch 2 - 5 min load average
    Switch 2 - CPU usage
    Switch 2 - Memory usage
    Switch 2 - Routing Engine temperature

    But in Juniper nodes start numbering from 0, not from 1. So it's good idea to keep
    Node 0
    Node 1

    Actually there no problem to change "Switch" to "Node" word, but the problem is I don't know how to decrease number by 1 in my case. For example
    <name>Switch {#SNMPVALUE} - CPU usage</name>

    I have tried something like this:
    {#SNMPVALUE-1}
    [{#SNMPVALUE}-1]
    ({#SNMPVALUE}-1)
    But no success.

    Is there some way to do it?
    Last edited by Nazar; 30-09-2020, 21:48. Reason: fix
Working...