mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
unbound_munin_: use Munin's helper script to detect state file location
This commit is contained in:
parent
a190fc436f
commit
e1caa764b8
1 changed files with 2 additions and 4 deletions
|
|
@ -14,7 +14,6 @@
|
||||||
# Run the command unbound-control-setup to generate the key files.
|
# Run the command unbound-control-setup to generate the key files.
|
||||||
#
|
#
|
||||||
# Environment variables for this script
|
# Environment variables for this script
|
||||||
# statefile - where to put temporary statefile.
|
|
||||||
# unbound_conf - where the unbound.conf file is located.
|
# unbound_conf - where the unbound.conf file is located.
|
||||||
# unbound_control - where to find unbound-control executable.
|
# unbound_control - where to find unbound-control executable.
|
||||||
# spoof_warn - what level to warn about spoofing
|
# spoof_warn - what level to warn about spoofing
|
||||||
|
|
@ -24,7 +23,6 @@
|
||||||
# with:
|
# with:
|
||||||
# [unbound*]
|
# [unbound*]
|
||||||
# user root
|
# user root
|
||||||
# env.statefile /usr/local/var/munin/plugin-state/unbound-state
|
|
||||||
# env.unbound_conf /usr/local/etc/unbound/unbound.conf
|
# env.unbound_conf /usr/local/etc/unbound/unbound.conf
|
||||||
# env.unbound_control /usr/local/sbin/unbound-control
|
# env.unbound_control /usr/local/sbin/unbound-control
|
||||||
# env.spoof_warn 1000
|
# env.spoof_warn 1000
|
||||||
|
|
@ -66,7 +64,6 @@ System with unbound daemon.
|
||||||
|
|
||||||
[unbound*]
|
[unbound*]
|
||||||
user root
|
user root
|
||||||
env.statefile /usr/local/var/munin/plugin-state/unbound-state
|
|
||||||
env.unbound_conf /usr/local/etc/unbound/unbound.conf
|
env.unbound_conf /usr/local/etc/unbound/unbound.conf
|
||||||
env.unbound_control /usr/local/sbin/unbound-control
|
env.unbound_control /usr/local/sbin/unbound-control
|
||||||
env.spoof_warn 1000
|
env.spoof_warn 1000
|
||||||
|
|
@ -98,7 +95,8 @@ BSD
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
state=${statefile:-/usr/local/var/munin/plugin-state/unbound-state}
|
. ${MUNIN_LIBDIR}/plugins/plugin.sh
|
||||||
|
state="${MUNIN_PLUGSTATE}/unbound.state"
|
||||||
conf=${unbound_conf:-/usr/local/etc/unbound/unbound.conf}
|
conf=${unbound_conf:-/usr/local/etc/unbound/unbound.conf}
|
||||||
ctrl=${unbound_control:-/usr/local/sbin/unbound-control}
|
ctrl=${unbound_control:-/usr/local/sbin/unbound-control}
|
||||||
warn=${spoof_warn:-1000}
|
warn=${spoof_warn:-1000}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue