This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script monitors all mounted filesystems and detects abnormal spikes | |
# in disk usage based on historical percentage growth. It calculates the | |
# median and standard deviation of usage changes over time and reports a | |
# warning or critical alert if the latest change deviates significantly | |
# (Z-score based) from typical behavior. | |
# | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# OpenSearch endpoint | |
HOST="https://localhost:9200" | |
username=admin | |
read -s -p "Password: " password | |
echo | |
# Опционально: если нужна basic auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ENDPOINTS=( | |
"https://wi-node-1:9200" | |
"https://wi-node-2:9200" | |
"https://wi-node-3:9200" | |
) | |
INTERVAL=1 | |
MIN_PANEL_HEIGHT=10 | |
LOG_FILE="/tmp/opensearch_cpu_log.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# put this file into /etc/logwatch/conf/ | |
# | |
Service = "proxmox" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# Script: check_es_system.sh # | |
# Author: Claudio Kuenzler www.claudiokuenzler.com # | |
# Purpose: Monitor ElasticSearch Store (Disk) Usage # | |
# Docs: www.claudiokuenzler.com/monitoring-plugins/check_es_system.php # | |
# License: GPLv2 # | |
# GNU General Public Licence (GPL) http://www.gnu.org/ # | |
# This program is free software; you can redistribute it and/or # | |
# modify it under the terms of the GNU General Public License # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format: | | |
$x $x $x $remote_addr:$x [$time_local] $x $x $x $x $x $x "$request_method $request_uri $request_protocol" $status {$x} $x $x $x $x $x $x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cfgmaker.orig 2014-06-10 01:31:00.000000000 +0000 | |
+++ cfgmaker 2025-04-25 11:02:32.424611033 +0000 | |
@@ -16,7 +16,8 @@ | |
# snpo - SNMP Polling | |
# snpd - SNMP Detail | |
#@main::DEBUG=qw(base); | |
-@main::DEBUG=qw(base snpo snpd); | |
+#@main::DEBUG=qw(base snpo snpd); | |
+@main::DEBUG=qw(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command[check_ovpn_users]=read -r users max <<< "$(sudo sacli LicUsage | jq -r '.[]' | paste -d ' ' - -)"; [ $(($max-$users)) -lt 5 ] && echo "CRITICAL: OpenVPN users CRITICAL ($users/$max) | 'ovpn_users'=$users;;$max" || echo "OK: OpenVPN users OK ($users/$max) | 'ovpn_users'=$users;;$max" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[trunk-checker-dst] | |
exten => _X.,1,ResetCDR | |
same => n,NoCDR | |
same => n,Set(DB(trunk_checker/${EXTEN})=${EPOCH}) | |
same => n(end),Busy(2) | |
[from-trunk-pre] | |
exten => _X.,1,Set(DIALED_NUM=${EXTEN}) | |
same => n,Goto(cont,1) | |
exten => _+X.,1,Set(DIALED_NUM=${EXTEN}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source http://lzone.de/blog/Nagios+Check+for+Systemd+Failed+Units | |
# Nagios return codes | |
STATE_OK=0 | |
STATE_WARNING=1 | |
STATE_CRITICAL=2 | |
STATE_UNKNOWN=3 | |
if [ -f /bin/systemctl ]; then |
NewerOlder