Results 1 to 8 of 8

Thread: Warning! Invalid user or Password shinken version 2.0.2

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    5

    Warning! Invalid user or Password shinken version 2.0.2

    Bonjour,

    I've installed Shinken version 2.0.2
    I've followed online course n°2

    <code>
    ## Module: webui
    ## Loaded by: Broker
    # The Shinken web interface and integrated web server.
    define module {
    module_name webui
    module_type webui
    host 0.0.0.0 ; All interfaces = 0.0.0.0
    port 7767
    auth_secret Stonehenge_ME ; CHANGE THIS or someone could forge cookies
    allow_html_output 1 ; Allow or not HTML chars in plugins output.
    ; WARNING: Allowing can be a security issue.
    max_output_length 1024 ; Maximum output length for plugin output in webui
    manage_acl 1 ; Use contacts ACL. 0 allow actions for all.
    play_sound 0 ; Play sound on new non-acknowledged problems.
    login_text Welcome on Shinken WebUI ; Text in the login form.

    ## Modules for WebUI
    # - auth-htpasswd = Use an htpasswd file for auth backend.
    # - auth-active-directory = Use AD for auth backend (and retrieve photos).
    # - auth-cfg-password = Use the password setted in Shinken contact for auth.
    # - ui-pnp = Use PNP graphs in the UI.
    # - ui-graphite = Use graphs from Graphite time series database.
    # - mongodb = Save user preferences to a Mongodb database
    # - SQLitedb = Save user preferences to a SQLite database
    modules auth-cfg-password,ui-pnp,ui-graphite,auth-active-directory
    ## Advanced Options
    # Don't play with them on your production server
    #http_backend auto ; Choice is: auto, wsgiref or cherrypy if available
    #remote_user_enable 1 ; If WebUI is behind a web server which
    ; has already authentified user, enable.
    #remote_user_enable 2 ; Look for remote user in the WSGI environment
    ; instead of the HTTP header. This allows
    ; for fastcgi (flup) and scgi (flupscgi)
    ; integration, eg. with the apache modules.
    #remote_user_variable X_Remote_User ; Set to the HTTP header containing
    ; the authentificated user s name, which
    ; must be a Shinken contact.
    # If you got external plugins (pages) to load on webui
    #additional_plugins_dir
    </code>

    <code>
    #================================================= ==============================
    # BROKER (S1_Broker)
    #================================================= ==============================
    # Description: The broker is responsible for:
    # - Exporting centralized logs of all Shinken daemon processes
    # - Exporting status data
    # - Exporting performance data
    # - Exposing Shinken APIs:
    # - Status data
    # - Performance data
    # - Configuration data
    # - Command interface
    # http://www.shinken-monitoring.org/wi...objects/broker
    #================================================= ==============================
    define broker {
    broker_name broker-master
    address localhost
    port 7772
    spare 0

    ## Optional
    manage_arbiters 1 ; Take data from Arbiter. There should be only one
    ; broker for the arbiter.
    manage_sub_realms 1 ; Does it take jobs from schedulers of sub-Realms?
    timeout 3 ; Ping timeout
    data_timeout 120 ; Data send timeout
    max_check_attempts 3 ; If ping fails N or more, then the node is dead
    check_interval 60 ; Ping node every N seconds

    ## Modules
    # Default: None
    # Interesting modules that can be used:
    # - simple-log = just all logs into one file
    # - livestatus = livestatus listener
    # - ToNdodb_Mysql = NDO DB support
    # - npcdmod = Use the PNP addon
    # - graphite = Use a Graphite time series DB for perfdata
    # - webui = Shinken Web interface
    # - glpidb = Save data in GLPI MySQL database
    modules webui,graphite,livestatus,npcdmod

    # Enable https or not
    use_ssl 0
    # enable certificate/hostname check, will avoid man in the middle attacks
    hard_ssl_name_check 0

    ## Advanced
    realm All
    }
    </code>

    I added a new contact in admin.cfg file.
    I'd stopped try to use MongoDB since I'm on OpenVZ like I used now sqlitedb...
    I looke at logs but nothing usefull for WebUI.

    still this error!?
    Warning! Invalid user or Password

    shinken version 2.0.2

    What can I do or try to check or test?

    Thanks

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

    Re: Warning! Invalid user or Password shinken version 2.0.2

    It's an english only forum, if you want suport in french please witch to http://forums.monitoring-fr.org/index.php instead
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    5

    Re: Warning! Invalid user or Password shinken version 2.0.2

    Sorry so I translate since need more people

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

    Re: Warning! Invalid user or Password shinken version 2.0.2

    Can you launch the broker in debug mode and look at the auth modules pass? They will outut what they try to authentificate
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    May 2014
    Posts
    5

    Re: Warning! Invalid user or Password shinken version 2.0.2

    2014-05-27 11:20:14,722 [1401182414] Warning : Printing stored debug messages prior to our daemonization
    2014-05-27 11:20:14,727 [1401182414] Error : The HTTP daemon failed with the error Error: Sorry, the port 7772 is not free: [Errno 98] Address already in use, exiting
    2014-05-27 11:20:14,732 [1401182414] Error : Back trace of this error: Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 864, in http_daemon_thread
    self.http_daemon.run()
    File "/usr/local/lib/python2.6/dist-packages/shinken/http_daemon.py", line 283, in run
    self.srv.run()
    File "/usr/local/lib/python2.6/dist-packages/shinken/http_daemon.py", line 123, in run
    raise PortNotFree(msg)
    PortNotFree: Error: Sorry, the port 7772 is not free: [Errno 98] Address already in use

    I get these even after a shinken restart from shinken account!?

    and a netstat -tapenl|grep python display this:

    tcp 0 0 0.0.0.0:7772 0.0.0.0:* LISTEN 1001 159131729 2331/python
    tcp 0 0 0.0.0.0:7773 0.0.0.0:* LISTEN 1001 213288652 2738/python
    tcp 0 0 127.0.0.1:58654 0.0.0.0:* LISTEN 1001 213296331 4463/python
    tcp 0 0 127.0.0.1:50017 0.0.0.0:* LISTEN 1001 213286538 2274/python
    tcp 0 0 127.0.0.1:42882 0.0.0.0:* LISTEN 1001 213224462 20201/python
    tcp 0 0 127.0.0.1:53199 0.0.0.0:* LISTEN 1001 213286748 2347/python
    tcp 0 0 127.0.0.1:41521 0.0.0.0:* LISTEN 1001 213287900 2568/python
    tcp 0 0 127.0.0.1:37621 0.0.0.0:* LISTEN 1001 213287747 2506/python
    tcp 0 0 0.0.0.0:7767 0.0.0.0:* LISTEN 1001 159141521 2331/python
    tcp 0 0 127.0.0.1:35928 0.0.0.0:* LISTEN 1001 213288641 2739/python
    tcp 0 0 0.0.0.0:7768 0.0.0.0:* LISTEN 1001 213286542 2272/python
    tcp 0 0 0.0.0.0:7769 0.0.0.0:* LISTEN 1001 213287750 2504/python
    tcp 0 0 0.0.0.0:7771 0.0.0.0:* LISTEN 1001 213286754 2341/python
    tcp 0 0 127.0.0.1:40765 127.0.0.1:7773 ESTABLISHED 1001 213297444 4459/python
    tcp 0 0 127.0.0.1:7773 127.0.0.1:40765 ESTABLISHED 1001 213297446 2738/python
    tcp 0 0 127.0.0.1:7768 127.0.0.1:34211 ESTABLISHED 1001 213298511 2272/python
    tcp 78 0 127.0.0.1:34191 127.0.0.1:7768 CLOSE_WAIT 1001 213298091 5027/python
    tcp 0 0 127.0.0.1:35817 127.0.0.1:53199 ESTABLISHED 1001 213298454 5027/python
    tcp 78 0 127.0.0.1:35009 127.0.0.1:7768 CLOSE_WAIT 1001 213341937 4459/python
    tcp 0 0 127.0.0.1:35813 127.0.0.1:53199 ESTABLISHED 1001 213298410 2341/python
    tcp 0 0 127.0.0.1:7771 127.0.0.1:57264 ESTABLISHED 1001 213305287 2341/python
    tcp 0 0 127.0.0.1:34222 127.0.0.1:7768 ESTABLISHED 1001 213298614 2504/python
    tcp 0 0 127.0.0.1:39321 127.0.0.1:37621 ESTABLISHED 1001 213298558 2504/python
    tcp 0 0 127.0.0.1:37621 127.0.0.1:39325 ESTABLISHED 1001 213298575 2506/python
    tcp 0 0 127.0.0.1:58685 127.0.0.1:7769 ESTABLISHED 1001 213305306 4459/python
    tcp 0 0 127.0.0.1:7769 127.0.0.1:58685 ESTABLISHED 1001 213305307 2504/python
    tcp 0 0 127.0.0.1:37621 127.0.0.1:39321 ESTABLISHED 1001 213298538 2506/python
    tcp 0 0 127.0.0.1:39325 127.0.0.1:37621 ESTABLISHED 1001 213298606 5104/python
    tcp 78 0 127.0.0.1:34194 127.0.0.1:7768 CLOSE_WAIT 1001 213298143 5104/python
    tcp 0 0 127.0.0.1:53199 127.0.0.1:35813 ESTABLISHED 1001 213298387 2347/python
    tcp 0 0 127.0.0.1:53199 127.0.0.1:35817 ESTABLISHED 1001 213298438 2347/python
    tcp 0 0 127.0.0.1:7772 127.0.0.1:55685 CLOSE_WAIT 1001 159131771 2331/python
    tcp 0 0 127.0.0.1:41668 127.0.0.1:47387 CLOSE_WAIT 1001 159141495 2331/python
    tcp 0 0 127.0.0.1:7768 127.0.0.1:34222 ESTABLISHED 1001 213298615 2272/python
    tcp 0 0 127.0.0.1:57264 127.0.0.1:7771 ESTABLISHED 1001 213305286 4459/python
    tcp 0 0 127.0.0.1:34211 127.0.0.1:7768 ESTABLISHED 1001 213298510 2341/python
    tcp6 0 0 ::1:7770 :::* LISTEN 1001 213296355 4459/python

    Again a /etc/init.d/shinken-broker -d restart give this:

    2014-05-27 11:29:46,819 [1401182986] Info : Using the local log file '/var/log/shinken/brokerd.log'
    2014-05-27 11:29:47,417 [1401182987] Warning : Printing stored debug messages prior to our daemonization
    2014-05-27 11:29:47,417 [1401182987] Debug : Successfully changed to workdir: /var/run/shinken
    2014-05-27 11:29:47,417 [1401182987] Debug : Opening pid file: /var/run/shinken/brokerd.pid
    2014-05-27 11:29:47,418 [1401182987] Debug : Redirecting stdout and stderr as necessary..
    2014-05-27 11:29:47,418 [1401182987] Debug : We are now fully daemonized pid=22379
    2014-05-27 11:29:47,421 [1401182987] Info : Starting HTTP daemon
    2014-05-27 11:29:47,516 [1401182987] Info : Modules directory: /var/lib/shinken/modules
    2014-05-27 11:29:47,717 [1401182987] Debug : The Arbiter uri it at None
    2014-05-27 11:29:47,717 [1401182987] Info : Waiting for initial configuration
    2014-05-27 11:29:47,816 [1401182987] Error : The HTTP daemon failed with the error Error: Sorry, the port 7772 is not free: [Errno 98] Address already in use, exiting
    2014-05-27 11:29:47,817 [1401182987] Error : Back trace of this error: Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 864, in http_daemon_thread
    self.http_daemon.run()
    File "/usr/local/lib/python2.6/dist-packages/shinken/http_daemon.py", line 283, in run
    self.srv.run()
    File "/usr/local/lib/python2.6/dist-packages/shinken/http_daemon.py", line 123, in run
    raise PortNotFree(msg)
    PortNotFree: Error: Sorry, the port 7772 is not free: [Errno 98] Address already in use
    2014-05-27 11:29:47,916 [1401182987] Debug : I'm process 22381 and I received signal 15
    2014-05-27 11:29:48,817 [1401182988] Info : [broker] Stopping all network connections
    2014-05-27 11:29:48,817 [1401182988] Debug : Closing <logging.handlers.TimedRotatingFileHandler instance at 0x1542560> local_log

    then I stop shinken and kill remaining python process (cause stil get 772 7767 close_wait port!?

    then I restart shinken

    and now

    2014-05-27 11:37:10,922 [1401183430] Warning : Printing stored debug messages prior to our daemonization
    2014-05-27 11:37:51,020 [1401183471] Warning : [broker-master] Importing module auth-pam: No module named simplepam
    2014-05-27 11:37:51,426 [1401183471] Error : [broker-master] The module npcdmod raised an exception npcdmod: An error occurred process your config file. Check your perfdata_file or perfdata_spool_dir, I remove it!
    2014-05-27 11:37:51,529 [1401183471] Error : [broker-master] Back trace of this remove: Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/shinken/modulesmanager.py", line 191, in get_instances
    inst = module.get_instance(mod_conf)
    File "/var/lib/shinken/modules/npcdmod/module.py", line 56, in get_instance
    instance = Npcd_broker(plugin, config_file, perfdata_file, perfdata_spool_dir, perfdata_spool_filename, sleep_time)
    File "/var/lib/shinken/modules/npcdmod/module.py", line 77, in __init__
    raise Exception('npcdmod: An error occurred process your config file. Check your perfdata_file or perfdata_spool_dir&#039
    Exception: npcdmod: An error occurred process your config file. Check your perfdata_file or perfdata_spool_dir
    2014-05-27 11:37:51,618 [1401183471] Error : [broker-master] [Graphite broker] Graphite Carbon instance network socket! IOError:[Errno 111] Connection refused
    2014-05-27 11:37:51,619 [1401183471] Error : [broker-master] The instance graphite raised an exception [Errno 111] Connection refused, I remove it!
    2014-05-27 11:37:51,622 [1401183471] Error : [broker-master] Back trace of this remove: Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/shinken/modulesmanager.py", line 158, in try_instance_init
    inst.init()
    File "/var/lib/shinken/modules/graphite/module.py", line 89, in init
    self.con.connect((self.host, self.port))
    File "<string>", line 1, in connect
    error: [Errno 111] Connection refused
    2014-05-27 11:37:51,622 [1401183471] Warning : [broker-master] The module 'graphite' failed to init, I will try to restart it later
    2014-05-27 11:37:52,421 [1401183472] Warning : Importing module auth-pam: No module named simplepam
    2014-05-27 11:37:52,628 [1401183472] Warning : Loading plugins: No module named bottle
    2014-05-27 11:37:53,121 [1401183473] Warning : Importing module auth-pam: No module named simplepam
    2014-05-27 11:37:53,130 [1401183473] Warning : Importing module auth-pam: No module named simplepam
    2014-05-27 11:37:53,134 [1401183473] Warning : The module type logstore-sqlite for LogStore was not found in modules!

    Stil can't login

    So I try

    pip install simplepam

    Downloading/unpacking simplepam
    Downloading simplepam-0.1.5.tar.gz
    In the tar file /tmp/pip-yXNL6r-unpack/simplepam-0.1.5.tar.gz the member simplepam-0.1.5/README is invalid: 'NoneType' object has no attribute 'isreg'
    Running setup.py egg_info for package simplepam
    Installing collected packages: simplepam
    Running setup.py install for simplepam
    Successfully installed simplepam
    Cleaning up...

    I do a shinken restart

    Same issue and more error on other module like logstore-sqlite, etc

  6. #6
    Junior Member
    Join Date
    May 2014
    Posts
    5

    Re: Warning! Invalid user or Password shinken version 2.0.2

    So I try a pip install shinken --upgrade and Bingo as there is a release it's now ok(since now) after some modules reinstall.

    Perhaps is there an issue when installing quite all modules one by one and at least a restart???

    Seems this PB solve for me now!?

    I'll try now to install other livestatus, npcdmod, etc. Hope then

  7. #7
    Ich kenne dieses Ding und nutze es bereits im dritten Monat. Du weißt, es ist wirklich gut. Du kannst es hier kaufen kamagra effervescent 100 mg. Es hilft mir sehr in meinem Leben.

  8. #8
    Junior Member
    Join Date
    Sep 2019
    Posts
    4
    We should not be worried about the power or resources when completing tasks. When you decide on something, god provides you with enough power and resources to complete that task. He never puts pressure more than you can afford. You can find such quotes at edubirdie reviews that I am sure that you would like.

Posting Permissions

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