監看dhcp server IP 發放狀況
系統需求:dhcp server, apache, cgi運行環境
1 下載
請將檔案下載至 /root 目錄
2 建目錄&解壓縮
cd /usr/local/
tar zxvf /root/dhcpstatus_0.60.tar.gz
mv dhcpstatus_0.60 dhcpstatus
cd dhcpstatus
tar xvf libraries.tar
3 設定
vim dhcpstatus.ini
改正確路徑
# location of the .conf file.
conf_file=/etc/dhcp3/dhcpd.conf
# location of the .leases file.
leases_file=/var/lib/dhcp3/dhcpd.leases
4 安裝
安裝方法很簡單,只需把 dhcpstatus.cgi copy 到可執行 cgi 的目錄下即可
cp /usr/local/dhcpstatus/scripts/dhcpstatus.cgi /usr/lib/cgi-bin/
5 網址
http://IP/cgi-bin/dhcpstatus.cgi