Hi,
I have installed nagios via ports in FreeBSD, and configured it to work
with my network. But when i do nagios -v nagios.cfg i get a kind of
wired error: "Error in configuration file
'/usr/local/etc/nagios/nagios.cfg' - Line 20 (NULL value)"
On line 20 I have:
define timeperiod{
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }
If i comment out this I just get the same error on the next section.
What can be wrong? I have attached my config file.

-- 

Med vennlig hilsen 

Alexander Davidsen - Webdeal AS
Teknologiveien 22 - 2815 Gjøvik - NORWAY
E-Post: [EMAIL PROTECTED] Webside: www.webdealhosting.com 

################################################################################
# Sample object config file for Nagios 
#
# Read the documentation for more information on this configuration file.  I've
# provided some comments here, but things may not be so clear without further
# explanation, so make sure to read the HTML documentation!
# 
# Last Modified: 05-30-2006
#
################################################################################



################################################################################
# TIMEPERIOD DEFINITIONS
################################################################################

# '24x7' timeperiod definition

define timeperiod{
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }


# 'workhours' timeperiod definition
define timeperiod{
        timeperiod_name workhours
        alias           "Normal" Working Hours
        monday          09:00-17:00
        tuesday         09:00-17:00
        wednesday       09:00-17:00
        thursday        09:00-17:00
        friday          09:00-17:00
        }


# 'nonworkhours' timeperiod definition
define timeperiod{
        timeperiod_name nonworkhours
        alias           Non-Work Hours
        sunday          00:00-24:00
        monday          00:00-09:00,17:00-24:00
        tuesday         00:00-09:00,17:00-24:00
        wednesday       00:00-09:00,17:00-24:00
        thursday        00:00-09:00,17:00-24:00
        friday          00:00-09:00,17:00-24:00
        saturday        00:00-24:00
        }


# 'none' timeperiod definition
define timeperiod{
        timeperiod_name none
        alias           No Time Is A Good Time
        }


################################################################################
# CONTACT DEFINITIONS
################################################################################

# 'nagios' contact definition
define contact{
        contact_name                    teknisk
        alias                           tknisk
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email,notify-by-epager
        host_notification_commands      
host-notify-by-email,host-notify-by-epager
        email                           [EMAIL PROTECTED]       pager           
                [EMAIL PROTECTED]
        }


# 'jdoe' contact definition
define contact{
        contact_name                    qalex
        alias                           Alexander Davidsen
        service_notification_period     workhours
        host_notification_period        workhours
        service_notification_options    c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           [EMAIL PROTECTED]
        }



################################################################################
# CONTACT GROUP DEFINITIONS
################################################################################

# 'novell-admins' contact group definition
define contactgroup{
        contactgroup_name       webdeal-teknisk
        alias                   Webdeal Admins
        members                 qalex
        }
################################################################################
# HOST DEFINITIONS
################################################################################

define host{
        host_name               srv105.fo.no
        alias                   SRV105
        address                 192.32.33.98
        check_command           check-host-alive
        max_check_attempts      10
        check_period            24x7
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        contact_groups          novell-admins
        }

################################################################################
# HOST GROUP DEFINITIONS
################################################################################

# 'novell-servers' host group definition
define hostgroup{
        hostgroup_name  webdeal_teknisk
        alias           Webdeal Teknisk
        members         qalex
        }


################################################################################
# SERVICE DEFINITIONS
################################################################################

# Generic service definition template
define service{
        name                            generic-service ; The 'name' of this 
service template, referenced in other service definitions
        active_checks_enabled           1       ; Active service checks are 
enabled
        passive_checks_enabled          1       ; Passive service checks are 
enabled/accepted
        parallelize_check               1       ; Active service checks should 
be parallelized (disabling this can lead to major performance problems)
        obsess_over_service             1       ; We should obsess over this 
service (if necessary)
        check_freshness                 0       ; Default is to NOT check 
service 'freshness'
        notifications_enabled           1       ; Service notifications are 
enabled
        event_handler_enabled           1       ; Service event handler is 
enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        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 SERVICE, JUST A TEMPLATE!
        }

# Service definition
define service{
        host_name                       srv105.foo.no
        service_description             FTP
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           3
        retry_check_interval            1
        contact_groups                  novell-admins
        notification_interval           120
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_ftp
        }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to