Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [SOLVED] shinken-discovery doesn't work on fresh install [uBuntu 12.04]

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    [SOLVED] shinken-discovery doesn't work on fresh install [uBuntu 12.04]

    Hi all,

    i just installed a fresh ubuntu 12.04 with a fresh shinken 1.2, i had apt-get shinken-discovery 0.6.5
    i'm know trying to get discovery working but i'm going into trouble,
    when i type the following line :

    sudo shinken-discovery -o /usr/local/shinken/etc/objects/discovery -r nmap

    i have this error :

    Debug : Error in launching command : /usr/lib64/nagios/plugins/nmap_discovery_runner.py ... No such file or directory False"

    i looked into the directory, it seems the plugins can be found in /usr/local/shinken/libexec or in /usr/lib/shinken/plugins
    whatever i put in commands.cfg or resources.cfg with the macros, i get this weird nagios directory error... any clue ?

    thank you

  2. #2
    Administrator
    Join Date
    Dec 2011
    Posts
    278

    Re: shinken-discovery doesn't work on fresh install

    Look at your nagios.cfg command to see what actual configuration files it is using. Then work up from there.

    go in shinken root directory and do a:

    grep -R "/usr/lib64" *

    That will find where this path is coming from, unless it is from runtime code from a python system call.

    xkilian

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    i don't have a nagios.cfg, and grep did not found anything, is there any way to bypass this problem ?

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

    Re: shinken-discovery doesn't work on fresh install

    Launch a locate nmap_discovery_runner to see where it is (after a updatedb if need)
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    hello,

    just back from holidays :-P

    iv'e located nmap_discovery_runner.py in 2 directories.
    what should i do next ?

    [EDIT]

    ok, my mistake, i found nagios.cfg in /etc/shinken and in /usr/local/shinken/etc, i've looked at it but haven't found anything related to previous path, any other clue ?

  6. #6
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    well,

    i created the path /usr/lib64/nagios/plugins and put nmap_discovery_runner.py there, it seems goes better BUT, i have now a similar error to the previous one that it don't check the var $NMAPTARGET$ in resource.cfg at all, as it only scan for localhost and google.fr (which i removed from the resource.cfg).

    need advice please

    thx

  7. #7
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    ok,

    forget all my previous requests.

    until now i modified /usr/local/shinken/etc/resources.cfg and i just saw it read in /etc/shinken/resources.cfg which was refering to my previous research

    sorry for the inconvenience !

  8. #8
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    new problem now after previous modifications, i stopped shinken with :

    sudo /etc/init.d/shinken stop

    and when i restarted it i got :

    Starting scheduler:
    FAILED: ImportError: No module named schedulerdaemon (full output is in /tmp/bad_start_for_scheduler)
    ...fail!
    Starting poller:
    FAILED: ImportError: No module named pollerdaemon (full output is in /tmp/bad_start_for_poller)
    ...fail!
    Starting reactionner:
    FAILED: ImportError: No module named reactionnerdaemon (full output is in /tmp/bad_start_for_reactionner)
    ...fail!
    Starting broker:
    FAILED: ImportError: No module named brokerdaemon (full output is in /tmp/bad_start_for_)
    ...fail!
    Starting receiver:
    FAILED: ImportError: No module named receiverdaemon (full output is in /tmp/bad_start_for_receiver)
    ...fail!
    Starting arbiter:
    FAILED: ImportError: No module named arbiterdaemon (full output is in /tmp/bad_start_for_arbiter)
    ...fail!


    i'm loosing my mind ... :'(

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

    Re: shinken-discovery doesn't work on fresh install

    I think you mix both installations type. Just delete all Shinken thing on the server, and reinstall it
    No direct support by personal message. Please open a thread so everyone can see the solution

  10. #10
    Junior Member
    Join Date
    Sep 2012
    Location
    France
    Posts
    8

    Re: shinken-discovery doesn't work on fresh install

    probably, i'm not a linux fan :P

    so, can you tell me what is the difference between the /etc/shinken directory and /usr/local/shinken directory ?

Posting Permissions

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