mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
dhcp-status - seperate binary path configuration from code
This commit is contained in:
@ -4,6 +4,7 @@
|
|||||||
# edit your snmpd.conf add the below line and restart snmpd #
|
# edit your snmpd.conf add the below line and restart snmpd #
|
||||||
# extend dhcpstats /opt/dhcp-status.sh #
|
# extend dhcpstats /opt/dhcp-status.sh #
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
FILE_DHCP='/var/lib/dhcp/db/dhcpd.leases'
|
FILE_DHCP='/var/lib/dhcp/db/dhcpd.leases'
|
||||||
BIN_CAT='/usr/bin/cat'
|
BIN_CAT='/usr/bin/cat'
|
||||||
BIN_GREP='/usr/bin/grep'
|
BIN_GREP='/usr/bin/grep'
|
||||||
@ -11,6 +12,12 @@ BIN_TR='/usr/bin/tr'
|
|||||||
BIN_SED='/usr/bin/sed'
|
BIN_SED='/usr/bin/sed'
|
||||||
BIN_SORT='/usr/bin/sort'
|
BIN_SORT='/usr/bin/sort'
|
||||||
BIN_WC='/usr/bin/wc'
|
BIN_WC='/usr/bin/wc'
|
||||||
|
|
||||||
|
CONFIGFILE=dhcp-status.conf
|
||||||
|
if [ -f $CONFIGFILE ] ; then
|
||||||
|
. dhcp-status.conf
|
||||||
|
fi
|
||||||
|
|
||||||
DHCP_LEASES='^lease'
|
DHCP_LEASES='^lease'
|
||||||
DHCP_ACTIVE='^lease|binding state active'
|
DHCP_ACTIVE='^lease|binding state active'
|
||||||
DHCP_EXPIRED='^lease|binding state expired'
|
DHCP_EXPIRED='^lease|binding state expired'
|
||||||
|
Reference in New Issue
Block a user