Hallo,

mein problem ist folgendes:

alle 14 tage steigt die load meines routers (athlon 2000+ 256MB ram) auf über 
1.5 hier ein auszug aus top

---
11:28:49 up 18 days, 14:53,  1 user,  load average: 1.45, 1.47, 1.45
31 processes: 26 sleeping, 2 running, 3 zombie, 0 stopped
CPU states:   5.2% user,   1.6% system,   0.0% nice,  93.2% idle
Mem:    192188K total,   110176K used,    82012K free,    45496K buffers
Swap:   248968K total,        0K used,   248968K free,    28008K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  173 root      18   0   936  932   772 R    64.6  0.4  1166m pppd
  160 root      12   0   596  596   488 S    35.8  0.3 626:37 syslogd
    1 root       8   0   484  484   424 S     0.0  0.2   0:05 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:00 keventd
    3 root      19  19     0    0     0 SWN   0.0  0.0   0:03 ksoftirqd_CPU0
    4 root       9   0     0    0     0 SW    0.0  0.0   0:00 kswapd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
    7 root       9   0     0    0     0 SW    0.0  0.0   0:00 kjournald
  163 root       9   0  1084 1084   408 S     0.0  0.5   0:00 klogd
  182 root       9   0   692  692   556 S     0.0  0.3   0:00 dhcpd-2.2.x
  212 root       9   0  1208 1208  1072 S     0.0  0.6   0:00 sshd
  215 root       9   0  3628 3628  1324 S     0.0  1.8   4:08 ddclient
  216 daemon     9   0   580  580   504 S     0.0  0.3   0:00 atd
  221 root       8   0   684  684   600 S     0.0  0.3   0:00 cron
  224 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
  225 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
  226 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
  227 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
  228 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
  229 root       9   0   468  468   408 S     0.0  0.2   0:00 getty
28190 root       9   0     0    0     0 Z     0.0  0.0   0:00 ip-down 
<defunct>
28316 root       9   0   780  780   680 S     0.0  0.4   0:00 cron
28317 root       8   0     0    0     0 Z     0.0  0.0   0:00 checkadsl.sh 
<defunct>
28327 root       9   0     0    0     0 Z     0.0  0.0   0:00 sendmail 
<defunct>
28340 root       9   0   524  524   456 S     0.0  0.2   1:01 pptp
28342 root       9   0   552  552   492 S     0.0  0.2   0:00 pptp
28344 root       8   0   920  916   756 S     0.0  0.4   0:00 pppd
32764 root       9   0  1792 1792  1524 S     0.0  0.9   0:00 sshd
32766 root       9   0  1240 1240  1008 S     0.0  0.6   0:00 bash
  346 root       9   0   920  920   740 R     0.0  0.4   0:00 top
