Changeset 9e573a2
- Timestamp:
- 01/19/22 12:56:25 (3 years ago)
- Branches:
- master
- Children:
- ffaaf60
- Parents:
- 892871d
- Location:
- npl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/overig/mozilla_nss/mozilla-nss.SlackBuild.orig
r892871d r9e573a2 27 27 PKGNAM=mozilla-nss 28 28 SRCNAM=nss 29 VERSION=${VERSION:-3. 60}30 NSPR=${NSPR:-4.2 9}29 VERSION=${VERSION:-3.50} 30 NSPR=${NSPR:-4.25} 31 31 BUILD=${BUILD:-1} 32 32 -
npl/syn3/webint/src/log/syslog.php
r892871d r9e573a2 47 47 { 48 48 //if it doens't match its probably a 'repeat message' 49 if (!preg_match("/(\w*) *(\w*) (..:..:..) ( \w*) ([^ ]*): (\w*) (.*)/",$line,$matches))50 preg_match("/(\w*) *(\w*) (..:..:..) ( \w*) (\w*) (.*)/",$line,$matches);49 if (!preg_match("/(\w*) *(\w*) (..:..:..) ([-\w]*) ([^ ]*): (\w*) (.*)/",$line,$matches)) 50 preg_match("/(\w*) *(\w*) (..:..:..) ([-\w]*) (\w*) (.*)/",$line,$matches); 51 51 52 52 list($bagger,$month,$day,$time,$host, $user,$prio, $message)=$matches; -
npl/syn3/webint/src/network/check.php
r892871d r9e573a2 69 69 70 70 //check gateway ping routing 71 $testip=" 77.74.48.182"; //datux webserver71 $testip="8.8.8.8"; //google dns 72 72 PrintCheckStart(_CheckingGatewayPing($testip)); 73 if (!Cmd(" ping -c 3 -n -w 3$testip"))73 if (!Cmd("fping $testip")) 74 74 PrintCheckResult("ping","OK"); 75 75 else 76 76 PrintCheckResult("ping","ERROR"); 77 77 78 //check gateway ping routing 79 $testip="1.1.1.1"; //cloudflare 80 PrintCheckStart(_CheckingGatewayPing($testip)); 81 if (!Cmd("fping $testip")) 82 PrintCheckResult("ping","OK"); 83 else 84 PrintCheckResult("ping","ERROR"); 78 85 79 //check gateway http update server routing 80 PrintCheckStart(_CheckingGatewayHttpUpdateserver($testip)); 81 if (!Cmd("lynx -dump -connect_timeout 10 $testip | grep DatuX")) 82 PrintCheckResult("http","OK"); 83 else 84 PrintCheckResult("http","ERROR"); 85 86 86 87 87 //check dns servers 88 88 $dnss=getDNS(); … … 96 96 } 97 97 98 //check http via google 99 PrintCheckStart(_CheckingGatewayHttpUpdateserver("www.google.com")); 100 if (!Cmd("lynx -dump -connect_timeout 10 www.google.com")) 101 PrintCheckResult("http","OK"); 102 else 103 PrintCheckResult("http","ERROR"); 104 98 105 99 106 //check uitgaande mail connectie naar 25 100 107 //veel providers zetten dit dicht. 101 108 102 $testmail=" 77.74.48.185";109 $testmail="smtp.google.com"; 103 110 PrintCheckStart(_CheckingGatewayMail($testmail)); 104 111 if (!Cmd("nc $testmail 25 -w 1 -q 1 -z")) … … 112 119 PrintCheckStart(_CheckingIpsecPort("500")); 113 120 114 $port500=SafeExec("grep ' 77.74.48.182:.*not enough room' /var/log/secure |tail -1");115 $port4500=SafeExec("grep ' 77.74.48.182:.*too small packet' /var/log/secure |tail -1");121 $port500=SafeExec("grep ':.*not enough room' /var/log/secure |tail -1"); 122 $port4500=SafeExec("grep ':.*too small packet' /var/log/secure |tail -1"); 116 123 117 124 rpc("TestIpsec"); 118 125 119 $port500tested=SafeExec("grep ' 77.74.48.182:.*not enough room' /var/log/secure |tail -1");120 $port4500tested=SafeExec("grep ' 77.74.48.182:.*too small packet' /var/log/secure |tail -1");126 $port500tested=SafeExec("grep ':.*not enough room' /var/log/secure |tail -1"); 127 $port4500tested=SafeExec("grep ':.*too small packet' /var/log/secure |tail -1"); 121 128 122 129 if ($port500[0]!=$port500tested[0])
Note: See TracChangeset
for help on using the changeset viewer.