• Welcome to Computer Association of SIUE - Forums.
 

Family Linux Administrators

Started by William Grim, 2005-07-18T02:09:26-05:00 (Monday)

Previous topic - Next topic

William Grim

If you're basically a Linux administrator for your family members, I've written a script that allows your family to type a description of a problem they're having into a console and hit CTRL-D when they're finished, and then it will send the problem report, along with system information (i.e. firewall rules, IP addresses, problem description, and running processes of user and root) to your email inbox with a subject saying something like "grimw@10.0.0.23's Problem Report."  For the emails to go to the correct place, you need to modify the '/etc/preport.conf' file's "EMAILS" variable, and you need to have "mail" installed.

The script is called 'preports' (problem reports) and is available here (as a Debian .deb) and here (as a gunzip'd tarball).  The tarball has a NOTES file in the doc/ directory to describe how to do a manual installation, which amounts to copying two files to their proper locations.

Hopefully this script, while being simple in design, can help out a few of you.
William Grim
IT Associate, Morgan Stanley

Bryan

that's actually a pretty handy little tool.
Bryan Grubaugh
Quickly aging alumni with too much time on his hands
Business Systems Analyst, Scripps Networks.

William Grim

Thanks!  Not the prettiest or anything, but it helps me when my dad is having problems and I'm not right there next to him to see what's wrong.

If you or anyone has comments, feedback, or source code patches, let me know!
William Grim
IT Associate, Morgan Stanley

William Grim

Hey there!

I have updated the preport utility and placed it online here (debian .deb) and here (tar.gz).

It adds a fix, piping log output through "$PAGER".  Before, when someone ran this as an argument to xterm, no one would be able to see the log before the xterm disappeared.  This fixes that issue for all types of terminals.

Any feedback or patches are certainly welcome!
William Grim
IT Associate, Morgan Stanley