Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What is active?

One can find out what processes are normally running via ps ux:

...

Code Block
voyage:~# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     2830/portmap
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     3062/apache
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN     6063/dnsmasq
tcp        0      0 0.0.0.0:1723            0.0.0.0:*               LISTEN     3006/pptpd
tcp6       0      0 :::53                   :::*                    LISTEN     6063/dnsmasq
tcp6       0      0 :::22                   :::*                    LISTEN     6032/sshd
udp        0      0 0.0.0.0:53              0.0.0.0:*                          6063/dnsmasq
udp        0      0 0.0.0.0:67              0.0.0.0:*                          6063/dnsmasq
udp        0      0 0.0.0.0:111             0.0.0.0:*                          2830/portmap
udp6       0      0 :::53                   :::*                               6063/dnsmasq
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path

Finding things

The data is kept in /usr/local/share/pinger/data/ with files of the form ping-yyyy-mm.txt where yyyy is the year and mm the month (1-12).

...

Code Block
voyage:~# ls \-l /usr/lib/cgi-bin
total 72
-rwxr-xr-x 1 root root 15101 Jan  7  2000 cgi-lib.pl
-rwxr-xr-x 1 root root 20101 May 15 23:17 ping_data.pl
-rwxr-xr-x 1 root root 36226 May 12 22:00 traceroute.pl

Updating crontab

Edit /etc/crontab and save. then reboot to make the new version take effect (alternatively use kill -HUP <PID> where you can find the PID from the ps ux command to restart the crontab process).

Logs

The log is kept in /var/log/messages. We believe this "rotated" (compressed, saved and deleted) automatically by syslog using /etc/logrotate.conf and /etc/syslog.conf, so memory is not eventually exhausted.

Applying Patches

On the one hand one wants to keep the system and applications patched to the latest releases. On the other hand this may require considerable bandwidth to download the patches, or timeouts, it could gobble up memory in the host etc.

...