Summary: Client setup for network kernel message logging and crash dumps Name: netdump Version: 0.7.7 Release: 1 Source0: %{name}-%{version}.tar.gz License: GPL Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-root BuildRequires: glib-devel Requires: /usr/bin/ssh-keygen /usr/bin/ssh fileutils textutils gawk /sbin/ifconfig %package server Summary: Server for network kernel crash dumps Group: System Environment/Daemons Requires: /usr/sbin/useradd /usr/sbin/sshd %description server The netdump server listens to the network for crashed kernels to contact it and then writes the oops log and a memory dump to /var/crash before asking the crashed machine to reboot. %description The netdump client sets up the kernel to send crash dumps and/or console messages as syslog packets to a remote system. Some manual setup is required as documented in the netdump (8) man page. %prep %setup -q %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT make install %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add netdump # initialize the required bits for negotiating shared secrets, if necessary if [ ! -f /etc/sysconfig/netdump_id_dsa ] ; then ssh-keygen -q -t dsa -f /etc/sysconfig/netdump_id_dsa -N '' /dev/null 2>&1 fi %preun if [ $1 = 0 ]; then /sbin/service netdump stop > /dev/null 2>&1 /sbin/chkconfig --del netdump fi %pre server /usr/sbin/groupadd -g 34 -r -f netdump 2>/dev/null 1>&2 || : /usr/sbin/useradd -c "Network Crash Dump user" -r -u 34 -g netdump \ -s /bin/bash -r -d /var/crash netdump 2>/dev/null || : %post server /sbin/chkconfig --add netdump-server if [ $1 -ge 1 ]; then service netdump-server condrestart > /dev/null 2>&1 fi %preun server if [ $1 = 0 ]; then /sbin/service netdump-server stop > /dev/null 2>&1 /sbin/chkconfig --del netdump-server fi %files %defattr(-,root,root) %config %attr(0644,root,root)/etc/sysconfig/netdump /etc/rc.d/init.d/netdump %{_mandir}/man8/netdump.8* %doc README.client crash.c %files server %defattr(-,root,root) /usr/sbin/netdump-server %dir %attr(-,netdump,netdump)/var/crash %dir %attr(0700,netdump,netdump)/var/crash/.ssh %config(noreplace) %attr(0600,netdump,netdump)/var/crash/.ssh/authorized_keys2 %dir %attr(0700,netdump,netdump)/var/crash/magic %dir %attr(-,netdump,netdump)/var/crash/scripts /etc/rc.d/init.d/netdump-server %{_mandir}/man8/netdump-server.8* %doc README %doc example_scripts %changelog * Tue Mar 1 2005 Jeff Moyer - 0.7.7-1 - Add support for auto-detecting the first hop on the way to the netdump server. * Tue Mar 1 2005 Jeff Moyer - 0.7.6-1 - Move repo to rhlinux.redhat.com. Modify makefiles to work with this new location. - Pull in changes that went into 0.7.3 0.7.4 and 0.7.5, since they were not present in this repository. * Tue Dec 21 2004 Dave Anderson 0.7.5-2 - Updated source package to netdump-0.7.5.tar.gz: Allows multiple "service netdump start" to handle magic numbers properly. BZ #142752 * Tue Nov 30 2004 Dave Anderson 0.7.4-2 - Fix for unintentional failure of netconsole modprobe when NETLOGADDR=NONE. BZ #141373. * Wed Nov 24 2004 Dave Anderson 0.7.3-2 - Replaces "set" usage with "read" for gathering arp output in print_address_info(). BZ #139781. - Convert netdump-server.8 man page to UTF-8 format. BZ #140707 * Mon Nov 22 2004 Dave Anderson 0.7.1-2 - Changed netdump.init file to use "set -f" in print_address_info(). Fixes "service netdump start" bug if /e, /t, /h, or /r files exist, i.e., characters in "ether". * Mon Nov 15 2004 Dave Anderson 0.7.0-2 - rebuild for RHEL-4 * Wed Sep 29 2004 Dave Anderson 0.7.0-1 - Added BuildRequires and updated to latest package * Fri Jul 9 2004 Jeff Moyer - 0.6.13-1 - More init script fixes. Namely, don't load netdump module if netdumpaddr isn't filled in. * Thu Jul 8 2004 Jeff Moyer - 0.6.12-1 - Add support for 2.6 netdump. - Allow netlog to be configured indepndently from netdump. - Change the server to create only one directory in /var/crash per boot of a system. * Tue Nov 02 2003 Dave Anderson 0.6.11-3 - rebuild * Tue Nov 02 2003 Dave Anderson 0.6.11-2 - fix config_init() in configuration.c to work with PPC64. - fix netdump.init to allow SYSLOGADDR to be configured w/o NETDUMPADDR, and - to properly handle configuration errors. * Thu Oct 23 2003 Jeff Moyer 0.6.11-1 - Incorporate the latest netdump sources. See file ChangeLog. * Wed Sep 10 2003 Dave Anderson 0.6.10-2 - correct README.client to indicate netdump password (instead of root) * Fri Aug 15 2003 Michael K. Johnson 0.6.10-1 - make iconv happy with man page * Tue Aug 05 2003 Michael K. Johnson 0.6.9-4 - rebuild * Mon Aug 04 2003 Michael K. Johnson 0.6.9-3 - rebuild * Mon Jul 07 2003 Dave Anderson 0.6.9-2 - memory_packet(): cast lseek() offset argument as off_t to avoid wrap-around. - memory_remove_outstanding_timeouts(): remove return arg to avoid warning. * Mon Mar 17 2003 Michael K. Johnson 0.6.9-1 - fixed references to ttywatch instead of netdump-server in man page * Wed Feb 26 2003 Dave Anderson 0.6.8-3 - built 0.6.7-1.1 for AS2.1 errata; bumped to 0.6.8-3 for future builds * Tue Jan 28 2003 Michael K. Johnson 0.6.8-2 - rebuild * Fri Dec 13 2002 Elliot Lee - Rebuild * Fri Apr 12 2002 Michael K. Johnson - added call to condrestart * Tue Apr 02 2002 Michael K. Johnson - mhz separated from IDLETIMEOUT * Thu Mar 21 2002 Michael K. Johnson - netdump and syslog disassociated * Thu Mar 21 2002 Michael K. Johnson - added IDLETIMEOUT * Tue Mar 19 2002 Michael K. Johnson - netconsole module now does arp, netdump-arphelper no longer needed * Mon Mar 18 2002 Michael K. Johnson - special netdump dsa key * Fri Mar 15 2002 Michael K. Johnson - added syslog setup * Thu Mar 14 2002 Michael K. Johnson - netdump-client -> netdump - finish ssh setup in netdump package * Tue Feb 19 2002 Alex Larsson - shut up post scripts * Tue Dec 18 2001 Alex Larsson - Update version to 0.2 * Thu Dec 6 2001 Alex Larsson - Initial build.