Forum Home
PC World Chat
 
Thread ID: 117640 2011-04-27 07:41:00 Linux people - feedback please Erayd (23) PC World Chat
Post ID Timestamp Content User
1197668 2011-04-27 08:12:00 Seems to run.

Might pay to remove the trailing "." at the end of the last line.

lintrace.erayd.net
somebody (208)
1197669 2011-04-27 08:14:00 2011-04-27 07:12:55 INFO: Getting syslog tail
2011-04-27 07:12:55 ERROR: Default syslog file is missing

You're not allowing for /var/log/messages
somebody (208)
1197670 2011-04-27 08:14:00 set -ae in the actual script is causing the script to just exist without doing anything (or doesn't appear to do anything). Replacing it with a set -a or just removing it altogether seems to make it run at least.Removing the '-e' is something I'd rather not do (-e causes the script to bail in case of an unhandled error); I'd rather fix the cause of the issue. The problem you noticed has now been fixed - it was related to the detection of tempfile. Erayd (23)
1197671 2011-04-27 08:17:00 2011-04-27 07:12:55 INFO: Getting syslog tail
2011-04-27 07:12:55 ERROR: Default syslog file is missing

You're not allowing for /var/log/messagesThank you - it now uses /var/log/messages if present.
Erayd (23)
1197672 2011-04-27 08:18:00 Removing the '-e' is something I'd rather not do (-e causes the script to bail in case of an unhandled error); I'd rather fix the cause of the issue. The problem you noticed has now been fixed - it was related to the detection of tempfile.

Yup - it seems fine now even with the -e in there.
somebody (208)
1197673 2011-04-27 08:21:00 2011-04-27 07:19:05 INFO: Starting trace - version 1.0
2011-04-27 07:19:05 INFO: Getting user & group information
2011-04-27 07:19:05 INFO: Getting system version
2011-04-27 07:19:05 INFO: Getting kernel information
2011-04-27 07:19:05 INFO: /proc/config.gz not available
2011-04-27 07:19:05 INFO: Getting kernel log
2011-04-27 07:19:05 INFO: Getting information about running processes
2011-04-27 07:19:05 INFO: Getting X configuration
2011-04-27 07:19:05 WARN: Unable to get X version
2011-04-27 07:19:05 INFO: Samba is not installed
2011-04-27 07:19:05 INFO: Getting syslog tail
2011-04-27 07:19:05 INFO: Getting hardware information
2011-04-27 07:19:05 ERROR: Module returned failure: hardware
2011-04-27 07:19:05 INFO: Getting network information
2011-04-27 07:19:05 INFO: Bridge tools not installed
2011-04-27 07:19:05 INFO: Trace complete
2011-04-27 07:19:05 INFO: Posting results to http://lintrace.erayd.net/
Finished - test results are at lintrace.erayd.net


[root@ip-10-167-9-128 ~]# lspci
-bash: lspci: command not found
[root@ip-10-167-9-128 ~]# lsusb
-bash: lsusb: command not found
[root@ip-10-167-9-128 ~]# lshw
-bash: lshw: command not found
somebody (208)
1197674 2011-04-27 08:29:00 Thank you - it now uses /var/log/messages if present.

Another thought is... I think some linux versions use /var/adm/messages (or similar?)
somebody (208)
1197675 2011-04-27 08:33:00 Errors caused by X being completely missing are now fixed.

The errors you're getting about hardware should remain - they're basically saying that you don't have the standard hardware info tools installed, and I'd consider that to be something worthy of an error message. I've made them a little more user-friendly though; they now show up in the log rather than in the output.
Erayd (23)
1197676 2011-04-27 08:34:00 Another thought is... I think some linux versions use /var/adm/messages (or similar?)I think that's a Solaris thing - which this script doesn't really target, as it assumes it's running in a standard Linux environment. Erayd (23)
1197677 2011-04-27 08:35:00 [sudo] password for jennifer:
jennifer is not in the sudoers file. This incident will be reported.
[jennifer@myth ~]$ My own computer is telling tales on me!! :eek:

Let alone this bash lecture:
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Jen (38)
1 2 3 4 5 6