make bash work on bsd and linux

This commit is contained in:
Cyberes 2023-06-07 14:31:09 -06:00
parent eb875a08a1
commit 88a51a70f7
Signed by: cyberes
GPG Key ID: 6B4A33836A9500FE
11 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# startup checks
if [ -z "$BASH" ]; then

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Based on original E-Mail Icinga2 notification
PROG="$(basename $0)"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Based on original E-Mail Icinga2 notification
PROG="$(basename $0)"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
SERVER_ADDRESS=""
SECRET=""

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Define the usage message
usage() {

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
WARNING_THRESHOLD=10
CRITICAL_THRESHOLD=20

View File

@ -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"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Get the uptime start time
UPTIME_OUTPUT=$(uptime -s)

View File

@ -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