mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
fixing configfile call (#235)
This commit is contained in:
committed by
Tony Murray
parent
b525250942
commit
13ce5d3577
@ -4,7 +4,6 @@
|
|||||||
# 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'
|
||||||
@ -15,7 +14,7 @@ BIN_WC='/usr/bin/wc'
|
|||||||
|
|
||||||
CONFIGFILE=/etc/snmp/dhcp-status.conf
|
CONFIGFILE=/etc/snmp/dhcp-status.conf
|
||||||
if [ -f $CONFIGFILE ] ; then
|
if [ -f $CONFIGFILE ] ; then
|
||||||
. dhcp-status.conf
|
. $CONFIGFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DHCP_LEASES='^lease'
|
DHCP_LEASES='^lease'
|
||||||
|
Reference in New Issue
Block a user