CGI Malformed header from script problem

Hi All,
I’ve this awful problem with nagios CGI.
I’m using Nagios 1.2, compiled with mysql support with apache 2.
Both nagios and apache run with nagios user/group.

When I point myu browser to a cgi I receive this in apache’ error_log:

[Mon Sep 27 17:00:45 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: tac.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:46 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: status.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:47 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: status.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:47 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: status.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:48 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: status.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:48 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: status.cgi, referer:
norad.gstazioni.it/nagios/side.html
[Mon Sep 27 17:00:49 2004] [error] [client 192.168.5.12] malformed header from script. Bad header=\tXSDDB_QUERY Done.: statusmap.cgi, referer:
norad.gstazioni.it/nagios/side.html

How to solve this problem ?
:shock:

Sounds like you compiled nagios to use a mysql database, but you didn’t actually create the database tables. Follow the documentation once more, and I’m sure you will see where you went wrong. It sounds like the cgi.cfg file, at least, is looking for a database reply. That’s why you see “XSDDB_QUERY” instead of the actual reply from the database query.