mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
alarming: add additional performance data
Options -p or --perfdata (in alarming mode) now enable the output of additional performance data, i.e. used, touched and backup addresses per subnet. Signed-off-by: Manuel Hachtkemper <hacman@math.uni-bonn.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
c305e2f82c
commit
32e2d399a0
12 changed files with 103 additions and 4 deletions
16
tests/complete-perfdata
Executable file
16
tests/complete-perfdata
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Minimal regression test suite.
|
||||
|
||||
IAM=$(basename $0)
|
||||
TESTDATA=${IAM%-*}
|
||||
|
||||
if [ ! -d tests/outputs ]; then
|
||||
mkdir tests/outputs
|
||||
fi
|
||||
|
||||
dhcpd-pools -c $top_srcdir/tests/confs/$TESTDATA \
|
||||
-l $top_srcdir/tests/leases/$TESTDATA -o tests/outputs/$IAM \
|
||||
--warning 80 --perfdata
|
||||
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
|
||||
exit $?
|
||||
Loading…
Add table
Add a link
Reference in a new issue