Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2003
    Location
    Christchurch, New-Zealand
    Posts
    34

    Nagios 2.0 configuration files ???

    Hello Guys,

    I've just installed Nagios and i have trouble
    (configuration files) getting it to work

    Nagios version : 2.x (CVS)
    OS : Fedora2

    1. Can anyone list me the configuration files to get
    nagios working (i.e, i need all the configuration
    files + examples ?
    [http://demo.square-box.com/hostextinfocfg.htm -> is
    for nagios 1. version]
    [
    http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
    ] doesn't tell the configuration files..

    I get this error when clicking the links in the left :
    Whoops!

    Error: Could not read object configuration data!

    Here are some things you should check in order to
    resolve this error:

    1. Verify configuration options using the -v
    command-line option to check for errors.
    2. Check the Nagios log file for messages relating
    to startup or status data errors.
    3. Make sure you've compiled the main program and
    the CGIs to use the same object data storage options
    (i.e. default text file or template-based file).

    Make sure you read the documentation on installing,
    configuring and running Nagios thoroughly before
    continuing. If all else fails, try sending a message
    to one of the mailing lists. More information can be
    found at http://www.nagios.org.

    and even trying to restart nagios gives some error, i
    guess something wrong in the configuration part. all the .cfg files are under /usr/local/nagios/etc right ??

    http://nagios.sourceforge.net/docs/2_0/xodtemplate.html
    doesn't work. Please help

  2. #2
    Join Date
    Oct 2004
    Location
    India
    Posts
    509
    Well..it is absolutely impossible to give you all the configurations of the files..yeah ...files
    There are 13 configuration files in /usr/local/nagios/etc.
    Best option is to copy the sample files given in the sample files under it and rename it to .cfg ones.

    checkcommands.cfg
    dependencies.cfg
    hosts.cfg
    nagios.cfg
    services.cfg
    contactgroups.cfg
    escalations.cfg
    resource.cfg
    timeperiods.cfg
    cgi.cfg
    contacts.cfg
    hostgroups.cfg
    misccommands.cfg

    Just consult the configurations given in the http://demo.square-box.com

    And proceed in the sequences:
    hostgroups.cfg - > To configure monitoring various category
    contactgroups.cfg -> To configure the contact(notification) groups
    contacts.cfg -> To contact the indivisual contacts informations
    timeperiods.cfg -> Time period of the notifications
    escalations.cfg -> To configure the escalations
    hosts.cfg -> To configure the hosts
    services.cfg - > To configure the services of the indivisual hosts.
    cgi.cfg -> To configure cgi related stufffs like authentication


    And dont forget to add the VirtualHost entry if you need a web interface.

    And last but not the least ...lot of time to scrath you head and move on
    ESC :wq!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •