Oracle Cloud Networking

Oracle Cloud Infrastructure Networking covers the virtual cloud networks, subnets and gateways that carry traffic between cloud resources and the outside.

Dostupná řešení

Zabbix version 7.4 7.2 7.0 6.4 6.0
Source: templates/cloud/oracle_cloud

Oracle Cloud Networking by HTTP

Overview

This template monitors Oracle Cloud Infrastructure (OCI) single virtual network card availability and discovers attached subnets and monitors their availability.

This template is not meant to be used independently, but together with Oracle Cloud by HTTP as a template for LLD host prototypes.

For communication with OCI, this template utilizes script items which execute HTTP GET requests.

Requirements

Zabbix version: 7.4 and higher.

Tested versions

This template has been tested on:

  • Oracle Cloud Infrastructure

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

This template is not meant to be used independently. A host with the Oracle Cloud by HTTP template will discover OCI virtual cloud networks (VCNs) automatically, create host prototypes for each discovered VCN, and apply it this template.

If needed, you can specify an HTTP proxy for the template to use by changing the value of {$OCI.HTTP.PROXY} user macro.

If using a proxy, the returned OK HTTP response could change from "200" to a different value. In that case, please adjust the user macro {$OCI.HTTP.RETURN.CODE.OK}

LLD filter values and trigger threshold values can be changed with respective user macros.

Macros used

Name Description Default
{$OCI.HTTP.PROXY}

Set an HTTP proxy for OCI API requests if needed.

{$HTTP.TLS.VERIFY}

TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Oracle Cloud Networking", e.g. {$HTTP.TLS.VERIFY:"Oracle Cloud Networking"}.

full
{$OCI.HTTP.RETURN.CODE.OK}

Set the HTTP return code that represents an OK response from the API. The default is "200", but can vary, for example, if a proxy is used.

200
{$OCI.VCN.SUBNET.DISCOVERY.STATE.MATCHES}

Sets the regex string of VCN subnet states to allow in discovery.

.*
{$OCI.VCN.SUBNET.DISCOVERY.STATE.NOT_MATCHES}

Sets the regex string of VCN subnet states to ignore in discovery.

CHANGE_IF_NEEDED
{$OCI.VCN.SUBNET.DISCOVERY.NAME.MATCHES}

Sets the regex string of VCN subnet names to allow in discovery.

.*
{$OCI.VCN.SUBNET.DISCOVERY.NAME.NOT_MATCHES}

Sets the regex string of VCN subnet names to ignore in discovery.

CHANGE_IF_NEEDED

Items

Name Description Type Key and additional info
Get VCN state

State of the virtual cloud network.

Script oci.vcn.state.get

Preprocessing

  • Replace: " ->

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

  • Discard unchanged with heartbeat: 1h

Get subnets

Get data about subnets linked to the particular VCN.

Script oci.vcn.subnets.get

Triggers

Name Description Expression Severity Dependencies and additional info
OCI VCN: VCN state terminated

Virtual cloud network state is "terminated" or "terminating".

min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 3 or min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 4 High
OCI VCN: VCN state unknown

Virtual cloud network state is unknown.

min(/Oracle Cloud Networking by HTTP/oci.vcn.state.get,5m) = 0 Warning

LLD rule Subnet discovery

Name Description Type Key and additional info
Subnet discovery

Discover subnets linked to the particular VCN.

Dependent item oci.vcn.subnet.discovery

Preprocessing

  • Discard unchanged with heartbeat: 1h

Item prototypes for Subnet discovery

Name Description Type Key and additional info
Subnet [{#NAME}]: Get subnet state

Current state of subnet.

Dependent item oci.vcn.subnet.state[{#ID}]

Preprocessing

  • JSON Path: $..[?(@.id == '{#ID}')].state.first()

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

  • Discard unchanged with heartbeat: 1h

Trigger prototypes for Subnet discovery

Name Description Expression Severity Dependencies and additional info
OCI VCN: Subnet [{#NAME}]: Subnet state terminated

Virtual cloud network subnet state is "terminated" or "terminating".

min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 3 or min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 4 High
OCI VCN: Subnet [{#NAME}]: Subnet state unknown

Virtual cloud network subnet state is unknown.

min(/Oracle Cloud Networking by HTTP/oci.vcn.subnet.state[{#ID}],5m) = 0 Warning

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template, or ask for help at ZABBIX forums

Články a dokumentace

+ Navrhněte nový článek

Nenašli jste integraci, kterou potřebujete?