
# Ribbon SBC SWe Core by HTTP

## Overview

The Ribbon SBC Software Edition (SBC SWe) provides the same feature set as the award-winning SBC 5400 and SBC 7000 appliances, without requiring dedicated hardware. This gives enterprises the flexibility to deploy SBC functionality in a variety of environments – in their own data centers, on private cloud infrastructure, or in a public cloud.

This template is designed for the effortless deployment of Ribbon SBC SWe Core monitoring and doesn't require any external scripts.

More details can be found in the official documentation:
  - [REST API Reference Guide](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/360972436/RESTCONF+API+Reference+Guide)
  - [REST API User Guide](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760643/RESTCONF+API+User+Guide)

## Requirements

Zabbix version: 7.0 and higher.

## Tested versions

This template has been tested on:
- Ribbon SBC SWe core

## Configuration

> Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section.

## Setup

1. Create a new user according to [REST API requirements](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760644/RESTCONF+API+Requirements).
2. Create a new host.
3. Link the template to the host created earlier.
4. Set the host macros (on the host or template level) required for getting data:
```text
{$RIBBON.URL}
```
5. Set the host macros (on the host or template level) with the login and password of the user created earlier:
```text
{$RIBBON.USERNAME}
{$RIBBON.PASSWORD}
```

### Macros used

|Name|Description|Default|
|----|-----------|-------|
|{$RIBBON.USERNAME}|
Ribbon SBC username.
||
|{$RIBBON.PASSWORD}|
Ribbon SBC user password.
||
|{$RIBBON.URL}|
Ribbon SBC API IP.
||
|{$RIBBON.PROXY}|
Sets the HTTP proxy value. If this macro is empty, then no proxy is used.
||
|{$RIBBON.DNS.ERRORS.TRIGGER.THRESHOLD}|
The threshold of DNS errors.
|`1000`|
|{$RIBBON.DNS.ERRORS.PERCENT.TRIGGER.THRESHOLD}|
The threshold of DNS errors in percent.
|`70`|
|{$RIBBON.DNS.TIMEOUTS.PERCENT.TRIGGER.THRESHOLD}|
The threshold of DNS timeouts in percent.
|`70`|
|{$RIBBON.CE.DISCOVERY.NAME.MATCHES}|
Sets the regex string of call engine names to be allowed in discovery.
|`.*`|
|{$RIBBON.CE.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of call engine names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.CE.DISCOVERY.ROLE.MATCHES}|
Sets the regex string of call engine roles to be allowed in discovery.
|`.*`|
|{$RIBBON.CE.DISCOVERY.ROLE.NOT_MATCHES}|
Sets the regex string of call engine roles to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.CE.DISCOVERY.HW.TYPE.MATCHES}|
Sets the regex string of call engine hardware types to be allowed in discovery.
|`.*`|
|{$RIBBON.CE.DISCOVERY.HW.TYPE.NOT_MATCHES}|
Sets the regex string of call engine hardware types to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.MATCHES}|
Sets the regex string of sync module names to be allowed in discovery.
|`.*`|
|{$RIBBON.SYNC.MODULE.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of sync module names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.LICENSE.DISCOVERY.NAME.MATCHES}|
Sets the regex string of license names to be allowed in discovery.
|`.*`|
|{$RIBBON.LICENSE.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of license names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.DNS.GROUP.DISCOVERY.NAME.MATCHES}|
Sets the regex string of DNS group names to be allowed in discovery.
|`.*`|
|{$RIBBON.DNS.GROUP.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of DNS group names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.MATCHES}|
Sets the regex string of trunk group names to be allowed in discovery.
|`.*`|
|{$RIBBON.TRUNK.GROUP.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of trunk group names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|

### Items

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Get data|
Gets the system information.
|Script|ribbon.system.data.get|
|Get data check|
Checks that the Ribbon metric data has been received correctly.
|Dependent item|ribbon.system.data.get.check
**Preprocessing**

- 
JSON Path: `$.error`

⛔️Custom on fail: Set value to

- 
Discard unchanged with heartbeat: `3h`

|
|System name|
Name of the system.
|Dependent item|ribbon.system.name
**Preprocessing**

- 
JSON Path: `$.admin[0].actualSystemName`

- 
Discard unchanged with heartbeat: `12h`

|
|Management mode|
Management mode of the system. Possible values:

  - haMode1to1

  - haModeNto1
|Dependent item|ribbon.system.haMode
**Preprocessing**

- 
JSON Path: `$.admin[0].haMode`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `12h`

|
|System congestion level|
The current system congestion level.
|Dependent item|ribbon.system.congestion.level
**Preprocessing**

- 
JSON Path: `$.CongestionStatus[0].systemCongestionMCLevel`

- 
Discard unchanged with heartbeat: `12h`

|
|CPU congestion level|
The current CPU congestion level.
|Dependent item|ribbon.system.cpu.level
**Preprocessing**

- 
JSON Path: `$.CongestionStatus[0].systemCongestionCPULevel`

- 
Discard unchanged with heartbeat: `12h`

|
|Call rate congestion level|
The current call rate congestion level.
|Dependent item|ribbon.system.call.rate.level
**Preprocessing**

- 
JSON Path: `$.CongestionStatus[0].systemCongestionCallRateLevel`

- 
Discard unchanged with heartbeat: `12h`

|
|IRTT congestion level|
The current IRTT congestion level.
|Dependent item|ribbon.system.irtt.rate.level
**Preprocessing**

- 
JSON Path: `$.CongestionStatus[0].systemCongestionIRTTLevel`

- 
Discard unchanged with heartbeat: `12h`

|
|DSP congestion level|
The current DSP congestion level.
|Dependent item|ribbon.system.dsp.rate.level
**Preprocessing**

- 
JSON Path: `$.CongestionStatus[0].systemCongestionDSPLevel`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Attempts|
Number of call attempts on this server.
|Dependent item|ribbon.system.call.attempts
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].callAttempts`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Completions|
Total number of completed call attempts on this server.
|Dependent item|ribbon.system.call.completions
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].callCompletions`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Active|
Current number of active managed calls on this server.
|Dependent item|ribbon.system.call.active
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].activeCalls`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Stable|
Current number of stable managed calls on this server.
|Dependent item|ribbon.system.call.stable
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].stableCalls`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Updates|
Number of call updates (modifications) on this server.
|Dependent item|ribbon.system.call.updates
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].callUpdates`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Total|
Total number of calls on this server.
|Dependent item|ribbon.system.call.total
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].totalCalls`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Signalling active|
Current number of active non-call associated signalling channels in the server.
|Dependent item|ribbon.system.non.call.active
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].activeCallsNonUser`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Signalling stable|
Current number of stable non-call associated signalling channels in the server.
|Dependent item|ribbon.system.non.call.stable
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].stableCallsNonUser`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Signalling total|
Total number of non-user calls on this server.
|Dependent item|ribbon.system.non.call.total
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].totalCallsNonUser`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Emergency establishing|
Number of establishing emergency calls (i.e. not yet stable).
|Dependent item|ribbon.system.emergency.call.establishing
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].totalCallsEmergEstablishing`

- 
Discard unchanged with heartbeat: `12h`

|
|Call status: Emergency stable|
Number of stable emergency calls.
|Dependent item|ribbon.system.emergency.call.stable
**Preprocessing**

- 
JSON Path: `$.callCountStatus[0].totalCallsEmergStable`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: Concurrent calls|
The current high water mark of the total number of active calls.
|Dependent item|ribbon.system.call.concurrent
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].callCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: Encrypt calls|
The current high water mark of the total number of encrypt calls.
|Dependent item|ribbon.system.call.encrypt
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].callCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: SRTP calls|
The current high water mark of the total number of active SRTP calls.
|Dependent item|ribbon.system.call.srtp
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].srtpCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: Video calls|
The current high water mark of the total number of active enhanced video calls.
|Dependent item|ribbon.system.call.video
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].enhancedVideoCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: Transcoded calls|
The current high water mark of the total number of transcoded sessions.
|Dependent item|ribbon.system.call.transcode.rec
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].transcodeCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: NICE recorded calls|
The current high water mark of the total number of NICE recording calls.
|Dependent item|ribbon.system.call.nice.rec
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].niceRecCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: SIP recorded calls|
The current high water mark of the total number of SIP recording calls.
|Dependent item|ribbon.system.call.sip.rec
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].sipRecCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: MRF sessions|
The current high water mark of the total number of MRF calls.
|Dependent item|ribbon.system.session.mrf
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].mrfSessionsCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: SLB sessions|
The current high water mark of the total number of SLB calls.
|Dependent item|ribbon.system.session.slb
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].slbSessionsCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: SOSBC sessions|
The current high water mark of the total number of SOSBC calls.
|Dependent item|ribbon.system.session.sosbc
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].sosbcSessionsCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: WebSocket sessions|
The current high water mark of the total number of WebSocket calls.
|Dependent item|ribbon.system.session.websocket
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].webSocketSessionsCount`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: HPC queue attempts|
The current number of HPC calls that were successfully placed on HPC Call Queuing queues.
|Dependent item|ribbon.system.hpc.queue.attempts
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].hpcQueueAttempts`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: HPC queue overflows|
The current number of HPC calls for which HPC call queuing attempts were unsuccessful because queues were full.
|Dependent item|ribbon.system.hpc.queue.overflows
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].hpcQueueOverflows`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: HPC queue abandons|
The current number of HPC calls that were placed in HPC Call Queuing queues, but were subsequently abandoned before they could be completed.
|Dependent item|ribbon.system.hpc.queue.abandons
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].hpcQueueAbandons`

