Skip to content

mrplow87/gatemon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

apt-get install monitoring-plugins-basic monitoring-plugins-standard \
                nagios-plugins-contrib ndisc6 dnsutils \
                git build-essential curl
git clone https://github.com/freifunkh/gatemon /usr/lib/gatemon
cd /usr/lib/gatemon/
make check_dhcp
cp cron /etc/cron.d/gatemon_check_all

Make sure NTP is enabled! The time drift must be below 60s. Otherwise your transmitted results will be rejected.

Edit the configuration /usr/lib/gatemon/config.sh:

#!/bin/sh

# general config
device=bat0                          # interface which to use
fetch_host='meineip.moritzrudert.de' # http and dns test host - should be reachable via v4 and v6
name="hans"                          # human readable name for the test host
provider="HETZNER"                   # provider information


# this data is needed to push to the master
token=Goola4Ma
api_url=https://status.ffh.zone/put.php


# this function will be called to test all hosts

process() {
        for i in $(seq 9); do
                # sn06 is not existing yet :)
                # sn03 is just playground
                if [ $i -eq 6 ] || [ $i -eq 3 ]; then
                        continue;
                fi

                # process host $name $ip6 $ip4 test1 test2 ...
                process_host sn0${i}.s.ffh.zone fdca:ffee:8::${i}001 10.2.${i}0.1 \
	       		addresses dns uplink
        done
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.6%
  • Shell 20.1%
  • Makefile 6.3%