initial commit; version 22.5.12042
This commit is contained in:
27
scripts/agent-local/unbound
Executable file
27
scripts/agent-local/unbound
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Unbound statistics
|
||||
# (c) 2012, Tom Laermans for Observium (www.observium.org)
|
||||
|
||||
# Required server configuration:
|
||||
#
|
||||
# statistics-cumulative: yes
|
||||
# extended-statistics: yes
|
||||
|
||||
|
||||
|
||||
if [[ -x '/usr/sbin/unbound-control' ]];
|
||||
then
|
||||
unboundctl='/usr/sbin/unbound-control'
|
||||
elif [[ -x '/usr/local/sbin/unbound-control' ]];
|
||||
then
|
||||
unboundctl='/usr/local/sbin/unbound-control'
|
||||
else
|
||||
unboundctl=`which unbound-control`
|
||||
fi
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo '<<<app-unbound>>>'
|
||||
$unboundctl stats
|
||||
fi
|
Reference in New Issue
Block a user