- 
Discard unchanged with heartbeat: `12h`

|
|Call statistics: HPC queue timeouts|
The current number of HPC calls removed from HPC Call Queuing queues due to expiration of the queue timeout timer.
|Dependent item|ribbon.system.hpc.queue.timeouts
**Preprocessing**

- 
JSON Path: `$.callCountCurrentStatistics[0].hpcQueueTimeouts`

- 
Discard unchanged with heartbeat: `12h`

|

### Triggers

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Failed to get metric data|
Failed to get API metrics for the Ribbon.
|`length(last(/Ribbon SBC SWe Core by HTTP/ribbon.system.data.get.check))>0`|Warning||

### LLD rule Sync module discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Sync module discovery|
Used for the discovery of sync modules.
|Dependent item|ribbon.sync.module.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Sync module discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Module [{#SYNC.MODULE}]: Sync status|
Indicates the inter-CE data synchronization state.
|Dependent item|ribbon.sync.module.status[{#SYNC.MODULE}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for Sync module discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Module [{#SYNC.MODULE}]: Sync status is not "Completed"|
The module sync status is not "Completed".
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.sync.module.status[{#SYNC.MODULE}])<>"syncCompleted"`|Average||

### LLD rule Call engine discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Call engine discovery|
Used for the discovery of call engines.
|Dependent item|ribbon.ce.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Call engine discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Call engine [{#CE.NAME}]: Name|
Name of the CE instance provided by the user.
|Dependent item|ribbon.ce.name[{#CE.NAME}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `12h`

|
|Call engine [{#CE.NAME}]: Role|
Server admin role. When set to primary, the role designates a server for internal processing.
|Dependent item|ribbon.ce.role[{#CE.NAME}]
**Preprocessing**

- 
JSON Path: `$.serverAdmin.[?(@.name == "{#CE.NAME}")].role.first()`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|
|Call engine [{#CE.NAME}]: HW type|
HW type of the server.
|Dependent item|ribbon.ce.hw.type[{#CE.NAME}]
**Preprocessing**

- 
JSON Path: `$.serverAdmin.[?(@.name == "{#CE.NAME}")].hwType.first()`

- 
Discard unchanged with heartbeat: `12h`

|
|Call engine [{#CE.NAME}]: HW sub-type|
HW sub-type of the server.
|Dependent item|ribbon.ce.hw.sub.type[{#CE.NAME}]
**Preprocessing**

- 
JSON Path: `$.serverAdmin.[?(@.name == "{#CE.NAME}")].hwSubType.first()`

- 
Discard unchanged with heartbeat: `12h`

|

### LLD rule License discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|License discovery|
Used for the discovery of license info.
|Dependent item|ribbon.license.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for License discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|License [{#LICENSE.NAME}]: Usage limit|
Usage limit of the license.
|Dependent item|ribbon.license.usage.limit[{#LICENSE.NAME}/{#LICENSE.SOURCE}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|
|License [{#LICENSE.NAME}]: Current usage|
Current usage of the license.
|Dependent item|ribbon.license.usage.current[{#LICENSE.NAME}/{#LICENSE.SOURCE}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|
|License [{#LICENSE.NAME}]: Expiry date|
Expiry date of the license.
|Dependent item|ribbon.license.expiry.date[{#LICENSE.NAME}/{#LICENSE.SOURCE}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### LLD rule DNS discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|DNS discovery|
Used for the discovery of DNS statistics.
|Dependent item|ribbon.dns.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for DNS discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Raw data|
Raw data of the DNS statistics.
|Dependent item|ribbon.dns.get.stats.data[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Query|
Total number of DNS queries received by the server.
|Dependent item|ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.queries`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Errors|
Total number of DNS errors.
|Dependent item|ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.errors`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Timeouts|
Total number of DNS timeouts.
|Dependent item|ribbon.dns.timeouts[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.timeouts`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: Referrals|
Total number of DNS referrals.
|Dependent item|ribbon.dns.referrals[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.referrals`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection|
Total number of DNS TCP connection.
|Dependent item|ribbon.dns.connection[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.totalTcpConnection`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection failed|
Total number of DNS TCP connection failed.
|Dependent item|ribbon.dns.connection.failed[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.tcpConnectionFailed`

- 
Discard unchanged with heartbeat: `1h`

|
|DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: TCP connection torn down|
Total number of DNS TCP connection torn down.
|Dependent item|ribbon.dns.connection.torn.down[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]
**Preprocessing**

- 
JSON Path: `$.tcpConnectiontorndown`

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for DNS discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High number of errors|
The number of DNS errors is high.
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}]) >= {$RIBBON.DNS.ERRORS.TRIGGER.THRESHOLD}`|Warning||
|Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High percentage of errors|
The percentage of DNS errors is high.
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.errors[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])/last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])*100>{$RIBBON.DNS.ERRORS.PERCENT.TRIGGER.THRESHOLD}`|Warning||
|Ribbon: DNS [{#DNS.GROUP}][{#DNS.SERVER}][{#DNS.IP}]: High percentage of timeouts|
The percentage of DNS timeouts is high.
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.timeouts[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])/last(/Ribbon SBC SWe Core by HTTP/ribbon.dns.query[{#DNS.GROUP}/{#DNS.SERVER}/{#DNS.IP}])*100>{$RIBBON.DNS.TIMEOUTS.PERCENT.TRIGGER.THRESHOLD}`|Warning||

### LLD rule Trunk group discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Trunk group discovery|
Used for the discovery of trunk group statistics.
|Dependent item|ribbon.trunk.group.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Trunk group discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Raw data|
Raw data of trunk group statistics.
|Dependent item|ribbon.trunk.get.stats.data[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `The text is too long. Please see the template.`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: State|
Current operational state of the IP trunk group.
|Dependent item|ribbon.trunk.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.state`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Packet out detect state|
Indicates the packet outage detection state of the trunk. `normal` - No packet outage declared. `packetOutageState` - Packet outage declared. The current bandwidth limit may be reduced according to the outage detection policy.
|Dependent item|ribbon.trunk.packet.out.detect.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.packetOutDetectState`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Total available calls|
The sum of all available or unblocked calls for this trunk group.
|Dependent item|ribbon.trunk.available.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.totalCallsAvailable`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Inbound call usage|
Relevant only for IP trunk groups configured for inbound or both directions. Reflects the current inbound or incoming usage count of the IP trunk group (in number of calls).
|Dependent item|ribbon.trunk.inbound.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.inboundCallsUsage`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Outbound call usage|
This reflects the current outbound, non-priority usage count of this IP trunk group (in number of calls).
|Dependent item|ribbon.trunk.outbound.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.outboundCallsUsage`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Priority call usage|
Relevant only for IP trunk groups that are configured with priority call reservation enabled. Reflects the current priority usage count of the IP trunk group (in number of calls).
|Dependent item|ribbon.trunk.priority.usage.calls[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.priorityCallUsage`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth current limit|
The current bandwidth limit for this IP trunk group. It is initially set to the configured bandwidth limit, but may be reduced due to packet outage detection events (in Kbits/sec).
|Dependent item|ribbon.trunk.bw.current.limit[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.bwCurrentLimit`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth available|
Available bandwidth for allocation (in Kbits/sec).
|Dependent item|ribbon.trunk.bw.available[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.bwAvailable`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth inbound usage|
Bandwidth in use for inbound traffic (in Kbits/sec).
|Dependent item|ribbon.trunk.bw.inbound.usage[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.bwInboundUsage`

- 
Discard unchanged with heartbeat: `1h`

|
|Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Bandwidth outbound usage|
Bandwidth in use for outbound traffic (in Kbits/sec).
|Dependent item|ribbon.trunk.bw.outbound.usage[{#TRUNK.GROUP}/{#TRUNK.ZONE}]
**Preprocessing**

- 
JSON Path: `$.bwOutboundUsage`

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for Trunk group discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: State is not "inService"|
Indicates that the trunk is not in service.
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.trunk.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}])<>"inService"`|Warning||
|Ribbon: Trunk [{#TRUNK.GROUP}][{#TRUNK.ZONE}]: Packet out detect state is not "normal"|
Indicates that a packet outage has been declared on this trunk.
|`last(/Ribbon SBC SWe Core by HTTP/ribbon.trunk.packet.out.detect.state[{#TRUNK.GROUP}/{#TRUNK.ZONE}])<>1`|Average||

# Ribbon SBC SWe CE by HTTP

## Overview

The Ribbon SBC Software Edition (SBC SWe) provides the same feature set as the award-winning SBC 5400 and SBC 7000 appliance, without requiring dedicated hardware. This gives enterprises the flexibility to deploy SBC functionality in a variety of environments – in their own data centers, on private cloud infrastructure, or in a public cloud.

This template is designed for the effortless deployment of Ribbon SBC SWe Core monitoring and doesn't require any external scripts.

The template can be used in discovery as well as manually linked to a host. To use this template manually linked to a host, attach it to the host and manually set the value of the `{$RIBBON.CE.NAME}` macro.

More details can be found in the official documentation:
  - [REST API Reference Guide](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/360972436/RESTCONF+API+Reference+Guide)
  - [REST API User Guide](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760643/RESTCONF+API+User+Guide)

## Requirements

Zabbix version: 7.0 and higher.

## Tested versions

This template has been tested on:
- Ribbon SBC SWe core

## Configuration

> Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section.

## Setup

1. Create a new user according to [REST API Requirements](https://publicdoc.rbbn.com/spaces/SBXCONFAPIDOC/pages/444760644/RESTCONF+API+Requirements).
2. Create a new host.
3. Link the template to the host created earlier.
4. Set the host macros (on the host or template level) required for getting data:
```text
{$RIBBON.URL}
```
5. Set the host macros (on the host or template level) with the login and password of the user created earlier:
```text
{$RIBBON.USERNAME}
{$RIBBON.PASSWORD}
```
6. Set the host macros (on the host level) with the name of the call engine (CE).
```text
{$RIBBON.CE.NAME}
```

### Macros used

|Name|Description|Default|
|----|-----------|-------|
|{$RIBBON.USERNAME}|
Ribbon SBC username.
||
|{$RIBBON.PASSWORD}|
Ribbon SBC user password.
||
|{$RIBBON.URL}|
Ribbon SBC API IP.
||
|{$RIBBON.PROXY}|
Sets the HTTP proxy value. If this macro is empty, then no proxy is used.
||
|{$RIBBON.CE.NAME}|
Ribbon SBC CE name.
||
|{$RIBBON.CPU.UTIL.CRIT}|
The threshold of CPU usage in percent.
|`90`|
|{$RIBBON.MEMORY.UTIL.CRIT}|
The threshold of memory usage in percent.
|`90`|
|{$RIBBON.SWAP.UTIL.CRIT}|
The threshold of swap usage in percent.
|`90`|
|{$RIBBON.DISK.UTIL.CRIT}|
The threshold of disk usage in percent.
|`90`|
|{$RIBBON.PORT.UTIL.CRIT}|
The threshold of packet port usage in percent.
|`90`|
|{$RIBBON.FS.DISCOVERY.NAME.MATCHES}|
Sets the regex string of file system names to be allowed in discovery.
|`.*`|
|{$RIBBON.FS.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of file system names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.PACKET.PORT.DISCOVERY.NAME.MATCHES}|
Sets the regex string of packet port names to be allowed in discovery.
|`.*`|
|{$RIBBON.PACKET.PORT.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of packet port names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.MATCHES}|
Sets the regex string of management port names to be allowed in discovery.
|`.*`|
|{$RIBBON.MANAGEMENT.PORT.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of management port names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.MATCHES}|
Sets the regex string of port redundancy group names to be allowed in discovery.
|`.*`|
|{$RIBBON.REDUNDANCY.PORT.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of port redundancy group names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|
|{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.MATCHES}|
Sets the regex string of monitor port names to be allowed in discovery.
|`.*`|
|{$RIBBON.MONITOR.PORT.DISCOVERY.NAME.NOT_MATCHES}|
Sets the regex string of monitor port names to be ignored in discovery.
|`CHANGE_IF_NEEDED`|

### Items

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Get data|
Gets the server information.
|Script|ribbon.server.data.get|
|Get data check|
Checks that the Ribbon metric data has been received correctly.
|Dependent item|ribbon.server.data.get.check
**Preprocessing**

- 
JSON Path: `$.error`

⛔️Custom on fail: Set value to

- 
Discard unchanged with heartbeat: `3h`

|
|Server name|
Identifies the server.
|Dependent item|ribbon.server.name
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].name`

- 
Discard unchanged with heartbeat: `12h`

|
|Server hardware type|
Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager.
|Dependent item|ribbon.server.hw.type
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].hwType`

- 
Discard unchanged with heartbeat: `12h`

|
|Server hardware sub type|
Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager.
|Dependent item|ribbon.server.hw.sub.type
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].hwSubType`

- 
Discard unchanged with heartbeat: `12h`

|
|Serial number|
Identifies the serial number of the server module. This is the serial number assigned to the server module during manufacturing.
|Dependent item|ribbon.server.serial.number
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].serialNum`

- 
Discard unchanged with heartbeat: `12h`

|
|Platform version|
Indicates the platform version currently running on the server.
|Dependent item|ribbon.server.platform.version
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].platformVersion`

- 
Discard unchanged with heartbeat: `12h`

|
|Application version|
Indicates the application version currently running on the server.
|Dependent item|ribbon.server.application.version
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].applicationVersion`

- 
Discard unchanged with heartbeat: `12h`

|
|Role|
Indicates the redundancy role of the server (for management entities).
|Dependent item|ribbon.server.role
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].mgmtRedundancyRole`

- 
Discard unchanged with heartbeat: `12h`

|
|Uptime|
Indicates the server module uptime in days/hours/minutes/seconds.
|Dependent item|ribbon.server.uptime
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].upTime`

- 
JavaScript: `The text is too long. Please see the template.`

|
|Application uptime|
Indicates the application uptime on the server in days/hours/minutes/seconds.
|Dependent item|ribbon.server.application.uptime
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].applicationUpTime`

- 
JavaScript: `The text is too long. Please see the template.`

|
|Sync status|
Indicates the inter-CE data synchronization state.
|Dependent item|ribbon.server.sync.status
**Preprocessing**

- 
JSON Path: `$.serverStatus[0].syncStatus`

- 
Discard unchanged with heartbeat: `12h`

|
|Memory utilization|
The average memory utilization for this interval (in percent).
|Dependent item|ribbon.server.memory.util
**Preprocessing**

- 
JSON Path: `$.memoryUtilCurrentStatistics[0].average`

|
|Swap utilization|
The average swap utilization for this interval (in percent).
|Dependent item|ribbon.server.swap.util
**Preprocessing**

- 
JSON Path: `$.memoryUtilCurrentStatistics[0].averageSwap`

- 
Discard unchanged with heartbeat: `12h`

|
|CPU utilization|
The average CPU utilization for this interval (in percent).
|Dependent item|ribbon.server.cpu.util
**Preprocessing**

- 
JSON Path: `$.cpuUtilCurrentStatistics`

- 
JavaScript: `The text is too long. Please see the template.`

|

### Triggers

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Failed to get metric data|
Failed to get API metrics from the Ribbon SBC.
|`length(last(/Ribbon SBC SWe CE by HTTP/ribbon.server.data.get.check))>0`|Warning||
|Ribbon: Role has been changed||`last(/Ribbon SBC SWe CE by HTTP/ribbon.server.role)<>last(/Ribbon SBC SWe CE by HTTP/ribbon.server.role,#2)`|Info|**Manual close**: Yes|
|Ribbon: Server has been restarted||`last(/Ribbon SBC SWe CE by HTTP/ribbon.server.uptime)<10m`|Info|**Manual close**: Yes|
|Ribbon: Application has been restarted||`last(/Ribbon SBC SWe CE by HTTP/ribbon.server.application.uptime)<10m`|Info|**Manual close**: Yes|
|Ribbon: Synchronization status in not complete||`last(/Ribbon SBC SWe CE by HTTP/ribbon.server.sync.status)<>"syncCompleted"`|Warning|**Manual close**: Yes|
|Ribbon: High memory utilization|
The system is running out of free memory.
|`min(/Ribbon SBC SWe CE by HTTP/ribbon.server.memory.util,5m) > {$RIBBON.MEMORY.UTIL.CRIT}`|Average||
|Ribbon: High swap utilization|
The system is running out of free memory.
|`min(/Ribbon SBC SWe CE by HTTP/ribbon.server.swap.util,5m) > {$RIBBON.SWAP.UTIL.CRIT}`|Average||
|Ribbon: High cpu utilization|
CPU utilization is too high. The system might be slow to respond.
|`min(/Ribbon SBC SWe CE by HTTP/ribbon.server.cpu.util,5m) > {$RIBBON.CPU.UTIL.CRIT}`|Average||

### LLD rule CPU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|CPU discovery|
Used for the discovery of CPU.
|Dependent item|ribbon.cpu.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for CPU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|CPU [{#CPU.NUM}]: Utilization|
The average CPU utilization for this interval (in percent).
|Dependent item|ribbon.sync.cpu.util[{#CPU.NUM}]
**Preprocessing**

- 
JSON Path: `$.cpuUtilCurrentStatistics.["{#CPU.NUM}"].average`

|

### LLD rule FS discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|FS discovery|
Used for the discovery of disks.
|Dependent item|ribbon.fs.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for FS discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|FS [{#FS}]: Total size|
Capacity of the disk.
|Dependent item|ribbon.fs.total[{#FS}]
**Preprocessing**

- 
JSON Path: `$.hardDiskUsage.["{#FS}"].totalDiskSpace`

- 
Trim: `KBytes`

- 
Custom multiplier: `1024`

- 
Discard unchanged with heartbeat: `12h`

|
|FS [{#FS}]: Free|
Indicates free hard disk space.
|Dependent item|ribbon.fs.free[{#FS}]
**Preprocessing**

- 
JSON Path: `$.hardDiskUsage.["{#FS}"].freeDiskSpace`

- 
Trim: `KBytes`

- 
Custom multiplier: `1024`

- 
Discard unchanged with heartbeat: `12h`

|
|FS [{#FS}]: Utilization|
Indicates used hard disk space.
|Dependent item|ribbon.fs.util[{#FS}]
**Preprocessing**

- 
JSON Path: `$.hardDiskUsage.["{#FS}"].usedDiskSpace`

- 
Trim: `%`

- 
Discard unchanged with heartbeat: `12h`

|
|FS [{#FS}]: Role|
Role of the server for the indicated partition.
|Dependent item|ribbon.fs.role[{#FS}]
**Preprocessing**

- 
JSON Path: `$.hardDiskUsage.["{#FS}"].role`

- 
Discard unchanged with heartbeat: `12h`

|
|FS [{#FS}]: Sync status|
Partition's synchronization status with the peer server.
|Dependent item|ribbon.fs.sync.status[{#FS}]
**Preprocessing**

- 
JSON Path: `$.hardDiskUsage.["{#FS}"].syncStatus`

- 
Discard unchanged with heartbeat: `12h`

|

### Trigger prototypes for FS discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: FS [{#FS}]: High disk space utilization|
Disk space utilization exceeds the critical threshold.
|`min(/Ribbon SBC SWe CE by HTTP/ribbon.fs.util[{#FS}],5m) > {$RIBBON.DISK.UTIL.CRIT}`|Average||

### LLD rule Packet port discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Packet port discovery|
Used for the discovery of packet ports.
|Dependent item|ribbon.packet.port.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Packet port discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Packet port [{#PORT}]: Negotiated speed|
The interface speed. Packet port speed is not negotiable. When statistics are generated for EMS, `negotiatedSpeed` will be displayed as an integer value.

Possible values:

0 - speed10Mbps

1 - speed100Mbps

2 - speed1000Mbps

3 - speed10000Mbps

4 - unknown
|Dependent item|ribbon.packet.port.speed[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.packetPortStatus.["{#PORT}"].negotiatedSpeed`

- 
JavaScript: `The text is too long. Please see the template.`

|
|Packet port [{#PORT}]: RX bandwidth|
Actual Rx bandwidth in use on this port, bytes/sec.
|Dependent item|ribbon.packet.port.rx.bandwidth[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.packetPortStatus.["{#PORT}"].rxActualBandwidth`

|
|Packet port [{#PORT}]: TX bandwidth|
Actual Tx bandwidth in use on this port, bytes/sec.
|Dependent item|ribbon.packet.port.tx.bandwidth[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.packetPortStatus.["{#PORT}"].txActualBandwidth`

|
|Packet port [{#PORT}]: Utilization|
Percentage of maximum bandwidth allocated on this port.
|Dependent item|ribbon.packet.port.util[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.packetPortStatus.["{#PORT}"].bandwidthUsage`

|
|Packet port [{#PORT}]: Link state|
The state of the interface. When statistics are generated for EMS, `linkState` will be displayed as an integer value.

Possible values:

0 - null

1 - admnDisabled

2 - admnEnabledPortDown

3 - admnEnabledPortUp

4 - admnDisabledNoLicense

5 - admnEnabledPortDownInvalidSfpWrongSpeed

6 - admnEnabledPortDownInvalidSfpNonSonus

7 - unknown
|Dependent item|ribbon.packet.port.link.state[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.packetPortStatus.["{#PORT}"].linkState`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `12h`

|

### Trigger prototypes for Packet port discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Packet port [{#PORT}]: High port utilization|
Packet port utilization exceeds the critical threshold.
|`min(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.util[{#PORT}],5m) > {$RIBBON.PORT.UTIL.CRIT}`|Average||
|Ribbon: Packet port [{#PORT}]: Link state is down|
The packet port link state is `down`.
|`last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=2 or last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=5 or last(/Ribbon SBC SWe CE by HTTP/ribbon.packet.port.link.state[{#PORT}])=6`|Average||

### LLD rule Management port discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Management port discovery|
Used for the discovery of management ports.
|Dependent item|ribbon.mgmt.port.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Management port discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Management port [{#PORT}]: Negotiated speed|
The negotiated interface speed. When statistics are generated for EMS, `negotiatedSpeed` will be displayed as an integer value.

Possible values:

0 - speed10Mbps

1 - speed100Mbps

2 - speed1000Mbps

3 - speed10000Mbps

4 - unknown
|Dependent item|ribbon.mgmt.port.speed[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.mgmtPortStatus.["{#PORT}"].negotiatedSpeed`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `12h`

|
|Management port [{#PORT}]: Link state|
The state of the interface.

Possible values:

0 - null

1 - admnDisabled

2 - admnEnabledPortDown

3 - admnEnabledPortUp

4 - admnDisabledNoLicense

5 - admnEnabledPortDownInvalidSfpWrongSpeed

6 - admnEnabledPortDownInvalidSfpNonSonus

7 - unknown
|Dependent item|ribbon.mgmt.port.link.state[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.mgmtPortStatus.["{#PORT}"].linkState`

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `12h`

|
|Management port [{#PORT}]: Duplex mode|
The negotiated interface duplex mode.
|Dependent item|ribbon.mgmt.port.duplex.mode[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.mgmtPortStatus.["{#PORT}"].duplexMode`

- 
Discard unchanged with heartbeat: `12h`

|
|Management port [{#PORT}]: RX bandwidth|
Actual Rx bandwidth in use on this port, bytes/sec.
|Dependent item|ribbon.mgmt.port.rx.bandwidth[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.mgmtPortStatus.["{#PORT}"].rxActualBandwidth`

|
|Management port [{#PORT}]: TX bandwidth|
Actual Tx bandwidth in use on this port, bytes/sec.
|Dependent item|ribbon.mgmt.port.tx.bandwidth[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.mgmtPortStatus.["{#PORT}"].txActualBandwidth`

|

### Trigger prototypes for Management port discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Management port [{#PORT}]: Link state is down|
The management port link state is `down`.
|`last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=2 or last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=5 or last(/Ribbon SBC SWe CE by HTTP/ribbon.mgmt.port.link.state[{#PORT}])=6`|Average||

### LLD rule Port redundancy group discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Port redundancy group discovery|
Used for the discovery of port redundancy groups.
|Dependent item|ribbon.redundancy.port.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Port redundancy group discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Port redundancy group [{#PORT}]: Group name|
The name of this port redundancy group.
|Dependent item|ribbon.redundancy.port.group.name[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].prgName`

- 
Discard unchanged with heartbeat: `12h`

|
|Port redundancy group [{#PORT}]: Port name|
The name of the physical/logical port.
|Dependent item|ribbon.redundancy.port.name[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].portName`

- 
Discard unchanged with heartbeat: `12h`

|
|Port redundancy group [{#PORT}]: Type|
Interface type of this port redundancy group.
|Dependent item|ribbon.redundancy.port.type[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].interfaceType`

- 
Discard unchanged with heartbeat: `12h`

|
|Port redundancy group [{#PORT}]: State|
The state of the logical port.
|Dependent item|ribbon.redundancy.port.state[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].state`

- 
Discard unchanged with heartbeat: `12h`

|
|Port redundancy group [{#PORT}]: Redundancy mode|
The VM redundancy mode of the CE.
|Dependent item|ribbon.redundancy.port.mode[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].vmRedundancyMode`

- 
Discard unchanged with heartbeat: `12h`

|
|Port redundancy group [{#PORT}]: Failure count|
The current number of port monitors within this port redundancy group that have declared themselves failed.
|Dependent item|ribbon.redundancy.port.failure.count[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portRedundancyGroupStatus.["{#PORT}"].failureCount`

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for Port redundancy group discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Port redundancy group [{#PORT}]: State is not "up"|
The port redundancy group state is not `up`.
|`last(/Ribbon SBC SWe CE by HTTP/ribbon.redundancy.port.state[{#PORT}])<>"up"`|Average||

### LLD rule Port monitor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Port monitor discovery|
Used for the discovery of port monitors.
|Dependent item|ribbon.monitor.port.discovery
**Preprocessing**

- 
JavaScript: `The text is too long. Please see the template.`

- 
Discard unchanged with heartbeat: `1h`

|

### Item prototypes for Port monitor discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Port monitor [{#PORT}]: Group name|
The name of this port group.
|Dependent item|ribbon.monitor.port.group.name[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].prgName`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Name|
The name of this port monitor.
|Dependent item|ribbon.monitor.port.name[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].pmName`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Physical name|
The name of the physical port.
|Dependent item|ribbon.monitor.port.physical.name[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].portName`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Role|
The role of the physical port.
|Dependent item|ribbon.monitor.port.role[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].role`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Fault state|
The fault state of the physical port.
|Dependent item|ribbon.monitor.port.fault.state[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].faultState`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: State|
The link state of the physical port.
|Dependent item|ribbon.monitor.port.state[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].state`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Failures|
The current number of failures on this port monitor.
|Dependent item|ribbon.monitor.port.failures[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].failures`

- 
Discard unchanged with heartbeat: `12h`

|
|Port monitor [{#PORT}]: Link failures|
The current number of link failures on this port monitor.
|Dependent item|ribbon.monitor.port.link.failures[{#PORT}]
**Preprocessing**

- 
JSON Path: `$.portMonitorStatus.["{#PORT}"].linkFailures`

- 
Discard unchanged with heartbeat: `12h`

|

### Trigger prototypes for Port monitor discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|Ribbon: Port monitor [{#PORT}]: State is not "up"|
The port monitor state is not `up`.
|`last(/Ribbon SBC SWe CE by HTTP/ribbon.monitor.port.state[{#PORT}])<>"up"`|Average||

## Feedback

Please report any issues with the template at [`https://support.zabbix.com`](https://support.zabbix.com)

You can also provide feedback, discuss the template, or ask for help at [`ZABBIX forums`](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback)

