← All dashboards

3cx Dashboard

3cx easy Monitoring Dashboard

Download & Installation go

Download von go

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

Installation go:

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

Installation 3cx_exporter

Klonen git repo

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

Installation 3cx_exporter

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:

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.

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

Downlaod node_exporter

Download node_exporter

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

Entpacken `node_exporter

tar xzvf node_exporter-1.4.0.darwin-amd64

Installation

node_exporter in das Verzeichnis kopieren:

mv node_exporter /usr/local/bin

User anlegen für node_exporter ohne login

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

Rechte kontext auf User node_exporter ändern

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

Systemd Service erstellen

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

systemctl daemon-reload
systemctl start node_exporter

Dashboard revisions

RevisionDecscriptionCreated

Reviews

Login or Sign up to write a review

Reviews from the community
Sign up for Grafana Cloud
Tooltip hover

Get this dashboard

Data source:

Dependencies:

Import the dashboard template:

or

Download JSON

Docs: Importing dashboards

Downloads: 2