← All dashboards

3cx Dashboard

3cx easy Monitoring Dashboard

Download & Installation go

Download von go

bash
wget https://go.dev/dl/go1.19.2.linux-amd64.tar.gz
tar xzvf go1.19.2.linux-amd64.tar.gz

Installation go:

bash
cd go
mv go /usr/local/
export PATH=$PATH:/usr/local/go/bin

Installation 3cx_exporter

Klonen git repo

bash
git clone https://github.com/digineo/3cx_exporter.git

Installation 3cx_exporter

bash
cd 3cx_exporter/
nano config.json
go build
mv 3cx_exporter /usr/bin/
mkdir -p  /etc/3cx_exporter/
cp fixtures/config.json /etc/3cx_exporter/

Systemd service für 3cx_exporter erstellen:

bash
nano /etc/systemd/system/3cx_exporter.service

[Unit]
Description=3CX Prometheus Exporter
After=network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/3cx_exporter -config /etc/3cx_exporter/config.json

Firewall regeln

3cx verwendet (nftables)[[nftables]]. Somit muss der Port erst freigegeben werden, sodass von außen auf diesen zugegriffen werden kann.

bash
tcp dport 9523 ip saddr  <YOUR-IP-RANGE>/24 accept;

Downlaod node_exporter

Download node_exporter

bash
wget https://github.com/prometheus/node_exporter/releases/download/v1.4.0/node_exporter-1.4.0.linux-amd64.tar.gz

Entpacken `node_exporter

bash
tar xzvf node_exporter-1.4.0.darwin-amd64

Installation

node_exporter in das Verzeichnis kopieren:

bash
mv node_exporter /usr/local/bin

User anlegen für node_exporter ohne login

bash
useradd --no-create-home --shell /bin/false node_exporter

Rechte kontext auf User node_exporter ändern

bash
chown node_exporter:node_exporter /usr/local/bin/node_exporter

Systemd Service erstellen

bash
nano /etc/systemd/system/node_exporter.service

[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter

[Install]
WantedBy=multi-user.target
bash
systemctl daemon-reload
systemctl start node_exporter

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 164