Internal server error when running commands (cmd.cgi)

Steve Neuharth steveneu at tiny.net
Thu Sep 26 07:33:05 CEST 2002


	I have nagios up and running (beats the pants off of BigBrother IMHO).
	I'm running FreeBSD 4.7 and I installed nagios straight from the ports 
collection. I have done this several times before and the port 
maintainer does a great job of scripting the install so that it works 
"out-of-the-box" as it were.
	All of the cgi's seem to work BUT I get an internal server error when I 
try to make cmd.cgi "do stuff" such as adding a comment, scheduling a 
check. My first thought was file perms on the rw directory but I cannot 
find anything wrong after reading the netsaint faq (this info is missing 
from the nagios faq btw).  Here is my var/nagios dir:

tiny# pwd
/usr/local/var/nagios
tiny# ls -l
total 24502
drwxrwxr-x  2 nagios  nagios      2560 Sep 26 00:00 archives
-rw-rw-r--  1 nagios  nagios         0 Sep 26 00:06 comment.log
-rw-rw-r--  1 nagios  nagios         0 Sep 26 00:06 downtime.log
-rw-rw-r--  1 nagios  nagios   1266212 Sep 26 00:24 host-perfdata.out
-rw-r--r--  1 root    nagios         6 Sep 26 00:06 nagios.lock
-rw-rw-r--  1 nagios  nagios      1991 Sep 26 00:11 nagios.log
drwxrwxr-x  2 nagios  www          512 Sep 26 00:06 rw
-rw-rw-r--  1 nagios  nagios  23766777 Sep 26 00:24 service-perfdata.out
-rw-rw-r--  1 nagios  nagios      3456 Sep 26 00:24 status.log
-rw-r--r--  1 nagios  nagios      2563 Sep 26 00:06 status.sav

another strange thing is the nagios.cmd file:
tiny# pwd
/usr/local/var/nagios/rw
tiny# ls -l
total 0
prw-rw----  1 nagios  www  0 Sep 26 00:06 nagios.cmd

why is it a pipe? should it be? maybe, but I thought it was strange.

When I "submit" something I get "Internal Server Error" and in the 
apache log I get:
[Thu Sep 26 00:27:30 2002] [error] [client 192.168.0.1] Premature end of 
script headers: /usr/local/share/nagios/cgi-bin//cmd.cgi




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list