Сообщения

Сообщения за 2023

LibreNMS tips and tricks

Изображение
Weathermap: file not found ./weathermap.php --config configs/config.conf \ --output output/mymap.png --htmloutput output/config.html \ --base-href /opt/librenms/html/plugins/Weathermap/ Also patch is required maybe https://github.com/librenms-plugins/Weathermap/pull/85 cd /opt/librenms/html/plugins/Weathermap/ wget https://patch-diff.githubusercontent.com/raw/librenms-plugins/Weathermap/pull/85.diff cat 85.diff | git apply -R git pull LibreNMS keep alert while syslog.msg was far away Use syslog.msg >= macros.past_5m and backquotes! Backquotes is a must. Without it nothing will work!   Get ChatID for telegram bot https://api.telegram.org/botTOKEN/getupdates bot word is required before actual token! Get your token from botfather. Got daily.sh to work via proxy git config --global http.proxy http://a.b.c.d:3128 from user librenms from /opt/librenms dir.

Apache Superset. Unable to login with default login password Docker.

In two words: it expects that you login only from localhost. If not it will block access. To work-around have a variable TALISMAN_ENABLED=False in the superset/docker/pythonpath_dev/superset_config_docker.py file. # выключаем историю команд unset HISTFILE # прокси export HTTP_PROXY=http://PROXY:PORT export HTTPS_PROXY=http://PROXY:PORT # обновление и установка пакетов dnf update dnf install dnf-utils device-mapper-persistent-data lvm2 dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf install -y docker-ce docker-ce-cli containerd.io --allowerasing # docker-compose curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose # прокси для docker /etc/systemd/system/docker.service.d/proxy.conf [Service] Environment="HTTP_PROXY=http://PROXY:PORT" Environment="HTTPS_PROXY=http: