make bash work on bsd and linux
This commit is contained in:
parent
eb875a08a1
commit
88a51a70f7
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# startup checks
|
# startup checks
|
||||||
|
|
||||||
if [ -z "$BASH" ]; then
|
if [ -z "$BASH" ]; then
|
||||||
|
|
|
@ -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
|
apt-get install snmpd sudo perl libconfig-general-perl libdata-dumper-simple-perl libsort-naturally-perl libexception-class-perl libencode-perl make
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Based on original E-Mail Icinga2 notification
|
# Based on original E-Mail Icinga2 notification
|
||||||
|
|
||||||
PROG="$(basename $0)"
|
PROG="$(basename $0)"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Based on original E-Mail Icinga2 notification
|
# Based on original E-Mail Icinga2 notification
|
||||||
|
|
||||||
PROG="$(basename $0)"
|
PROG="$(basename $0)"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SERVER_ADDRESS=""
|
SERVER_ADDRESS=""
|
||||||
SECRET=""
|
SECRET=""
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Define the usage message
|
# Define the usage message
|
||||||
usage() {
|
usage() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Nagios plugin to check iowait on Linux
|
# Nagios plugin to check iowait on Linux
|
||||||
|
|
||||||
if ! command -v iostat &>/dev/null; then
|
if ! command -v iostat &>/dev/null; then
|
||||||
|
@ -7,7 +7,7 @@ if ! command -v iostat &>/dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Nagios plugin to check iowait on Linux
|
# Nagios plugin to check iowait on Linux
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
WARNING_THRESHOLD=10
|
WARNING_THRESHOLD=10
|
||||||
CRITICAL_THRESHOLD=20
|
CRITICAL_THRESHOLD=20
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function print_help {
|
function print_help {
|
||||||
echo "Usage: $0 --server SERVER --warning WARNING --critical CRITICAL --rsa-key RSA_KEY --username USERNAME --password PASSWORD"
|
echo "Usage: $0 --server SERVER --warning WARNING --critical CRITICAL --rsa-key RSA_KEY --username USERNAME --password PASSWORD"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Get the uptime start time
|
# Get the uptime start time
|
||||||
UPTIME_OUTPUT=$(uptime -s)
|
UPTIME_OUTPUT=$(uptime -s)
|
||||||
|
|
|
@ -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
|
# 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue