This file contains 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 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 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-04-04 09:10:43.000000000 +0400 | |
+++ cfgmaker 2017-07-17 13:57:26.000000000 +0300 | |
@@ -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 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 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 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 |
This file contains 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/sh | |
run(){ | |
name="$1" | |
shift | |
( | |
set -x | |
# defailt parameters | |
fio -name="$name" -filename=$disk -output-format=json -ioengine=libaio -direct=1 -randrepeat=0 "$@" > results/$disk_dashed-$name.json | |
) |
This file contains 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
--- mantisbt-1.3.20/admin/move_attachments.php.orig 2019-09-26 19:42:19.000000000 +0300 | |
+++ mantisbt-1.3.20/admin/move_attachments.php 2020-09-08 15:43:06.000000000 +0300 | |
@@ -175,8 +175,13 @@ | |
# Process projects list | |
foreach( $p_projects as $t_project ) { | |
+ | |
+ $start = 0; | |
+ while ($start <= 1500) { | |
+ error_log($start); |
This file contains 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
#!/usr/bin/env python | |
# | |
# The script requires that the OCI CLI be installed | |
# | |
# | |
# Edit these values to configure the script | |
# | |
oci_cli_profile_name = 'DEFAULT' |
This file contains 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
@echo off | |
rem -- put this script into the task scheduler and redirect output to a log file: | |
rem -- c:\utils\ad_backup.bat > c:\utils\ad_backup.log 2>&1 | |
rem -- path to remote storage | |
set SHARE=\\filer-1\sysstates | |
rem -- what to backup | |
set PATH2BACKUP=c:\utils C:\Windows\System32\dns\backup |
NewerOlder