Custom CGI Compile?


#1

This is in reference to my previous post meulie.net/portal_plugins/fo … .php?11046
I’m trying to make a small change to the status.cgi so that I can include some javascript code. Having downloaded the source I was able to compile the cgis with no errors. I stripped the file and copied the status.cgi fle to my cgi-bin dir. Ownership and permissions are set and correct. However, I cannot get the status.cgi file to execute. Here is some info:

nagios2# ls -al /usr/local/www/nagios/cgi-bin/ total 4888 drwxrwxr-x 3 nagios nagios 512 May 18 22:05 . drwxr-xr-x 9 root wheel 512 May 17 19:10 .. -rwxr-xr-x 1 root wheel 251324 May 18 21:32 avail.cgi -rwxr-xr-x 1 root wheel 241020 May 18 21:32 cmd.cgi -rwxr-xr-x 1 root wheel 210108 May 18 21:32 config.cgi -rwxr-xr-x 1 root wheel 263420 May 18 21:32 extinfo.cgi -rwxr-xr-x 1 root wheel 218652 May 18 21:32 histogram.cgi -rwxr-xr-x 1 root wheel 193820 May 18 21:32 history.cgi -rw-r--r-- 1 root wheel 1262477 May 18 21:34 nagios.cgi.ORG drwxrwsrwx 2 root wheel 512 May 15 18:34 nagiosgraph -rwxr-xr-x 1 root wheel 189692 May 18 21:32 notifications.cgi -rwxr-xr-x 1 root wheel 185564 May 18 21:32 outages.cgi -rwxr-xr-x 1 root wheel 189948 May 18 21:32 showlog.cgi -rwxr-xr-x 1 root wheel 225724 May 18 22:05 status.cgi -rwxr-xr-x 1 root wheel 214620 May 18 21:32 statusmap.cgi -rwxr-xr-x 1 root wheel 206108 May 18 21:32 statuswml.cgi -rwxr-xr-x 1 root wheel 189756 May 18 21:32 statuswrl.cgi -rwxr-xr-x 1 root wheel 214428 May 18 21:32 summary.cgi -rwxr-xr-x 1 root wheel 206428 May 18 21:32 tac.cgi -rwxr-xr-x 1 root wheel 222812 May 18 21:32 trends.cgi nagios2# file /usr/local/www/nagios/cgi-bin/status.cgi /usr/local/www/nagios/cgi-bin/status.cgi: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700108), dynamically linked (uses shared libs), FreeBSD-style, stripped nagios2# file /usr/local/www/nagios/cgi-bin/tac.cgi /usr/local/www/nagios/cgi-bin/tac.cgi: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700101), dynamically linked (uses shared libs), FreeBSD-style, stripped nagios2#

You’ll notice that the one file status.cgi is the same in terms of type, etc as the tac.cgi which I have not changed and continues to work. Any ideas? Any help would be appreciated. Thank you.

td