Menu

#1 Hard codes path's... not good

open
nobody
None
5
2010-03-09
2010-03-09
Anonymous
No

Run on a clean RHEL5.3 system but someone hardcoded the path to the dependencies in the systemcheck.sh script (or sourced files) so the scripts can't be tested without alterations.

[root@localhost systemcheck]# sh bin/systemcheck.sh
cat: /home/jblasco/systemcheck/etc/md5files.dat: No such file or directory
cat: /etc/*_version: No such file or directory

tee: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory

Health Check List
This part of program will be executed on every node
in order to collect the necessary information for
checklist and report scripts
Script Version: 0.14
Script Date: 2008 01 11
===============================================================================
AUTHOR: Written by Jordi Blasco Pallarès
REPORTING BUGS: Report bugs to <jordi.blasco@gmail.com>.
Please report all bugs after reviewing project details located at
http://sourceforge.net/projects/systemcheck/
===============================================================================

tee: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
==[ BASIC INFORMATION ]========================================================
HOSTNAME: localhost
OS: Linux
KERNEL Version: 2.6.18-128.el5
ARCH: x86_64
UPTIME: 16:38:50 up 46 days, 2:46
DATE: 100309_1638
===============================================================================

bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
cat: /etc/mdadm.conf: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
cat: /home/jblasco/systemcheck/etc/remfstab.conf: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
cat: /home/jblasco/systemcheck/etc/remfstab.conf: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
cat: /home/jblasco/systemcheck/etc/remfstab.conf: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 230: iostat: command not found
bin/systemcheck.sh: line 116: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 120: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
bin/systemcheck.sh: line 121: /home/jblasco/systemcheck/data/tmp/localhost-report.dat: No such file or directory
^C

Discussion

  • Anonymous

    Anonymous - 2010-03-09
    • summary: Hard codes phth's... not good --> Hard codes path's... not good
     

Log in to post a comment.

MongoDB Logo MongoDB