add nagios-db
This commit is contained in:
parent
7167918927
commit
be2e39b3cf
|
@ -1,6 +1,6 @@
|
|||
$TTL 3600
|
||||
@ IN SOA in.thelinuxpro.net. hostmaster.in.thelinuxpro.net. (
|
||||
24121801 ; serial
|
||||
24122201 ; serial
|
||||
21600 ; refresh after 6 hours
|
||||
3600 ; retry after 1 hour
|
||||
604800 ; expire after 1 week
|
||||
|
@ -24,6 +24,7 @@ $TTL 3600
|
|||
34.23 IN PTR pihole-exporter.in.thelinuxpro.net.
|
||||
35.23 IN PTR blackbox-exporter.in.thelinuxpro.net.
|
||||
36.23 IN PTR nagios.in.thelinuxpro.net.
|
||||
37.23 IN PTR nagios-db.in.thelinuxpro.net.
|
||||
41.23 IN PTR influxdb.in.thelinuxpro.net.
|
||||
42.23 IN PTR telegraf.in.thelinuxpro.net.
|
||||
51.23 IN PTR syslog.in.thelinuxpro.net.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
$TTL 2m
|
||||
@ IN SOA in.thelinuxpro.net. root.in.thelinuxpro.net. (
|
||||
24121901 ; serial, todays date + todays serial #
|
||||
24122201 ; serial, todays date + todays serial #
|
||||
1h ; refresh, seconds
|
||||
15m ; retry, seconds
|
||||
10D ; expire, seconds
|
||||
|
@ -33,6 +33,7 @@ unpoller IN A 10.99.23.33
|
|||
pihole-exporter IN A 10.99.23.34
|
||||
blackbox-exporter IN A 10.99.23.35
|
||||
nagios IN A 10.99.23.36
|
||||
nagios-db IN A 10.99.23.37
|
||||
influxdb IN A 10.99.23.41
|
||||
telegraf IN A 10.99.23.42
|
||||
syslog IN A 10.99.23.51
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
export domain="in.thelinuxpro.net"
|
||||
export ip="127.0.0.1"
|
||||
export serial="24121901"
|
||||
export serial="24122201"
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load 'local-setup'
|
||||
_local_setup
|
||||
|
||||
load 'helper'
|
||||
|
||||
|
||||
@test "Test A Record: ${domain}" {
|
||||
run dig -t A ${domain} +noall +answer
|
||||
assert_output --partial "${ip}"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export domain="nagios-db.in.thelinuxpro.net"
|
||||
export ip="10.99.23.37"
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
_local_setup() {
|
||||
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)"
|
||||
TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)"
|
||||
bats_load_library bats-support
|
||||
bats_load_library bats-assert
|
||||
source "$DIR/helper.bash"
|
||||
}
|
||||
|
Loading…
Reference in New Issue