diff --git a/Other/check_curl old b/Other/check_curl old index 862e96b..e1739ae 100644 --- a/Other/check_curl old +++ b/Other/check_curl old @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # startup checks if [ -z "$BASH" ]; then diff --git a/Other/install-check_interface_table_v3t.sh b/Other/install-check_interface_table_v3t.sh index 36a8e94..69c425a 100755 --- a/Other/install-check_interface_table_v3t.sh +++ b/Other/install-check_interface_table_v3t.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash apt-get install snmpd sudo perl libconfig-general-perl libdata-dumper-simple-perl libsort-naturally-perl libexception-class-perl libencode-perl make diff --git a/Other/matrix-host-notification.sh b/Other/matrix-host-notification.sh index bdb1f45..90c1494 100644 --- a/Other/matrix-host-notification.sh +++ b/Other/matrix-host-notification.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Based on original E-Mail Icinga2 notification PROG="$(basename $0)" diff --git a/Other/matrix-service-notification.sh b/Other/matrix-service-notification.sh index 81d4416..8022c2b 100644 --- a/Other/matrix-service-notification.sh +++ b/Other/matrix-service-notification.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Based on original E-Mail Icinga2 notification PROG="$(basename $0)" diff --git a/check_coturn.sh b/check_coturn.sh index 5e7333f..0ae9270 100755 --- a/check_coturn.sh +++ b/check_coturn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SERVER_ADDRESS="" SECRET="" diff --git a/check_curl.sh b/check_curl.sh index b49e8e3..7bc81b0 100755 --- a/check_curl.sh +++ b/check_curl.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define the usage message usage() { diff --git a/check_iowait.sh b/check_iowait.sh index 51b0a50..c4e7164 100755 --- a/check_iowait.sh +++ b/check_iowait.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Nagios plugin to check iowait on Linux if ! command -v iostat &>/dev/null; then @@ -7,7 +7,7 @@ if ! command -v iostat &>/dev/null; then exit 1 fi -#!/bin/bash +#!/usr/bin/env bash # Nagios plugin to check iowait on Linux diff --git a/check_iowait_proc.sh b/check_iowait_proc.sh index 135ae8a..b62e6fc 100755 --- a/check_iowait_proc.sh +++ b/check_iowait_proc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash WARNING_THRESHOLD=10 CRITICAL_THRESHOLD=20 diff --git a/check_iperf3.sh b/check_iperf3.sh index e96df58..899d176 100755 --- a/check_iperf3.sh +++ b/check_iperf3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function print_help { echo "Usage: $0 --server SERVER --warning WARNING --critical CRITICAL --rsa-key RSA_KEY --username USERNAME --password PASSWORD" diff --git a/check_uptime.sh b/check_uptime.sh index dfbe45b..62382ee 100755 --- a/check_uptime.sh +++ b/check_uptime.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get the uptime start time UPTIME_OUTPUT=$(uptime -s) diff --git a/install.sh b/install.sh index dede748..58e33f5 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # apt-get update && apt-get install -y git && cd /opt && git -C /opt/icinga2-checks pull || git clone https://git.dp15.us/dpanzer/icinga2-checks.git /opt/icinga2-checks && bash /opt/icinga2-checks/install.sh