Results 1 to 4 of 4

Thread: Auto-discovery error

Hybrid View

  1. #1

    Auto-discovery error

    Hello,

    I've just installed Shinken, and I'm trying to import a host using auto-discovery.

    I'm very new to Shinken, but quite experienced with Nagios.

    I have a host (not on the same LAN) that I'm trying to add. I have added this host to $NMAPTARGETS$ in [tt]shinken/etc/resource.cfg[/tt]

    I then run (as the documentation seems to suggest)
    Code:
    # bin/shinken-discovery -o etc/objects/discovery/ -c resource.cfg -r nmap
    But I get an error:
    Code:
    [1374358332] Info :   Checked 0 businessimpactmodulations
    ERROR : there is no matching runners selected!
    Got no data!
    
    
    LOOPLOOPLOOPLOOPLOOPLOOPLOOPLOOPLOOPLOOP 1
    I then have to Ctrl-C to get out of this, upon which, I get:
    Code:
    Traceback (most recent call last):
     File "../bin/shinken-discovery", line 162, in <module>
      d.write_config()
     File "/usr/local/shinken/shinken/discovery/discoverymanager.py", line 582, in write_config
      still_duplicate_items = False
    What am I doing wrong? I'm quite willing to believe I haven't configured something correctly, as Shinken is so new to me

    Thanks

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Auto-discovery error

    Load the etc/discovery.cfg file instead of the resource one
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: Auto-discovery error

    Thanks, that worked

    I don't suppose there's any way to get discovery to write NRPE rules? From what I can see, it has inspected th host using NMAP, and written rules which will check externall-accessible services. Would it be possible to write templates for rules using check_nrpe, or even better, check-by-ssh, based on an NRPE port being available?

    Many thanks


  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Auto-discovery error

    Discovery is mainly used for tagging hosts, not for generating commands. But you can got host tags that will use your commands, and if it find a nrpe port, it will tag the host (use) and so will use NRPE checks.

    Look at some etc/packs/networks/services packs, they got discovery sample about port detection.
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

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