Error in configuration file in hosts.cfg

Rodrigo Tavares digolinopage at yahoo.com.br
Thu Aug 16 13:32:55 CEST 2007


Hello,

See the file hosts.cfg below :

# Generic host definition template

define host{
        name                            generic-host  
 ; The name of this host template - referenced in
other host definitions, used for template recursion
        notifications_enabled           1       ; Host
notifications are enabled
        event_handler_enabled           0       ; Host
event handler is disabled
        flap_detection_enabled          0       ; Flap
detection is disabled
        process_perf_data               1       ;
Process performance data
        retain_status_information       1       ;
Retain status information across program restarts
        retain_nonstatus_information    1       ;
Retain non-status information across program restarts
        register                        0       ; DONT
REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A
TEMPLATE!
        }

# Default gateway host definition
define host{
        use                     generic-host          
 ; Name of host template to use

        host_name               ogromovel
        alias                   Ogro
        address                 192.168.1.90
        check_command           check-host-alive
        max_check_attempts      20
        notification_interval   60
        notification_period     24x7
        notification_options    d,u,r
        }


When I run the command :

./bin/nagios -v /usr/local/nagios/etc/hosts.cfg

Come this merror messenger:

Error in configuration file
'/usr/local/nagios/etc/hosts.cfg' - Line 3 (NULL
value)

The explication isn't clear.

Cab I resolve it ?

Best regards,

Rodrigo Faria



 


      Flickr agora em português. Você clica, todo mundo vê.
http://www.flickr.com.br/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list