Results 1 to 10 of 10

Thread: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

  1. #1

    Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    I've tryed to launch an auto-discovery with those steps.

    1. Apt-get install nmap
    2. nano resource.d/nmap.conf >>> $NMAPTARGETS$=192.168.1.1-254
    3. shinken-discovery -c discovery/discovery.cfg -o objects/discovery/ -r nmap

    Error returned:
    " Error : Fail launching command: /discovery/nmap_discovery_runner.py --min-rate --max-retries -t [Errno 2] No such file or directory False
    Error on run
    Got raw disco data

    LOOPLOOP.....LOOP 1
    LOOP
    LOOP
    "
    >> It seems that the file nmap_discovery_runner.py doesn't exists

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

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    Can you try to "find /" it?
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    it didn't find the file : nmap_discovery_runner.py

    It has been runned on the "/"

    EDIT:
    File Found !
    it's on the "discovery" of the Tarball.
    >> it seems this file hadn't be copied too during the setup.py

    By having a look around,
    it seems there are few other several files and fodlers which are missing after the setup.py in the main /etc/shinken :-/

    * All files "xxx.py" in the discovery tarball
    * Folder "libexec" which contains all missing files for checking

    Is that normal ??

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

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    RC version got problems with the setup.py, we fixed it in the RC2 version (on github or "pip install shinken&quot.
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    thank you Naparuba

    I'll give it a try now and let you know

  6. #6

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    Same problem with RC2

    " Error : Fail launching command: /discovery/nmap_discovery_runner.py --min-rate --max-retries -t [Errno 2] No such file or directory False
    Error on run
    Got raw disco data

    LOOPLOOP.....LOOP 1
    LOOP
    LOOP
    "

    But this time, the runner.py file exist in /var/lib/shinken/libexec

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

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    The configuration seems to have a problem: /discovery is not existing.

    Look at the direcovery.cfg file, for the resources file/dir if it still exists (maybe we broke it in the 2.0 release, this part is not automatically tested).
    No direct support by personal message. Please open a thread so everyone can see the solution

  8. #8

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    the files "discovery.cfg" I can find are in :

    /etc/shinken/discovery
    /etc/shinken/packs/linux-snmp/

    No discovery.cfg inside /var/lib/shinken/libexec/discovery

  9. #9
    Junior Member
    Join Date
    Mar 2014
    Posts
    3

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    I am also having this problem attempting a discovery on the latest RC.

    This is what I get:

    [1395756121] Error : Fail launching command: /discovery/nmap_discovery_runner.py --min-rate --max-retries -t 192.168.254.2 [Errno 2] No such file or directory False

  10. #10
    Junior Member
    Join Date
    Mar 2014
    Posts
    3

    Re: Shinken 2.0 - Failed launch command nmap_discovery_runner.py

    Okay, so I found the "nmap_discovery_runner.py" file along with the other runners in /var/lib/shinken/libexec/discovery so I changed the "discovery_runs.cfg" file to point to the correct runners. I re-ran the discovery and I get the following:


    shinken@shinken:/var/lib/shinken/libexec/discovery$ sudo shinken-discovery -c /etc/shinken/discovery/discovery.cfg -o /etc/shinken/discovery/ -r nmap -m "NMAPTARGETS=localhost"
    Macros ['NMAPTARGETS=localhost']
    Got macros [('NMAPTARGETS', 'localhost&#039]
    [1395757956] Info : [config] opening '/etc/shinken/discovery/discovery.cfg' configuration file
    [1395757956] Error : Cannot open config dir '/etc/shinken/discovery/packs' for reading
    [1395757956] Info : Processing object config file '/etc/shinken/discovery/discovery_rules.cfg'
    [1395757956] Info : Processing object config file '/etc/shinken/discovery/discovery_runs.cfg'
    [1395757956] Error : Cannot open config file '/etc/shinken/discovery/shinken.cfg' for reading: [Errno 2] No such file or directory: u'/etc/shinken/discovery/shinken.cfg'
    [1395757956] Error : Cannot open config file '/etc/shinken/discovery/commands.cfg' for reading: [Errno 2] No such file or directory: u'/etc/shinken/discovery/commands.cfg'
    [1395757956] Error : Cannot open config file '/etc/shinken/discovery/resource.cfg' for reading: [Errno 2] No such file or directory: u'/etc/shinken/discovery/resource.cfg'
    [1395757956] Warning : There is no arbiter, I add one in localhost:7770
    [1395757956] Warning : No scheduler defined, I add one at localhost:7768
    [1395757956] Warning : No poller defined, I add one at localhost:7771
    [1395757956] Warning : No reactionner defined, I add one at localhost:7769
    [1395757956] Warning : No broker defined, I add one at localhost:7772
    [1395757956] Warning : No realms defined, I add one at Default

Posting Permissions

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