Issue with genjson.sh after update of httpd

techlevel
edited January 5 in LPAR2RRD

goodday


After updating http i am getting this error when i go with my browser to the lpar2rrd server (on AIX):

This error i have never seen. Someone any ideas?

Kind regards,

Michel.

There was an error on menu JSON generation

200: SyntaxError: Unexpected token '#', "#!/bin/sh "... is not valid JSON

Please  and send that file to developers via secured upload service.

#!/bin/sh

# Load LPAR2RRD environment
CGID=`dirname $0`
if [ "$CGID" = "." ]; then
  CGID=`pwd`
fi
INPUTDIR_NEW=`dirname $CGID`
. $INPUTDIR_NEW/etc/lpar2rrd.cfg

TMPDIR_LPAR="$INPUTDIR/tmp"
export TMPDIR_LPAR

umask 000
ERRLOG="/var/tmp/lpar2rrd-realt-error.log"
export ERRLOG

# Load "magic" setup
if [ -f $INPUTDIR/etc/.magic ]; then
  . $INPUTDIR/etc/.magic
fi

exec $PERL $BINDIR/genjson.pl 2>>$ERRLOG


Comments

    1. rpm -qa| grep httpd
    2. logs


    Note a short problem description in the text field of the upload form.


    under lpar2rrd user:


    cd `cat ~/.lpar2rrd_home`


    gzip -9 logs.tar


    Send us logs.tar.gz via https://upload.lpar2rrd.com

  • Solved it.

    httpd.conf_64 was lacking this line:


    LoadModule cgid_module /opt/freeware/lib64/httpd/modules/mod_cgid.so

    Thankyou for you comment Pavel, have a nice day.


    Regards

    Michel.

Sign In or Register to comment.