--
ps aux
---

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.2  1272  484 ?        S    Jun09   0:05 init [2]
root         2  0.0  0.0     0    0 ?        SW   Jun09   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  Jun09   0:03 
[ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   Jun09   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   Jun09   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   Jun09   0:00 [kupdated]
root         7  0.0  0.0     0    0 ?        SW   Jun09   0:00 [kjournald]
root       160  2.3  0.3  1344  596 ?        S    Jun09 626:50 /sbin/syslogd
root       163  0.0  0.5  1872 1084 ?        S    Jun09   0:00 /sbin/klogd
root       173  4.3  0.4  2008  932 ?        R    Jun09 
1166:48 /usr/sbin/pppd /dev/pts/0 38400 persist maxfail 0
root       182  0.0  0.3  1480  692 ?        S    Jun09   
0:00 /usr/sbin/dhcpd-2.2.x -q eth0
root       212  0.0  0.6  2784 1208 ?        S    Jun09   0:00 /usr/sbin/sshd
root       215  0.0  1.8  4620 3628 ?        S    Jun09   4:08 /usr/bin/perl 
-w /usr/sbin/ddclient -daemon 60m -syslog
daemon     216  0.0  0.3  1384  580 ?        S    Jun09   0:00 /usr/sbin/atd
root       221  0.0  0.3  1652  684 ?        S    Jun09   0:00 /usr/sbin/cron
root       224  0.0  0.2  1252  468 tty1     S    Jun09   0:00 /sbin/getty 
38400 tty1
root       225  0.0  0.2  1252  468 tty2     S    Jun09   0:00 /sbin/getty 
38400 tty2
root       226  0.0  0.2  1252  468 tty3     S    Jun09   0:00 /sbin/getty 
38400 tty3
root       227  0.0  0.2  1252  468 tty4     S    Jun09   0:00 /sbin/getty 
38400 tty4
root       228  0.0  0.2  1252  468 tty5     S    Jun09   0:00 /sbin/getty 
38400 tty5
root       229  0.0  0.2  1252  468 tty6     S    Jun09   0:00 /sbin/getty 
38400 tty6
root     28190  0.0  0.0     0    0 ?        Z    Jun27   0:00 [ip-down 
<defunct>]
root     28316  0.0  0.4  1764  780 ?        S    Jun27   0:00 /USR/SBIN/CRON
root     28317  0.0  0.0     0    0 ?        Z    Jun27   0:00 [checkadsl.sh 
<defunct>]
root     28327  0.0  0.0     0    0 ?        Z    Jun27   0:00 [sendmail 
<defunct>]
root     28340  0.0  0.2  1316  524 ?        S    Jun27   1:01 /usr/sbin/pptp
root     28342  0.0  0.2  1316  552 ?        S    Jun27   0:00 /usr/sbin/pptp
root     28344  0.0  0.4  2008  916 pts/1    S    Jun27   
0:00 /usr/sbin/pppd /dev/pts/1 38400 persist maxfail 0
root     32764  0.0  0.9  5724 1792 ?        S    11:22   0:00 /usr/sbin/sshd
root     32766  0.0  0.6  2220 1244 pts/2    S    11:23   0:00 -bash
root       353  0.0  0.7  3496 1512 pts/2    R    11:29   0:00 ps aux

---

der schuldige scheint pppd zu sein.
die verbindung zum modem läuft über pptp-linux.

hier ist wiedereinwahl script das ich benutze checkadsl.sh
---
#!/bin/bash

# checkadsl Alex Handle 2004
LOGFILE="/var/log/adsl.log"
NS1STATE="up"
NS2STATE="up"
NS1IP=$(grep nameserver /etc/resolv.conf | head -n 1 | cut -d " " -f2)
NS2IP=$(grep nameserver /etc/resolv.conf | tail -n 1| cut -d " " -f2)

ping -c 1 $NS1IP > /dev/null || NS1STATE="down"
ping -c 1 $NS2IP > /dev/null || NS2STATE="down"

if [ $NS1STATE = "down" ] && [ $NS2STATE = "down" ]
then
        echo $(date +'%F %r') "uptime: "  $(uptime | cut -d: -f5) >> $LOGFILE
        echo $(date +'%F %r') "/etc/init.d/adsl restart" >> $LOGFILE
        /etc/init.d/adsl restart
else
        echo $(date +'%F %r') "uptime: "  $(uptime | cut -d: -f5) >> $LOGFILE
fi
---

ich hab mir ein kleines monitoring script geschrieben das die uptime 
protokolliert.
---
2004-06-27 05:15:01 AM uptime:  0.00, 0.00, 0.00
2004-06-27 06:15:21 AM uptime:  1.50, 1.51, 1.36
2004-06-27 06:15:21 AM /etc/init.d/adsl restart
2004-06-27 07:15:01 AM uptime:  1.61, 1.49, 1.48
---

zu der zeit wird in die daemon.log folgendes geschrieben

---
Jun 27 05:34:35 router pptp[170]: log[pptp_read_some:pptp_ctrl.c:405]: read 
error: Connection reset by peer
Jun 27 05:34:35 router pptp[170]: log[call_callback:pptp_callmgr.c:88]: 
Closing connection
Jun 27 05:35:26 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:36:26 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:37:26 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:38:26 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:39:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:40:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:41:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:42:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:43:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:44:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:45:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:46:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:47:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:48:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:49:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:50:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:51:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:52:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:53:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:54:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:55:27 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:56:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:57:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:58:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 05:59:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:00:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:01:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:02:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:03:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:04:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:05:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:06:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:07:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:08:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:09:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:10:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:11:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:12:28 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:13:29 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:14:29 router modprobe: modprobe: Can't locate module ppp0
Jun 27 06:15:21 router pptp[28342]: 
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:580]: Client connection 
established.
Jun 27 06:15:22 router pptp[28342]: 
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:708]: Outgoing call established 
(call ID 0, peer's call ID 0).
---

und in der message
---
Jun 27 05:34:35 router pppd[173]: Hangup (SIGHUP)
Jun 27 05:34:35 router pppd[173]: Modem hangup
Jun 27 05:34:35 router pppd[173]: Connection terminated.
Jun 27 05:34:35 router pppd[173]: Connect time 49.9 minutes.
Jun 27 05:34:35 router pppd[173]: Sent 1566777 bytes, received 39457 bytes.
Jun 27 05:55:46 router -- MARK --
Jun 27 06:15:22 router pppd[28344]: pppd 2.4.1 started by root, uid 0
Jun 27 06:15:22 router pppd[28344]: Using interface ppp0
Jun 27 06:15:22 router pppd[28344]: Connect: ppp0 <--> /dev/pts/1
Jun 27 06:15:28 router pppd[28344]: kernel does not support PPP filtering
Jun 27 06:15:29 router pppd[28344]: local  IP address 62.47.193.226
Jun 27 06:15:29 router pppd[28344]: remote IP address 62.47.223.254
Jun 27 06:25:04 router syslogd 1.4.1#10: restart.
Jun 27 06:35:46 router -- MARK --
---

danke im voraus

ciao
alex

Antwort per Email an