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 | |
WWW="https://google.com" | |
DELAY=30 | |
FAILLIMIT=2 | |
ITERATION=5 | |
www_test() { | |
RES=`curl -s -L -X HEAD -4 -o /dev/null --connect-timeout 30 -m 60 $WWW` |
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 | |
# | |
# Nagios NRPE installation script for FreeNAS | |
# See: https://haphazard.io/blog/install-nagios-nrpe-on-freenas/#install | |
# | |
# Copyright 2017 Michael Sutherland | |
# mike@haphazard.io | |
# | |
# Check if nrpe service is already installed/running |