cgi.cfg: Line 15 (Unknown Variable)

Silvesti silvesti at gmail.com
Mon Aug 15 23:39:05 CEST 2005


Please let me know if this is the wrong list....

I've recently installed v2.0b4.  And find that I get the follow error
when I try to check the cgi.cfg file:

=======================================================
Error in configuration file '/usr/local/nagios/etc/cgi.cfg' - Line 15
(UNKNOWN VARIABLE)
=======================================================

You can find further info below:
=======================================================
/usr/local/nagios/etc# ../bin/nagios -v nagios.cfg

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
        Checked 62 services.
Checking hosts...
        Checked 17 hosts.
Checking host groups...
        Checked 1 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 2 contacts.
Checking contact groups...
        Checked 2 contact groups.
Checking service escalations...
        Checked 1 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 34 commands.
Checking time periods...
        Checked 4 time periods.
Checking extended host info definitions...
        Checked 0 extended host info definitions.
Checking extended service info definitions...
        Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
=======================================================
=======================================================
/usr/local/nagios/etc# ../bin/nagios -v cgi.cfg

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Error in configuration file '/usr/local/nagios/etc/cgi.cfg' - Line 15
(UNKNOWN VARIABLE)

***> The name of the main configuration file looks suspicious...

     Make sure you are specifying the name of the MAIN configuration file on
     the command line and not the name of another configuration file.  The
     main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

***> One or more problems was encountered while processing the config files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

=======================================================
/usr/local/nagios/etc# ls -al
total 80
drwxrwsr-x  3 nagios nagios  4096 Aug 12 15:08 .
drwxrwsr-x  8 nagios nagios  4096 Aug 11 22:51 ..
-rwxr-xr-x  1 nagios nagios  9558 Aug 14 00:22 cgi.cfg
-rwxr-xr-x  1 nagios nagios 30678 Aug 13 10:28 nagios.cfg
-rwxr-xr-x  1 nagios nagios 21437 Aug 12 15:07 nagios.cfg_src
drwxr-sr-x  2 nagios nagios  4096 Aug 12 15:08 samples
=======================================================
/usr/local/nagios/etc# head -20 cgi.cfg        
#################################################################
#
# CGI.CFG - Sample CGI Configuration File for Nagios 
#
# Last Modified: 05-05-2005
#
#################################################################


# MAIN CONFIGURATION FILE
# This tells the CGIs where to find your main configuration file.
# The CGIs will read the main and host config files for any other
# data they might need.

main_config_file=/usr/local/nagios/etc/nagios.cfg



# PHYSICAL HTML PATH
# This is the path where the HTML files for Nagios reside.  This

=======================================================


Any thoughts as to why I'm receiving this error?  Thanks!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf




More information about the Developers mailing list