first commit

This commit is contained in:
ansimstefl
2025-05-29 21:55:04 +02:00
parent 3884a9f9e9
commit a4c2dca44e
70 changed files with 3373 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
# Basic Authelia Config
# Send a subsequent request to Authelia to verify if the user is authenticated
# and has the right permissions to access the resource.
auth_request /authelia;
# Set the `target_url` variable based on the request. It will be used to build the portal
# URL with the correct redirection parameter.
auth_request_set $target_url $scheme://$http_host$request_uri;
# Set the X-Forwarded-User and X-Forwarded-Groups with the headers
# returned by Authelia for the backends which can consume them.
# This is not safe, as the backend must make sure that they come from the
# proxy. In the future, it's gonna be safe to just use OAuth.
auth_request_set $user $upstream_http_remote_user;
auth_request_set $groups $upstream_http_remote_groups;
auth_request_set $name $upstream_http_remote_name;
auth_request_set $email $upstream_http_remote_email;
proxy_set_header Remote-User $user;
proxy_set_header Remote-Groups $groups;
proxy_set_header Remote-Name $name;
proxy_set_header Remote-Email $email;
# If Authelia returns 401, then nginx redirects the user to the login portal.
# If it returns 200, then the request pass through to the backend.
# For other type of errors, nginx will handle them as usual.
error_page 401 =302 https://authelia.czech-tv.cz/?rd=$target_url;
+38
View File
@@ -0,0 +1,38 @@
# Virtual endpoint created by nginx to forward auth requests.
location /authelia {
internal;
set $upstream_authelia https://127.0.0.1:9091/api/verify;
proxy_pass_request_body off;
proxy_pass $upstream_authelia;
proxy_set_header Content-Length "";
# Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# [REQUIRED] Needed by Authelia to check authorizations of the resource.
# Provide either X-Original-URL and X-Forwarded-Proto or
# X-Forwarded-Proto, X-Forwarded-Host and X-Forwarded-Uri or both.
# Those headers will be used by Authelia to deduce the target url of the user.
# Basic Proxy Config
client_body_buffer_size 128k;
proxy_set_header Host $host;
proxy_set_header X-Original-URL $scheme://$http_host$request_uri;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Uri $request_uri;
proxy_set_header X-Forwarded-Ssl on;
proxy_redirect http:// $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 4 32k;
# Advanced Proxy Config
send_timeout 5m;
proxy_read_timeout 240;
proxy_send_timeout 240;
proxy_connect_timeout 240;
}
+53
View File
@@ -0,0 +1,53 @@
server {
server_name authelia.czech-tv.cz;
listen 80;
return 301 https://$server_name$request_uri;
}
server {
server_name authelia.czech-tv.cz;
listen 443 ssl http2;
ssl_certificate /etc/nginx/cert/CT.crt;
ssl_certificate_key /etc/nginx/cert/CT.key;
location / {
set $upstream_authelia https://127.0.0.1:9091;
proxy_pass $upstream_authelia;
client_body_buffer_size 128k;
#Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# Advanced Proxy Config
send_timeout 5m;
proxy_read_timeout 360;
proxy_send_timeout 360;
proxy_connect_timeout 360;
# Basic Proxy Config
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Uri $request_uri;
proxy_set_header X-Forwarded-Ssl on;
proxy_redirect http:// $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 64 256k;
# If behind reverse proxy, forwards the correct IP
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.0.0.0/8;
set_real_ip_from 192.168.0.0/16;
set_real_ip_from fc00::/7;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
}
}
+130
View File
@@ -0,0 +1,130 @@
---
theme: dark
jwt_secret: tHJQyNgBaULdQDQEAMFeduKa
default_redirection_url: https://ceskatelevize.cz/
default_2fa_method: "totp"
server:
host: 0.0.0.0
# port: 9091
port: 443
tls:
key: "/home/ct/CT.key"
certificate: "/home/ct/CT.pem"
client_certificates: []
log:
level: info
file_path: /var/log/authelia.log
telemetry:
metrics:
enabled: true
address: tcp://172.30.29.119:9902
totp:
disable: false
issuer: authelia.com
algorithm: sha1
digits: 6
period: 30
skew: 1
secret_size: 32
webauthn:
disable: false
timeout: 60s
display_name: Authelia
attestation_conveyance_preference: indirect
user_verification: preferred
ntp:
address: "time.czech-tv.cz:123"
version: 4
max_desync: 3s
disable_startup_check: false
disable_failure: false
authentication_backend:
password_reset:
disable: true
refresh_interval: 5m
ldap:
implementation: custom
url: ldap://ct.czech-tv.cz
timeout: 5s
start_tls: false
base_dn: DC=ct,DC=czech-tv,DC=cz
username_attribute: sAMAccountName
users_filter: (&({username_attribute}={input})(objectClass=person))
groups_filter: (&(member={dn})(objectClass=groupOfNames))
group_name_attribute: cn
mail_attribute: mail
display_name_attribute: displayName
user: "CN=Ldap ADReader,OU=ServisniUzivatele,OU=Admins,DC=ct,DC=czech-tv,DC=cz"
password: Buchtickyses0do
password_policy:
standard:
enabled: false
min_length: 8
max_length: 0
require_uppercase: true
require_lowercase: true
require_number: true
require_special: true
zxcvbn:
enabled: false
min_score: 3
access_control:
default_policy: deny
rules:
- domain: 'authelia.czech-tv.cz'
policy: bypass
- domain:
- 'ctcloud1.czech-tv.cz'
policy: two_factor
- domain:
- 'secure.czech-tv.cz'
policy: two_factor
- domain:
- 'ctcloud2.czech-tv.cz'
policy: two_factor
- domain:
- 'zabbix.czech-tv.cz'
policy: two_factor
- domain:
- 'public.czech-tv.cz'
policy: one_factor
- domain:
- 'ctclouduit.czech-tv.cz'
policy: two_factor
- domain:
- 'pha-mail1.ct.czech-tv.cz'
policy: two_factor
session:
name: authelia_session
domain: czech-tv.cz
same_site: lax
secret: dCdvLKWytdP66qqHpycVk6TuGK5m
expiration: 1h
inactivity: 1m
remember_me_duration: 1M
regulation:
max_retries: 3
find_time: 2m
ban_time: 10m
storage:
encryption_key: dCdvLKWytdP66qqHpycVk6TuGK5m
mysql:
host: 172.30.29.119
port: 3306
database: authelia
username: authelia
password: sojka123
timeout: 5s
notifier:
disable_startup_check: false
smtp:
host: mail.czech-tv.cz
port: 25
sender: "Authelia <authelia@czech-tv.cz>"
subject: "[Authelia] {title}"
disable_require_tls: true
...
+50
View File
@@ -0,0 +1,50 @@
server {
listen 443;
server_name ctclouduit.czech-tv.cz;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
client_max_body_size 10240M;
ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
ssl_prefer_server_ciphers on;
ssl_certificate /etc/nginx/cert/CT.crt;
ssl_certificate_key /etc/nginx/cert/CT.key;
access_log /var/log/nginx/ctclouduit_access.log;
error_log /var/log/nginx/ctclouduit_error.log;
include snippets/authelia.conf; # Authelia auth endpoint
location / {
proxy_pass https://172.30.26.252;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
include snippets/auth.conf; # Protect this endpoint
proxy_http_version 1.1;
}
}
server {
if ($host = ctclouduit.czech-tv.cz) {
return 301 https://$host$request_uri;
}
listen 80;
server_name ctclouduit.czech-tv.cz;
return 404;
}
+2
View File
@@ -0,0 +1,2 @@
CREATE USER 'librenms'@'192.168.1.2' IDENTIFIED BY 'Sojka123456';
GRANT ALL PRIVILEGES ON *.* TO 'librenms'@'192.168.1.2';
+85
View File
@@ -0,0 +1,85 @@
<?php
$CONFIG = array (
'instanceid' => 'oc95n97fgwc9',
'passwordsalt' => 'u8+3d4tygzltPf5KORNIxUA/f7uBZ3',
'secret' => 'bhCsFhQRhx62fasvykG7uOuOtvCy+EeAj9DLnuLOKO7pWlQA',
'trusted_domains' =>
array (
0 => 'ctcloud3.czech-tv.cz',
),
'datadirectory' => '/var/www/html/owncloud/data',
'overwrite.cli.url' => 'https://ctcloud3.czech-tv.cz',
'dbtype' => 'pgsql',
'version' => '10.9.0.3',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => 'jj23snerzgkbxamh5dcjeuq10s1xz9',
'logtimezone' => 'UTC',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/owncloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/owncloud/apps-external',
'url' => '/apps-external',
'writable' => true,
),
),
'installed' => true,
'theme' => '',
'ldapIgnoreNamingRules' => false,
'mail_domain' => 'czech-tv.cz',
'mail_from_address' => 'ctcloud3',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'mail.czech-tv.cz',
'mail_smtpport' => '25',
'default_language' => 'cs_CZ',
'trashbin_retention_obligation' => 0,
'log_type' => 'owncloud',
'logfile' => '/var/log/owncloud.log',
'loglevel' => 4,
'logdateformat' => 'F d, Y H:i:s',
'enable_previews' => true,
'preview_max_x' => 1024,
'preview_max_y' => 1024,
'preview_max_scale_factor' => 1,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
10 => 'OC\\Preview\\BMP',
11 => 'OC\\Preview\\XBitmap',
12 => 'OC\\Preview\\MP3',
15 => 'OC\\Preview\\TXT',
20 => 'OC\\Preview\\MarkDown',
25 => 'OC\\Preview\\OpenDocument',
30 => 'OC\\Preview\\TIFF',
35 => 'OC\\Preview\\Movie',
),
'enable_movie_transcode' => true,
'versions_retention_obligation' => 'enable',
'maintenance' => false,
'updatechecker' => false,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'dbindex' => 0,
'timeout' => 0,
0 => 0,
),
'upgrade.automatic-app-update' => false,
'skeletondirectory' => '/var/www/html/skeleteon_dir_woncloud',
'allow_user_to_change_mail_address' => '',
);
+13
View File
@@ -0,0 +1,13 @@
sudo -u www-data ./occ app:disable activity
sudo -u www-data ./occ app:disable customgroups
sudo -u www-data ./occ app:disable guest
sudo -u www-data ./occ app:disable guests
sudo -u www-data ./occ app:enabled guests
sudo -u www-data ./occ app:enable guests
sudo -u www-data ./occ app:list
sudo -u www-data ./occ app:list
sudo -u www-data ./occ upgrade
sudo -u www-data ./occ user:sync "OCA\User_LDAP\User_Proxy"
sudo -u www-data php occ ldap:show-config
+23
View File
@@ -0,0 +1,23 @@
postgres@ctcloud:/var/www/html$ psql
psql (13.11 (Debian 13.11-0+deb11u1))
Type "help" for help.
postgres=# create database owncloud;
CREATE DATABASE
postgres=# create user owncloud with encrypted password 'Datel123456';
CREATE ROLE
postgres=# grant all privileges on database owncloud to owncloud;
GRANT
postgres=# CREATE USER zbx_monitor WITH PASSWORD 'datel1234' INHERIT;
CREATE ROLE
postgres=# ^[[200~GRANT pg_monitor TO zbx_monitor;~
ERROR: syntax error at or near "
INE 1: GRANT pg_monitor TO zbx_monitor;
^
postgres-# GRANT pg_monitor TO zbx_monitor;
ERROR: syntax error at or near "~"
LINE 1: ~
^
postgres=# GRANT pg_monitor TO zbx_monitor;
GRANT ROLE
postgres=#
+46
View File
@@ -0,0 +1,46 @@
{
"domain": "https://heslovnik.czech-tv.cz",
"sends_allowed": true,
"hibp_api_key": "jdvpetsk12",
"incomplete_2fa_time_limit": 3,
"disable_icon_download": false,
"signups_allowed": true,
"signups_verify": true,
"signups_verify_resend_time": 3600,
"signups_verify_resend_limit": 6,
"signups_domains_whitelist": "czech-tv.cz,ct.czech-tv.cz,ceskatelevize.cz",
"invitations_allowed": true,
"emergency_access_allowed": true,
"password_iterations": 100000,
"password_hints_allowed": true,
"show_password_hint": false,
"admin_token": " 2DcKWJtshWQejDL6ZPELxXeY",
"invitation_org_name": "ceskatelevize.cz",
"ip_header": "X-Real-IP",
"icon_redirect_code": 302,
"icon_cache_ttl": 2592000,
"icon_cache_negttl": 259200,
"icon_download_timeout": 10,
"icon_blacklist_non_global_ips": true,
"disable_2fa_remember": false,
"authenticator_disable_time_drift": false,
"require_device_email": false,
"reload_templates": false,
"log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f",
"_enable_yubico": true,
"_enable_duo": false,
"_enable_smtp": true,
"smtp_host": "mail.czech-tv.cz",
"smtp_security": "off",
"smtp_port": 25,
"smtp_from": "vaultwarden@ceskatelevize.cz",
"smtp_from_name": "vaultwarden",
"smtp_timeout": 30,
"smtp_embed_images": true,
"smtp_accept_invalid_certs": false,
"smtp_accept_invalid_hostnames": false,
"_enable_email_2fa": true,
"email_token_size": 6,
"email_expiration_time": 600,
"email_attempts_limit": 3
}
+8
View File
@@ -0,0 +1,8 @@
vaultwarden_url = "https://passbolt.czech-tv.cz"
vaultwarden_admin_token = "admin"
ldap_host = "ct.czech-tv.cz"
ldap_bind_dn = "CN=Ldap ADReader,OU=ServisniUzivatele,OU=Admins,DC=ct,DC=czech-tv,DC=cz"
ldap_bind_password = "Buchtickyses0do"
ldap_search_base_dn = "DC=ct,DC=czech-tv,DC=cz"
ldap_search_filter = "(&(objectClass=*)(uid=*))"
ldap_sync_interval_seconds = 10
+34
View File
@@ -0,0 +1,34 @@
version: '3'
services:
vaultwarden:
restart: always
container_name: vaultwarden
image: vaultwarden/server:latest
volumes:
- /var/lib/valutwarden/:/data/
- /var/lib/valutwarden/:/data/logs
ports:
- 8080:80
environment:
- SMTP_HOST=mail.czech-tv.cz
- SMTP_FROM=vaultwarden@ceskatelevize.cz
- SMTP_FROM_NAME=vaultwarden
- SMTP_PORT=25
- SMTP_TIMEOUT=30
- LOGIN_RATELIMIT_MAX_BURST=10
- LOGIN_RATELIMIT_SECONDS=60
- SMTP_SECURITY=off
- DOMAIN=https://heslovnik.czech-tv.cz
- INVITATION_ORG_NAME=ceskatelevize.cz
- INVITATIONS_ALLOWED=true
- ADMIN_TOKEN= 2DcKWJtshWQejDL6ZPELxXeY
- SIGNUPS_ALLOWED=true
- SIGNUPS_DOMAINS_WHITELIST=czech-tv.cz,ct.czech-tv.cz,ceskatelevize.cz
- SIGNUPS_VERIFY=true
- SIGNUPS_VERIFY_RESEND_TIME=3600
- SIGNUPS_VERIFY_RESEND_LIMIT=6
- EMERGENCY_ACCESS_ALLOWED=true
- SENDS_ALLOWED=true
- WEB_VAULT_ENABLED=true
- TIME_ZONE="Europe/Prague"
- RUST_BACKTRACE=full
+47
View File
@@ -0,0 +1,47 @@
---
version: '3'
services:
ldap_sync:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./example.config.toml:/config.toml:ro
# ./root.cert:/usr/src/vaultwarden_ldap/root.cert:ro
environment:
CONFIG_PATH: /config.toml
RUST_BACKTRACE: 1
depends_on:
- vaultwarden
- ldap
restart: always
vaultwarden:
image: vaultwarden/server
ports:
- 8000:80
environment:
ADMIN_TOKEN: admin
SIGNUPS_ALLOWED: 'false'
INVITATIONS_ALLOWED: 'true'
I_REALLY_WANT_VOLATILE_STORAGE: 'true'
ldap:
image: osixia/openldap
volumes:
- /var/lib/ldap
- /etc/ldap/slapd.d
environment:
LDAP_READONLY_USER: 'true'
LDAP_READONLY_USER_USERNAME: readonly
LDAP_READONLY_USER_PASSWORD: readonly
ldap_admin:
image: osixia/phpldapadmin
ports:
- 8001:80
environment:
PHPLDAPADMIN_HTTPS: 'false'
PHPLDAPADMIN_LDAP_HOSTS: ldap
depends_on:
- ldap
+49
View File
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2020-09-09T18:18:33Z</date>
<value_maps>
<value_map>
<name>bgpPeerAdminStatus</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>Stop</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>Start</newvalue>
</mapping>
</mappings>
</value_map>
<value_map>
<name>BgpPeerState</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>idle</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>connect</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>active</newvalue>
</mapping>
<mapping>
<value>4</value>
<newvalue>opensent</newvalue>
</mapping>
<mapping>
<value>5</value>
<newvalue>openconfirm</newvalue>
</mapping>
<mapping>
<value>6</value>
<newvalue>established</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>
@@ -0,0 +1,284 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2020-09-09T18:10:32Z</date>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<templates>
<template>
<template>Template Net Huawei VRP SNMPv2 - BGP</template>
<name>Template Net Huawei VRP SNMPv2 - BGP</name>
<description>Template for Huawei VRP to monitor BGP sessions</description>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<applications>
<application>
<name>Routing Table Info</name>
</application>
</applications>
<items>
<item>
<name>Total IPv4 FIB Routes</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.2.1.4.24.3.0</snmp_oid>
<key>hwIPv4FibRoutes</key>
<delay>5m</delay>
<history>7d</history>
<trends>30d</trends>
<units>Prefixes</units>
<applications>
<application>
<name>Routing Table Info</name>
</application>
</applications>
</item>
<item>
<name>Total IPv4 RIB Routes</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.177.9.1.0</snmp_oid>
<key>hwIPv4RibRoutes</key>
<delay>5m</delay>
<history>7d</history>
<trends>30d</trends>
<units>Prefixes</units>
<applications>
<application>
<name>Routing Table Info</name>
</application>
</applications>
</item>
<item>
<name>Total IPv6 FIB Routes</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.55.1.9.0</snmp_oid>
<key>hwIPv6FibRoutes</key>
<delay>5m</delay>
<history>7d</history>
<trends>30d</trends>
<units>Prefixes</units>
<applications>
<application>
<name>Routing Table Info</name>
</application>
</applications>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>BGP4 Peer(s)</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#BGPPEER},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.4.0,{#ASNUM},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.2.0,{#ADMSTATUS},.1.3.6.1.4.1.2011.5.25.177.1.1.2.1.11.0]</snmp_oid>
<key>BgpPeerRemoteAddr</key>
<delay>1h</delay>
<filter>
<conditions>
<condition>
<macro>{#ADMSTATUS}</macro>
<value>2</value>
<formulaid>A</formulaid>
</condition>
</conditions>
</filter>
<lifetime>0</lifetime>
<item_prototypes>
<item_prototype>
<name>AS Name for IPv4 peer {#BGPPEER} - AS{#ASNUM}</name>
<type>EXTERNAL</type>
<key>asname[{#BGPPEER},{HOST.IP},{#ASNUM}]</key>
<delay>1d</delay>
<history>30d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<description>as_name[&quot;-p&quot;,{#ASNUM}]&#13;
asname[{#BGPPEER},{HOST.IP},{#ASNUM}]</description>
<application_prototypes>
<application_prototype>
<name>BGP Peer {#BGPPEER} - AS{#ASNUM}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Established time for peer {#BGPPEER} - AS{#ASNUM}</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.2.1.7.0.{#SNMPINDEX}</snmp_oid>
<key>BgpPeerFsmEstablishedTime[{#BGPPEER}]</key>
<delay>2m</delay>
<history>30d</history>
<trends>90d</trends>
<units>uptime</units>
<application_prototypes>
<application_prototype>
<name>BGP Peer {#BGPPEER} - AS{#ASNUM}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Total routes from peer {#BGPPEER} - AS{#ASNUM}</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.3.1.1.0.{#SNMPINDEX}</snmp_oid>
<key>BgpPeerRoutes[{#BGPPEER}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<units>prefixes</units>
<application_prototypes>
<application_prototype>
<name>BGP Peer {#BGPPEER} - AS{#ASNUM}</name>
</application_prototype>
</application_prototypes>
</item_prototype>
<item_prototype>
<name>Operational status for peer {#BGPPEER} - AS{#ASNUM}</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.177.1.1.2.1.5.0.{#SNMPINDEX}</snmp_oid>
<key>BgpPeerState[{#BGPPEER}]</key>
<delay>2m</delay>
<history>30d</history>
<trends>90d</trends>
<application_prototypes>
<application_prototype>
<name>BGP Peer {#BGPPEER} - AS{#ASNUM}</name>
</application_prototype>
</application_prototypes>
<valuemap>
<name>BgpPeerState</name>
</valuemap>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&lt;&gt;6</expression>
<name>Peer {#BGPPEER} - AS{#ASNUM} is DOWN !!!</name>
<priority>AVERAGE</priority>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
</item_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Routes from Peer {#SNMPVALUE}</name>
<show_work_period>NO</show_work_period>
<show_triggers>NO</show_triggers>
<graph_items>
<graph_item>
<color>1A7C11</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>BgpPeerRoutes[{#BGPPEER}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
</discovery_rule>
</discovery_rules>
</template>
</templates>
<graphs>
<graph>
<name>FIB - IPv4</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<drawtype>FILLED_REGION</drawtype>
<color>00EE00</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>hwIPv4FibRoutes</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>FIB - IPv6</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<color>F63100</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>hwIPv6FibRoutes</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>RIB - IPv4</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<drawtype>FILLED_REGION</drawtype>
<color>EE0000</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>hwIPv4RibRoutes</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>RIB x FIB - IPv4</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<drawtype>BOLD_LINE</drawtype>
<color>00EE00</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>hwIPv4FibRoutes</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<drawtype>BOLD_LINE</drawtype>
<color>EE0000</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - BGP</host>
<key>hwIPv4RibRoutes</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
<value_maps>
<value_map>
<name>BgpPeerState</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>idle</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>connect</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>active</newvalue>
</mapping>
<mapping>
<value>4</value>
<newvalue>opensent</newvalue>
</mapping>
<mapping>
<value>5</value>
<newvalue>openconfirm</newvalue>
</mapping>
<mapping>
<value>6</value>
<newvalue>established</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2020-09-09T18:11:55Z</date>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<templates>
<template>
<template>Template Net Huawei VRP SNMPv2 - Extra Inventory</template>
<name>Template Net Huawei VRP SNMPv2 - Extra Inventory</name>
<description>Template for Huawei VRP - Extra items to Inventory &#13;
Works fine on NE routers series and partially on S67xx switch series</description>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
<items>
<item>
<name>Device ESN</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.188.1.1.0</snmp_oid>
<key>hwDeviceEsn</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<inventory_link>SERIALNO_A</inventory_link>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
</item>
<item>
<name>Patch Version</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.19.1.8.5.1.1.4.128.3</snmp_oid>
<key>hwPatchVersion</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<inventory_link>SOFTWARE_APP_A</inventory_link>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
</item>
<item>
<name>Product Name</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.6.3.11.4.0</snmp_oid>
<key>hwProductName</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<inventory_link>TYPE</inventory_link>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
</item>
<item>
<name>Software Version</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.19.1.8.5.1.1.6.128.3</snmp_oid>
<key>hwProductVersion</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<inventory_link>SOFTWARE</inventory_link>
<applications>
<application>
<name>Inventory</name>
</application>
</applications>
</item>
</items>
</template>
</templates>
</zabbix_export>
@@ -0,0 +1,495 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<date>2020-09-09T18:12:23Z</date>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<templates>
<template>
<template>Template Net Huawei VRP SNMPv2 - Optical Modules Info</template>
<name>Template Net Huawei VRP SNMPv2 - Optical Modules Info</name>
<description>Template for Huawei VRP Optical Modules Info</description>
<groups>
<group>
<name>Templates</name>
</group>
<group>
<name>Templates/Network devices</name>
</group>
</groups>
<discovery_rules>
<discovery_rule>
<name>Network Optical Modules Info</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#IFNAME},1.3.6.1.2.1.47.1.1.1.1.7,{#IFPRESENT},.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.14,{#IFCLASS},.1.3.6.1.2.1.47.1.1.1.1.5]</snmp_oid>
<key>net.if.optical.discovery</key>
<delay>1h</delay>
<filter>
<evaltype>AND</evaltype>
<conditions>
<condition>
<macro>{#IFCLASS}</macro>
<value>10</value>
<formulaid>A</formulaid>
</condition>
<condition>
<macro>{#IFPRESENT}</macro>
<value>-1</value>
<operator>NOT_MATCHES_REGEX</operator>
<formulaid>B</formulaid>
</condition>
</conditions>
</filter>
<description>Discovering interfaces from IF-MIB. Interfaces with down(2) Administrative Status are not discovered.</description>
<item_prototypes>
<item_prototype>
<name>{#IFNAME}: Rx Power</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.32.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalLaneRxPower[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Tx Power</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.33.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalLaneTxPower[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Rx High Threshold</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.14.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalRxHighThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Rx High Warning</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.21.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalRxHighWarnThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Rx Low Threshold</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.13.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalRxLowThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Rx Low Warning</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.20.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalRxLowWarnThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Temperatura</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.4.1.2011.5.25.31.1.1.3.1.5.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalTemperature[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<units>C</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{last()}&gt;{$OPT_MOD_TEMP_WARN} and {last()}&lt;{$OPT_MOD_TEMP_CRIT}</expression>
<name>Interface {#IFNAME}: Temperatura do Modulo Otico &gt; 85C</name>
<priority>WARNING</priority>
<description>Temperatura Atual: {ITEM.LASTVALUE1}.</description>
</trigger_prototype>
<trigger_prototype>
<expression>{last()}&gt;={$OPT_MOD_TEMP_CRIT}</expression>
<name>Interface {#IFNAME}: Temperatura do Modulo Otico &gt; 90C</name>
<priority>DISASTER</priority>
<description>Temperatura Atual: {ITEM.LASTVALUE1}.</description>
</trigger_prototype>
</trigger_prototypes>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Tx High Threshold</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.16.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalTxHighThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Tx High Warning</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.23.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalTxHighWarnThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Tx Low Threshold</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.15.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalTxLowThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
<item_prototype>
<name>{#IFNAME}: Tx Low Warning</name>
<type>SNMP_AGENT</type>
<snmp_oid>.1.3.6.1.4.1.2011.5.25.31.1.1.3.1.22.{#SNMPINDEX}</snmp_oid>
<key>hwEntityOpticalTxLowWarnThreshold[{#SNMPINDEX}]</key>
<delay>5m</delay>
<history>30d</history>
<trends>90d</trends>
<value_type>FLOAT</value_type>
<units>dBm</units>
<application_prototypes>
<application_prototype>
<name>Optical Module {#IFNAME}</name>
</application_prototype>
</application_prototypes>
<preprocessing>
<step>
<type>MULTIPLIER</type>
<params>0.01</params>
</step>
</preprocessing>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&gt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxHighWarnThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&lt;={Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxHighThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxHighWarnThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01)</expression>
<name>Interface {#IFNAME}: Rx Power Alto</name>
<priority>WARNING</priority>
<description>Rx Atual: {ITEM.LASTVALUE1}&#13;
Rx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&lt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxLowWarnThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&gt;={Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxLowThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxLowWarnThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01)and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&gt; -40)</expression>
<name>Interface {#IFNAME}: Rx Power Baixo</name>
<priority>WARNING</priority>
<description>Rx Atual: {ITEM.LASTVALUE1}&#13;
Rx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&gt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxHighThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxHighThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01)</expression>
<name>Interface {#IFNAME}: Rx Power Muito Alto</name>
<priority>DISASTER</priority>
<description>Rx Atual: {ITEM.LASTVALUE1}&#13;
Rx Referencia : {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&lt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxLowThreshold[{#SNMPINDEX}].last()}) and {Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalRxLowThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01 and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneRxPower[{#SNMPINDEX}].last()}&gt; -40)</expression>
<name>Interface {#IFNAME}: Rx Power Muito Baixo</name>
<priority>DISASTER</priority>
<description>Rx Atual: {ITEM.LASTVALUE1}&#13;
Rx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&gt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxHighWarnThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&gt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxHighThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxHighWarnThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01)</expression>
<name>Interface {#IFNAME}: Tx Power Alto</name>
<priority>WARNING</priority>
<description>Tx Atual: {ITEM.LASTVALUE1}&#13;
Tx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&lt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxLowWarnThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&lt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxLowThreshold[{#SNMPINDEX}].last()}) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxLowWarnThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01) and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&gt; -40)</expression>
<name>Interface {#IFNAME}: Tx Power Baixo</name>
<priority>WARNING</priority>
<description>Tx Atual: {ITEM.LASTVALUE1}&#13;
Tx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&gt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxHighThreshold[{#SNMPINDEX}].last()}) and {Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxHighThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01</expression>
<name>Interface {#IFNAME}: Tx Power Muito Alto</name>
<priority>DISASTER</priority>
<description>Tx Atual: {ITEM.LASTVALUE1}&#13;
Tx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
<trigger_prototype>
<expression>({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&lt;{Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxLowThreshold[{#SNMPINDEX}].last()}) and {Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalTxLowThreshold[{#SNMPINDEX}].last()} &lt;&gt; -0.01 and ({Template Net Huawei VRP SNMPv2 - Optical Modules Info:hwEntityOpticalLaneTxPower[{#SNMPINDEX}].last()}&gt; -40)</expression>
<name>Interface {#IFNAME}: Tx Power Muito Baixo</name>
<priority>DISASTER</priority>
<description>Tx Atual: {ITEM.LASTVALUE1}&#13;
Tx Referencia: {ITEM.LASTVALUE2}</description>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>{#IFNAME}: Rx Power</name>
<graph_items>
<graph_item>
<color>199C0D</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalRxHighThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<color>F63100</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalRxHighWarnThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<color>2774A4</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalRxLowThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<color>F7941D</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalRxLowWarnThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>4</sortorder>
<color>FC6EA3</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalLaneRxPower[{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>{#IFNAME}: Temperatura do Modulo Otico</name>
<graph_items>
<graph_item>
<color>1A7C11</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalTemperature[{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>{#IFNAME}: Tx Power</name>
<graph_items>
<graph_item>
<color>199C0D</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalTxHighThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<color>F63100</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalTxHighWarnThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<color>2774A4</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalTxLowThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<color>F7941D</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalTxLowWarnThreshold[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>4</sortorder>
<color>FC6EA3</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalLaneTxPower[{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>{#IFNAME}: Tx Power / Rx Power</name>
<graph_items>
<graph_item>
<color>199C0D</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalLaneRxPower[{#SNMPINDEX}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<color>F63100</color>
<item>
<host>Template Net Huawei VRP SNMPv2 - Optical Modules Info</host>
<key>hwEntityOpticalLaneTxPower[{#SNMPINDEX}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
</discovery_rule>
</discovery_rules>
<macros>
<macro>
<macro>{$OPT_MOD_TEMP_CRIT}</macro>
<value>90</value>
</macro>
<macro>
<macro>{$OPT_MOD_TEMP_WARN}</macro>
<value>85</value>
</macro>
</macros>
</template>
</templates>
</zabbix_export>
+5
View File
@@ -0,0 +1,5 @@
# Stazeni dat
curl -fLO https://download.zulip.com/server/zulip-server-6.1.tar.gz
# Instalace
/home/zulip/deployments/current/scripts/upgrade-zulip /home/ct/zulip-server-6.1.tar.gz
+31
View File
@@ -0,0 +1,31 @@
server {
listen 80;
listen [::]:80;
location / {
return 301 https://$host$request_uri;
}
include /etc/nginx/zulip-include/certbot;
}
include /etc/nginx/zulip-include/upstreams;
include /etc/zulip/nginx_sharding_map.conf;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/cert/CT.crt;
ssl_certificate_key /etc/nginx/cert/CT.key;
location /local-static {
alias /home/zulip/local-static;
}
include /etc/nginx/zulip-include/certbot;
include /etc/nginx/zulip-include/app;
}
+6
View File
@@ -0,0 +1,6 @@
# Informace o balicku
snap info termius-app
# Informace o aktualizacich
snap refresh --list
# Aktualizace SNAP balicku
snap refresh