Results 1 to 10 of 10

Thread: Install shinken

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    3

    Install shinken

    hello, i start install of shinken 2.0 rc4, on a new install of debian 7

    when i want to start shinken the arbiter is bad.

    root@Serv-Shinken:/home/shinken# /etc/init.d/shinken start
    Starting scheduler:
    . ok
    Starting poller:
    . ok
    Starting reactionner:
    . ok
    Starting broker:
    . ok
    Starting receiver:
    . ok
    Starting arbiter:
    FAILED: ***> One or more problems was encountered while processing the config files... (full output is in /tmp/bad_start_for_arbiter)
    failed!
    root@Serv-Shinken:/home/shinken#



    root@Serv-Shinken:/home/shinken# cat /tmp/bad_start_for_arbiter
    [1397575125] Info : Shinken 2.0-RC4
    [1397575125] Info : Copyright (c) 2009-2014:
    [1397575125] Info : Gabes Jean (naparuba@gmail.com)
    [1397575125] Info : Gerhard Lausser, Gerhard.Lausser@consol.de
    [1397575125] Info : Gregory Starck, g.starck@gmail.com
    [1397575125] Info : Hartmut Goebel, h.goebel@goebel-consult.de
    [1397575125] Info : License: AGPL
    [1397575125] Info : Loading configuration
    [1397575125] Info : [config] opening '/etc/shinken/shinken.cfg' configuration file
    [1397575125] Info : Processing object config file '/etc/shinken/commands/restart-shinken.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-service-by-android-sms.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/detailled-service-by-email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-host-by-android-sms.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_nrpe_args.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/configuration-check.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_snmp_time.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-service-by-xmpp.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-host-by-email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/detailled-host-by-email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_nrpe.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-host-by-xmpp.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_snmp_service.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_host_alive.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_dig.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_ping.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_snmp_storage.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/reload-shinken.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/notify-service-by-email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/commands/check_tcp.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/timeperiods/workhours.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/timeperiods/none.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/timeperiods/24x7.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/timeperiods/us-holidays.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/escalations/sample.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/dependencies/sample.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/templates/generic-service.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/templates/srv-pnp.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/templates/generic-host.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/templates/time_templates.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/templates/generic-contact.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/notificationways/email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/notificationways/sms-android.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/notificationways/detailled-email.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/servicegroups/sample.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/hostgroups/linux.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/contactgroups/admins.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/contactgroups/users.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/hosts/localhost.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/services/services.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/contacts/admin.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/contacts/guest.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/packs/readme.cfg'
    [1397575125] Error : Cannot open config dir '/etc/shinken/modules' for reading
    [1397575125] Info : Processing object config file '/etc/shinken/arbiters/arbiter-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/schedulers/scheduler-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/pollers/poller-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/reactionners/reactionner-android-sms.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/reactionners/reactionner-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/brokers/broker-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/receivers/receiver-master.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/realms/all.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/resource.d/paths.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/resource.d/nmap.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/resource.d/active-directory.cfg'
    [1397575125] Info : Processing object config file '/etc/shinken/resource.d/snmp.cfg'
    [1397575125] Debug : Opening local log file
    None
    [1397575125] Info : And arbiter is launched with the hostname:Serv-Shinken from an arbiter point of view of addr:Serv-Shinken.sotira.local
    [1397575125] Info : I am the master Arbiter: arbiter-master
    [1397575125] Info : My own modules:
    [1397575125] Info : Modules directory: /var/lib/shinken/modules
    [1397575125] Info : I correctly loaded the modules: []
    ***> One or more problems was encountered while processing the config files...
    root@Serv-Shinken:/home/shinken#

    root@Serv-Shinken:/etc/shinken# ls -l
    total 112
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 arbiters
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 brokers
    drwxr-xr-x 3 shinken shinken 4096 avril 15 17:10 certs
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 commands
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 contactgroups
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 contacts
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 daemons
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 dependencies
    -rw-r--r-- 1 shinken shinken 84 avril 15 17:09 dev.cfg
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 discovery
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 escalations
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 hostgroups
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 hosts
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 notificationways
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 packs
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 pollers
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 reactionners
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 realms
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 receivers
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 resource.d
    drwxr-xr-x 5 shinken shinken 4096 avril 15 17:10 sample
    -rw-r--r-- 1 shinken shinken 255 avril 15 17:09 sample.cfg
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 schedulers
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 servicegroups
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 services
    -rw-r--r-- 1 shinken shinken 3640 avril 15 17:10 shinken.cfg
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 templates
    drwxr-xr-x 2 shinken shinken 4096 avril 15 17:10 timeperiods
    root@Serv-Shinken:/etc/shinken# cd



    [1397575125] Error : Cannot open config dir '/etc/shinken/modules' for reading


    Where is this directory ?

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

    Re: Install shinken

    You can check http://www.shinken-monitoring.org/fo...ic,1720.0.html

    In short :
    You can install a module with the shinken command (if you need one)
    or
    Create the directory /etc/shinken/modules with the right owner/group (shinken/shinken) and mode (forgot which one it is).

    This will be fixed, when the stable version will come out.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    3

    Re: Install shinken

    thx, it's good.

    But after then end of the how to, i have an error :

    localhost
    NtpSync
    CRITICAL
    1d 21h
    Error: bash: ntpq: command not found
    and


    CPU Stats
    UNKNOWN
    1d 21h
    Error : cannot fetch cpu stats values from host

    i use : linux-ssh

    i don't understant

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

    Re: Install shinken

    • [li](ntp): you must edit the linux-ssh/commands.cfg file to add a --ntpq= parameter with the good ntpq path(look at the check_ssh_linux_ntp_sync help with -h)

      We are trying to solve this in a future ceck version
      [/li]
      [li]2: you must install systats package on your linux server (distant). I4ll try to avoid it in the future as it's the only one dependency left [/li]
    (ntp):
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Apr 2014
    Location
    Paris
    Posts
    17

    Re: Install shinken

    Hi,

    I also had this issue : ntpsync, Error: bash: ntpq: command not found

    I fix it adding --ntpq=/usr/sbin/ntpq to my /etc/shinken/packs/linux-ssh/commands.cfg

    Thx nap !

    ----
    I use shinken 2.0.1 on
    Red Hat Enterprise Linux Server release 6.5 (Santiago) 64 bits
    Gmbk.
    Network and system administrator

  6. #6
    Junior Member
    Join Date
    Aug 2014
    Location
    Paris, France
    Posts
    21

    Re: Install shinken

    Indeed adding --ntpq=/usr/sbin/ntpq to /etc/shinken/packs/linux-ssh/commands.cfg solves the problem.

    Can it be added to shinken.io ?
    This way, would save people time when they use linux-ssh pack
    ATI

  7. #7
    Junior Member
    Join Date
    Aug 2014
    Location
    Paris, France
    Posts
    21

    Re: Install shinken

    In fact, it should not be added to standard package, as I've seen it's not there on Debian.

    RHEL: /usr/sbin/ntpq
    Debian: /usr/bin/ntpq

    I'm not sure about the best way to solve this problem:
    • [li]either creating a new pack from linux-ssh for RHEL specificly (or Debian specificly)[/li]
      [li]or just create a link to/from /usr/bin/ntpq from/to /usr/sbin/ntpq [/li]
      [li] or have a variable in the host that change the command definition depending on exact linux dstro is used [/li]


    First solution keep the monitored system intact.
    Second keep linux-ssh pack simple.

    Any suggestion for me to create variable in linux-ssh pack to get a working 3rd solution ?
    ATI

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

    Re: Install shinken

    I think a good way is 4: test both in the command launch by the script

    So th pack is stll simple, anbd you don't need to change your conf just because its another distro...
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9
    Junior Member
    Join Date
    May 2020
    Posts
    1
    I am going to install Shinken very soon, and I think it will be great for the best essay writing website that I am working at currently. I want to know what you think about this, please.

  10. #10
    Junior Member
    Join Date
    Mar 2020
    Posts
    4
    Forget about all the old machine languages. Python is on the rise with their elegent python frameworks. Here a link to the top 20 python frameworks.

Posting Permissions

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