Results 1 to 2 of 2

Thread: Can't get Discovery to create valid configuration

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    1

    Can't get Discovery to create valid configuration

    Pretty much standard installation...

    After which I'm running:

    shinken-discovery -o /etc/shinken/objects/discovery -r nmap

    This results in some configuration for several machines.. an example below:

    Hostname is R2D2:

    /etc/shinken/objects/discovery/r2d2:

    Http.cfg r2d2.cfg Ssh.cfg


    Http.cfg:
    define service {
    service_description Http
    check_command check_http
    host_name r2d2
    }

    r2d2.cfg
    define host {
    service_description Ssh
    check_command check_ssh
    host_name r2d2
    address 192.168.60.106
    }

    Ssh.cfg
    define service {
    service_description Http
    check_command check_http
    host_name r2d2
    }


    Alot of error when starting Shinken:

    1370009077] Error : [host::r2d2] max_check_attempts property not set
    [1370009077] Warning : The host r2d2 has no contacts nor contact_groups in (/etc/shinken/objects/discovery/r2d2/r2d2.cfg)
    [1370009077] Error : [items] In r2d2 is incorrect ; from /etc/shinken/objects/discovery/r2d2/r2d2.cfg

    [1370009077] Error : The service Http on host 'r2d2' does not have retry_interval
    [1370009077] Error : The service Http on host 'r2d2' does not have check_interval
    [1370009077] Error : The service Http on host 'r2d2' does not have max_check_attempts
    [1370009077] Warning : The service 'Http' in the host 'r2d2' does not have contacts nor contact_groups in '/etc/shinken/objects/discovery/r2d2/Http.cfg'
    [1370009077] Error : [items] In Http is incorrect ; from /etc/shinken/objects/discovery/r2d2/Http.cfg
    [1370009077] Error : The service Ssh on host 'r2d2' does not have retry_interval
    [1370009077] Error : The service Ssh on host 'r2d2' does not have check_interval
    [1370009077] Error : The service Ssh on host 'r2d2' does not have max_check_attempts
    [1370009077] Warning : The service 'Ssh' in the host 'r2d2' does not have contacts nor contact_groups in '/etc/shinken/objects/discovery/r2d2/Ssh.cfg'
    [1370009077] Error : [items] In Ssh is incorrect ; from /etc/shinken/objects/discovery/r2d2/Ssh.cfg

    Any advice... thanks??

  2. #2
    Member
    Join Date
    Jun 2012
    Location
    France
    Posts
    52

    Re: Can't get Discovery to create valid configuration

    hi,

    some attributs are mandatory for an host definition (listed in the log you provide), check the shinken wiki page for host configuration.

    You could add those to your host definition or use the generic-host template (legacy ).

    here is and example:

    Code:
    define host {
     service_description  Ssh<= remove it, it's wrong
     use generic-host <= add this to use the template
     check_command  check_ssh
     host_name  r2d2
     address  192.168.60.106
    }

Posting Permissions

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