update from main

This commit is contained in:
muppeth 2023-10-27 11:59:51 +02:00
parent 4a44b2898d
commit cf9371d64a
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 24 additions and 0 deletions

View File

@ -55,14 +55,37 @@ UserParameter=dovecot.processes,ps -A |grep imap |wc -l
# Lufi
UserParameter=lufi[*],cat /tmp/lufi_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'privatebin' %}
# PrivateBin
UserParameter=privatebin[*],cat /tmp/bin_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'etherpad' %}
# Etherpad
UserParameter=etherpad[*],cat /tmp/pad_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'forgejo' %}
# Forgejo
UserParameter=forgejo[*],cat /tmp/git_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'prosody' %}
# Prosody
UserParameter=prosody[*],cat /tmp/prosody_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'jitsi' %}
# Jitsi
UserParameter=jitsi[*],curl -s http://localhost:8888/stats | jq '$1'
{% endif %}
{% if item.name == 'mumble' %}
# Mumble
UserParameter=mumble[*],cat /tmp/mumble_stats | grep $1 | cut -d' ' -f2-
{% endif %}
{% if item.name == 'mariadb' %}
# Mariadb
UserParameter=mysql.ping[*], mysqladmin -h"$1" -P"$2" ping
@ -73,6 +96,7 @@ UserParameter=mysql.dbsize[*], mysql -h"$1" -P"$2" -sN -e "SELECT COALESCE(SUM(D
UserParameter=mysql.replication.discovery[*], mysql -h"$1" -P"$2" -sNX -e "show slave status"
UserParameter=mysql.slave_status[*], mysql -h"$1" -P"$2" -sNX -e "show slave status"
{% endif %}
{% if item.name == 'postgres' %}
# Postgres
UserParameter=pgsql.bgwriter[*], psql -qtAX postgresql://"$3":"$4"@"$1":"$2"/"$5" -f "/var/lib/zabbix/postgresql/pgsql.bgwriter.sql"