Skip to content

Simple check script for HTTP with logging, email and SMS notification.

Notifications You must be signed in to change notification settings

visualspace/checkservers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

checkservers

Simple check script for HTTP with logging, email and SMS notification (through Mollie), which checks the availability of an internet connection before checking.

Requirements

  • CURL
  • Mollie account (when SMS notification is used)

Getting Started

  1. Copy the files in etc to the system /etc/ directory.
  2. Copy the files in sbin to /usr/local/sbin/.
  3. Copy the config.example files to config in /etc/checkservers/ and /etc/sendsms/, and edit them.
  4. Add a cron job to execute the checkservers script at regular intervals (ie. 10 minutes).

Creating a MACOSX user

# Enter the interactive directory editor $ sudo dscl

# You can get an overview of the users using

/Local/Default > ls Group gid /Local/Default > ls Users uid ... etc ...

# Create an User and a group: ("/Local/Default >" is the shell prefix) # Read what the commands do before you copy/paste.

/Local/Default > create Users/_checkservers UserShell /usr/sbin/false /Local/Default > create Users/_checkservers UniqueID 300 /Local/Default > create Users/_checkservers PrimaryGroupID 300 /Local/Default > create Users/_checkservers NFSHomeDirectory /var/empty /Local/Default > create Groups/_checkservers /Local/Default > create Groups/_checkservers PrimaryGroupID 300 /Local/Default > append Groups/_checkservers GroupMembership _checkservers

About

Simple check script for HTTP with logging, email and SMS notification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%