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

Thread: WebUI : wrong password

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Location
    France
    Posts
    15

    WebUI : wrong password

    Hello
    I have installed shinken on a Fedora 18 with rpm.
    All works fine, but, after a reboot, I can't connect to the webui interface : it always says "wrong password".

    my config file :
    Code:
    module_name   WebUI
    (...)
    modules     Apache_passwd,Cfg_password
    Code:
    define module{
        module_name   Apache_passwd
        module_type   passwd_webui
        passwd      /etc/shinken/htpasswd.users
    }
    Code:
    define module{
        module_name   Cfg_password
        module_type   cfg_password_webui
    }
    the htpaspasswd is fine and I have already insert two users : admin et nagiosadmin

    This two users are recorded on the contacts file withe the same password.

    the only error log I have is for the broker :
    Code:
    Error :  [broker-1] get_broks() takes exactly 1 argument (2 given)
    2013-09-10 13:42:12,530 [1378813332] Critical : [broker-1] I got an unrecoverable error. I have to exit
    2013-09-10 13:42:12,530 [1378813332] Critical : [broker-1] You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
    2013-09-10 13:42:12,531 [1378813332] Critical : [broker-1] Back trace of it: Traceback (most recent call last):
     File "/usr/lib/python2.7/site-packages/shinken/daemons/brokerdaemon.py", line 685, in main
      self.do_mainloop()
     File "/usr/lib/python2.7/site-packages/shinken/daemon.py", line 243, in do_mainloop
      self.do_loop_turn()
     File "/usr/lib/python2.7/site-packages/shinken/daemons/brokerdaemon.py", line 578, in do_loop_turn
      self.get_new_broks(type='poller')
     File "/usr/lib/python2.7/site-packages/shinken/daemons/brokerdaemon.py", line 326, in get_new_broks
      logger.error(''.join(Pyro.util.getPyroTraceback(x)))
     File "/usr/lib/python2.7/site-packages/Pyro4/util.py", line 34, in getPyroTraceback
      raise TypeError("invalid argument: ex_type should be an exception type, or just supply no arguments at all")
    and for the arbiter
    Warning : Missing satellite broker for configuration 0:
    Any idea ?
    Cédric LELU
    Shinken 1.4 on Fedora 18
    Académie de Besancon
    France

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

    Re: WebUI : wrong password

    Seems that you mixed shnken version isn't it?
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    Re: WebUI : wrong password

    did you add anything to the shinken-specific.cfg ?
    and what do you see if you run
    Code:
    /etc/init.d/shinken status

  4. #4
    Junior Member
    Join Date
    Sep 2013
    Location
    France
    Posts
    15

    Re: WebUI : wrong password

    For me, i did not mix different versions of shinken... I install it by yum install on fedora...
    rpm -qva | grep shinken
    shinken-broker-1.4-1.fc18.noarch
    shinken-1.4-1.fc18.noarch
    shinken-poller-1.4-1.fc18.noarch
    shinken-arbiter-1.4-1.fc18.noarch
    shinken-scheduler-1.4-1.fc18.noarch
    shinken-receiver-1.4-1.fc18.noarch
    shinken-reactionner-1.4-1.fc18.noarch
    First I install it on version 1.4.0... after that I saw the problem, and I have made an update, thinking it could resolv the problem...

    I can't make any /etc/init.d/shinken status
    but
    Code:
    for i in arbiter poller reactionner scheduler broker receiver; do systemctl status shinken-$i.service;
    > done
    shinken-arbiter.service - Shinken Arbiter
      Loaded: loaded (/usr/lib/systemd/system/shinken-arbiter.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:31 CEST; 24h ago
     Process: 504 ExecStart=/usr/sbin/shinken-arbiter -d -c /etc/shinken/nagios.cfg -c /etc/shinken/shinken-specific.cfg (code=exited, status=0/SUCCESS)
     Main PID: 619 (python)
      CGroup: name=systemd:/system/shinken-arbiter.service
          ??619 python /usr/sbin/shinken-arbiter -d -c /etc/shinken/nagios.c...
          ??640 python /usr/sbin/shinken-arbiter -d -c /etc/shinken/nagios.c...
          ??647 python /usr/sbin/shinken-arbiter -d -c /etc/shinken/nagios.c...
    
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:30 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:31 shinken.in.ac-besancon.fr shinken-arbiter[504]: [1378823010...
    sept. 10 16:23:31 shinken.in.ac-besancon.fr systemd[1]: Started Shinken Arbiter.
    shinken-poller.service - Shinken Poller
      Loaded: loaded (/usr/lib/systemd/system/shinken-poller.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:27 CEST; 24h ago
     Process: 510 ExecStart=/usr/sbin/shinken-poller -d -c /etc/shinken/pollerd.ini (code=exited, status=0/SUCCESS)
     Main PID: 578 (python)
      CGroup: name=systemd:/system/shinken-poller.service
          ?? 578 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
          ?? 579 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
          ??1629 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
          ??1636 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
          ??1644 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
          ??1681 python /usr/sbin/shinken-poller -d -c /etc/shinken/pollerd....
    
    sept. 10 16:23:24 shinken.in.ac-besancon.fr systemd[1]: Starting Shinken Poll...
    sept. 10 16:23:27 shinken.in.ac-besancon.fr systemd[1]: Started Shinken Poller.
    shinken-reactionner.service - Shinken Reactionner
      Loaded: loaded (/usr/lib/systemd/system/shinken-reactionner.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:27 CEST; 24h ago
     Process: 505 ExecStart=/usr/sbin/shinken-reactionner -d -c /etc/shinken/reactionnerd.ini (code=exited, status=0/SUCCESS)
     Main PID: 571 (python)
      CGroup: name=systemd:/system/shinken-reactionner.service
          ?? 571 python /usr/sbin/shinken-reactionner -d -c /etc/shinken/re...
          ?? 584 python /usr/sbin/shinken-reactionner -d -c /etc/shinken/re...
          ??23084 python /usr/sbin/shinken-reactionner -d -c /etc/shinken/re...
    
    sept. 11 15:56:38 shinken.in.ac-besancon.fr sendmail[16487]: r8BDuclM016487: ...
    sept. 11 15:56:38 shinken.in.ac-besancon.fr sendmail[16487]: r8BDuclM016487: ...
    sept. 11 15:58:14 shinken.in.ac-besancon.fr sendmail[16614]: r8BDwEP0016614: ...
    sept. 11 15:58:14 shinken.in.ac-besancon.fr sendmail[16614]: r8BDwEP0016614: ...
    sept. 11 15:58:14 shinken.in.ac-besancon.fr sendmail[16617]: r8BDwE6L016617: ...
    sept. 11 15:58:14 shinken.in.ac-besancon.fr sendmail[16617]: r8BDwE6L016617: ...
    sept. 11 15:58:55 shinken.in.ac-besancon.fr sendmail[16676]: r8BDwtLA016676: ...
    sept. 11 15:58:55 shinken.in.ac-besancon.fr sendmail[16676]: r8BDwtLA016676: ...
    sept. 11 15:58:55 shinken.in.ac-besancon.fr sendmail[16679]: r8BDwttO016679: ...
    sept. 11 15:58:55 shinken.in.ac-besancon.fr sendmail[16679]: r8BDwttO016679: ...
    shinken-scheduler.service - Shinken Scheduler
      Loaded: loaded (/usr/lib/systemd/system/shinken-scheduler.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:27 CEST; 24h ago
     Process: 511 ExecStart=/usr/sbin/shinken-scheduler -d -c /etc/shinken/schedulerd.ini (code=exited, status=0/SUCCESS)
     Main PID: 574 (python)
      CGroup: name=systemd:/system/shinken-scheduler.service
          ??574 python /usr/sbin/shinken-scheduler -d -c /etc/shinken/schedu...
          ??583 python /usr/sbin/shinken-scheduler -d -c /etc/shinken/schedu...
    
    sept. 10 16:23:27 shinken.in.ac-besancon.fr systemd[1]: Started Shinken Sched...
    shinken-broker.service - Shinken Broker
      Loaded: loaded (/usr/lib/systemd/system/shinken-broker.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:27 CEST; 24h ago
     Process: 507 ExecStart=/usr/sbin/shinken-broker -d -c /etc/shinken/brokerd.ini (code=exited, status=0/SUCCESS)
     Main PID: 577 (python)
      CGroup: name=systemd:/system/shinken-broker.service
          ??577 python /usr/sbin/shinken-broker -d -c /etc/shinken/brokerd.i...
          ??884 python /usr/sbin/shinken-broker -d -c /etc/shinken/brokerd.i...
    
    sept. 10 16:23:27 shinken.in.ac-besancon.fr systemd[1]: Started Shinken Broker.
    shinken-receiver.service - Shinken Receiver
      Loaded: loaded (/usr/lib/systemd/system/shinken-receiver.service; enabled)
      Active: active (running) since mar. 2013-09-10 16:23:27 CEST; 24h ago
     Process: 506 ExecStart=/usr/sbin/shinken-receiver -d -c /etc/shinken/receiverd.ini (code=exited, status=0/SUCCESS)
     Main PID: 572 (python)
      CGroup: name=systemd:/system/shinken-receiver.service
          ??572 python /usr/sbin/shinken-receiver -d -c /etc/shinken/receive...
          ??581 python /usr/sbin/shinken-receiver -d -c /etc/shinken/receive...
    
    sept. 10 16:23:24 shinken.in.ac-besancon.fr systemd[1]: Starting Shinken Rece...
    sept. 10 16:23:27 shinken.in.ac-besancon.fr systemd[1]: Started Shinken Recei...
    Cédric LELU
    Shinken 1.4 on Fedora 18
    Académie de Besancon
    France

  5. #5

    Re: WebUI : wrong password

    i'm not seeing anything strange in the log. but i'm not familliar with that log. so maybe naparuba can see something is wrong in it.

    i don't know if this works on fedora but the command you use to stop/start shinken can you try if it works with status as well ? or if you start the the shinken service does everything give an OK ?.
    or is this a clean install with no changes to any configuration ? if not did you edit the shinken-specific.cfg ?

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

    Re: WebUI : wrong password

    Which pyro lib version is it? (shinken-arbiter -v if I remember). I know that the versions > 4.18 are failing.
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7
    Junior Member
    Join Date
    Sep 2013
    Location
    France
    Posts
    15

    Re: WebUI : wrong password

    Yes the command fort the stop/start in new Fedora is systemctl stop/start/status shinken-service ... it seems the result is correct.

    I've made diffferent modification on the shinken-specific.cfg. I have added different poller (there are 4 for the moment).
    I've already made some modifications on the .ini ...

    The only errors I see on the différent logs is what I wrote on the first messages.

    Even the authentification seems to be OK on the logs...

    For the version of pyro :
    Code:
    /sbin/shinken-arbiter --version
    shinken-arbiter: 1.4   with pyro: 4.14
    Cédric LELU
    Shinken 1.4 on Fedora 18
    Académie de Besancon
    France

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

    Re: WebUI : wrong password

    And so all poller are on the same os, same shinken, python and pyro version?
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9

    Re: WebUI : wrong password

    did you uncomment the line host=0.0.0.0 in the schedulerd.ini ?
    and changed localhost to the IP or servername for the scheduler in shinken-specific.cfg.
    are these poller on the same device or are they on different machines ?
    if they are on a other device are you sure the arbiter is no longer running on it ?

    don't know if this is helping but this was the stuff which gave me trouble and i had the same problem with no longer being capable of logging in.

  10. #10
    Junior Member
    Join Date
    Sep 2013
    Location
    France
    Posts
    15

    Re: WebUI : wrong password

    Yes all the poller are on Fedora... With the latest update, there are surely not in the same version of shinken... I can make the update too...

    On the server
    on the schedulerd.ini : host=0.0.0.0 isn't commented
    on the shinken-specific :
    define scheduler{
    (...)
    address shinken.in.ac-besancon.fr
    }

    Only one poller is the same device than the scheduler and the broker. In fact, I have one device for shinken in the vlan for supervision. After that, I'm installing one poller in each vlan on my network.

    On the others device, the only open port is 7771.

    Do you think it's the scheduler fault ? I made some modifications and I only restart the broker...
    Cédric LELU
    Shinken 1.4 on Fedora 18
    Académie de Besancon
    France

Posting Permissions

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