Changeset 10481 in hybrid for branches/releng-9.0
- Timestamp:
- Apr 13, 2012, 6:54:31 PM (13 years ago)
- Location:
- branches/releng-9.0/nanobsd/files
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/etc/newsyslog.conf
r10437 r10481 42 42 # 43 43 /var/log/wlportal.log 664 3 100 * J /var/run/wlportal.pid 44 /var/log/snmpd.log 644 3 100 * J /var/run/snmpd.pid44 /var/log/snmpd.log 644 3 100 * J 45 45 /var/log/thttpd.log 644 3 100 * J 46 /var/log/pen_wrapper.log 644 3 100 * J47 46 /var/log/openvpn.log 644 3 100 * J 47 /var/log/tinyproxy.log 644 3 100 * J -
branches/releng-9.0/nanobsd/files/etc/rc.conf
r10448 r10481 31 31 nrpe2_enable="YES" 32 32 snmpd_enable="YES" 33 snmpd_flags="- a -LF w /var/log/snmpd.log"33 snmpd_flags="-LS w" 34 34 35 35 # HTTP(S) proxy server -
branches/releng-9.0/nanobsd/files/etc/syslog.conf
r10437 r10481 35 35 !openvpn 36 36 *.* /var/log/openvpn.log 37 !tinyproxy 38 *.* /var/log/tinyproxy.log 39 !snmpd 40 *.* /var/log/snmpd.log -
branches/releng-9.0/nanobsd/files/usr/local/etc/tinyproxy.conf
r10208 r10481 20 20 # 21 21 #Listen 192.168.0.1 22 Listen 0.0.0.022 Listen 172.31.255.1:3128 23 23 # 24 24 # The Bind directive allows you to bind the outgoing connections to a … … 65 65 # but not both. 66 66 # 67 Logfile "/var/log/tinyproxy.log"68 #Syslog On67 #Logfile "/var/log/tinyproxy.log" 68 Syslog On 69 69 70 70 # … … 226 226 # 227 227 ConnectPort 443 228 ConnectPort 563228 #ConnectPort 563 -
branches/releng-9.0/nanobsd/files/usr/local/sbin/check-inet-alive
r10469 r10481 9 9 # XXX: Do we need to manage state, like DHCP here? 10 10 # XXX: Check if page output is actually the output expected and not some weird captive portal somewhere. 11 # XXX: For effiently reasons this should be combined with the nagios check_inet check 11 12 # 12 13 # Rick van der Zwet <info@rickvanderzwet.nl> 13 14 # 14 15 # Check if we need to check inet at all16 . /etc/rc.subr17 load_rc_config "lvrouted"18 : ${lvouted_enable="NO"}19 : ${service_ileiden="NO"}20 : ${service_proxy="NO"}21 (( checkyesno service_ileiden || checkyesno service_proxy ) && checkyesno lvouted_enable ) || exit 022 23 24 15 25 16 TAG=`basename $0` … … 27 18 service lvrouted onestatus > /dev/null && LVROUTED_STATUS="running" || LVROUTED_STATUS="stopped" 28 19 20 check_http() { 21 fetch -o /dev/null -q $* 2>/dev/null 22 } 23 29 24 # Main I-net check 30 fetch -o /dev/null -qhttp://proxy-test.wirelessleiden.nl && INET_STATUS=up25 check_http http://proxy-test.wirelessleiden.nl && INET_STATUS=up 31 26 32 27 if [ $INET_STATUS = "down" ]; then 33 28 # Failback internet check 34 fetch -o /dev/nullhttp://ams-ix.net && INET_STATUS=up29 check_http http://ams-ix.net && INET_STATUS=up 35 30 fi 36 31 … … 40 35 service lvrouted stop | logger -t "$TAG" 41 36 fi 37 38 # Retrieve proxy status 39 export HTTP_PROXY=${HTTP_PROXY-:http://proxy.wleiden.net:3128} 40 PROXY_STATUS=down 41 check_http http://proxy-test.wirelessleiden.nl && PROXY_STATUS=down 42 43 if [ $INET_STATUS = "down" ]; then 44 # Failback internet check 45 check_http http://ams-ix.net && PROXY_STATUS=up 46 fi 47 48 echo -e "internet=$INET_STATUS\nproxy=$PROXY_STATUS" > /tmp/network.status
Note:
See TracChangeset
for help on using the changeset viewer.