Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Thruk display 0 host and 0 services

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

    Re: Thruk display 0 host and 0 services

    Can you look at the broker logs in debug mode? The webUI will output why it can't find the user. It's quite verbose, but this one it can be useful
    No direct support by personal message. Please open a thread so everyone can see the solution

  2. #12
    Junior Member
    Join Date
    Apr 2013
    Posts
    14

    Re: Thruk display 0 host and 0 services

    Code:
    2013-04-16 14:04:36,177 [1366113876] Info :  Using the local log file 'brokerd.log'
    2013-04-16 14:04:36,183 [1366113876] Warning : Printing stored debug messages prior to our daemonization
    2013-04-16 14:04:36,183 [1366113876] Debug :  modulemanager file /usr/local/shinken/shinken/modulesmanager.pyc
    2013-04-16 14:04:36,183 [1366113876] Debug :  modulemanager absolute file /usr/local/shinken/shinken/modulesmanager.pyc
    2013-04-16 14:04:36,183 [1366113876] Debug :  Using modules path: /usr/local/shinken/shinken/modules
    2013-04-16 14:04:36,184 [1366113876] Debug :  Successfully changed to workdir: /usr/local/shinken/var
    2013-04-16 14:04:36,184 [1366113876] Debug :  Opening pid file: brokerd.pid
    2013-04-16 14:04:36,184 [1366113876] Debug :  Redirecting stdout and stderr as necessary..
    2013-04-16 14:04:36,184 [1366113876] Debug :  We are now fully daemonized :) pid=17218
    2013-04-16 14:04:36,199 [1366113876] Debug :  The Arbiter uri it at PYRO://0.0.0.0:7772/0a01324a433c1fceac58e12237a4d2c3a9
    2013-04-16 14:04:36,200 [1366113876] Info :  Waiting for initial configuration
    2013-04-16 14:04:50,920 [1366113890] Debug :  The arbiter asked me what I manage. It's {}
    2013-04-16 14:04:52,738 [1366113892] Debug :  [broker-1] [broker-1] Sending us configuration {'arbiters': {0: {'address': u'localhost', 'port': 7770, 'name': u'Arbiter-Master'}}, 'global': {'broker_name': u'broker-1', 'modules': [<shinken.objects.module.Module object at 0x17a08d0>, <shinken.objects.module.Module object at 0x17a0a50>, <shinken.objects.module.Module object at 0x17a0a90>], 'use_timezone': u'IT/Rome', 'satellitemap': {}, 'polling_interval': 1, 'manage_arbiters': True}, 'schedulers': {0: {'name': u'scheduler-1', 'instance_id': 0, 'address': u'localhost', 'active': True, 'push_flavor': 330111, 'port': 7768}}, 'pollers': {0: {'passive': False, 'name': u'poller-1', 'poller_tags': ['None'], 'instance_id': 0, 'reactionner_tags': [], 'address': u'localhost', 'active': True, 'port': 7771}}, 'reactionners': {0: {'passive': False, 'name': u'reactionner-1', 'poller_tags': [], 'instance_id': 0, 'reactionner_tags': ['None'], 'address': u'localhost', 'active': True, 'port': 7769}}}
    2013-04-16 14:04:52,739 [1366113892] Info :  [broker-1] We have our schedulers: {0: {'broks': {}, 'last_connection': 0, 'name': u'scheduler-1', 'uri': u'PYROLOC://localhost:7768/Broks', 'instance_id': 0, 'running_id': 0, 'address': u'localhost', 'active': True, 'push_flavor': 330111, 'port': 7768}}
    2013-04-16 14:04:52,739 [1366113892] Info :  [broker-1] We have our arbiters: {0: {'broks': {}, 'last_connection': 0, 'name': u'Arbiter-Master', 'uri': u'PYROLOC://localhost:7770/Broks', 'instance_id': 0, 'running_id': 0, 'address': u'localhost', 'port': 7770}}
    2013-04-16 14:04:52,739 [1366113892] Info :  [broker-1] We have our pollers: {0: {'broks': {}, 'passive': False, 'last_connection': 0, 'name': u'poller-1', 'poller_tags': ['None'], 'uri': u'PYROLOC://localhost:7771/Broks', 'instance_id': 0, 'reactionner_tags': [], 'running_id': 0, 'address': u'localhost', 'active': True, 'port': 7771}}
    2013-04-16 14:04:52,739 [1366113892] Info :  [broker-1] We have our reactionners: {0: {'broks': {}, 'passive': False, 'last_connection': 0, 'name': u'reactionner-1', 'poller_tags': [], 'uri': u'PYROLOC://localhost:7769/Broks', 'instance_id': 0, 'reactionner_tags': ['None'], 'running_id': 0, 'address': u'localhost', 'active': True, 'port': 7769}}
    2013-04-16 14:04:52,739 [1366113892] Info :  [broker-1] We received modules [<shinken.objects.module.Module object at 0x17a08d0>, <shinken.objects.module.Module object at 0x17a0a50>, <shinken.objects.module.Module object at 0x17a0a90>]
    2013-04-16 14:04:52,910 [1366113892] Info :  [broker-1] [Livestatus Broker] Get a Livestatus instance for plugin Livestatus
    2013-04-16 14:04:52,911 [1366113892] Debug :  [broker-1] Get a Simple log broker for plugin Simple-log
    2013-04-16 14:04:52,916 [1366113892] Info :  [broker-1] Trying to init module: Simple-log
    2013-04-16 14:04:52,916 [1366113892] Info :  [broker-1] I open the log file nagios.log
    2013-04-16 14:04:52,917 [1366113892] Info :  [broker-1] I correctly loaded the modules: [Livestatus,Simple-log,WebUI]
    2013-04-16 14:04:52,917 [1366113892] Info :  [broker-1] Trying to init module: Livestatus
    2013-04-16 14:04:52,921 [1366113892] Info :  [broker-1] [Livestatus Broker] Init of the Livestatus 'Livestatus'
    2013-04-16 14:04:52,921 [1366113892] Info :  [broker-1] Starting external module Livestatus
    2013-04-16 14:04:52,921 [1366113892] Info :  [broker-1] Starting external process for instance Livestatus
    2013-04-16 14:04:52,923 [1366113892] Info :  [broker-1] Livestatus is now started ; pid=17347
    2013-04-16 14:04:52,923 [1366113892] Info :  [broker-1] Trying to init module: WebUI
    2013-04-16 14:04:52,928 [1366113892] Info :  [Logstore SQLite] Get an LogStore Sqlite module for plugin logsqlite
    2013-04-16 14:04:52,929 [1366113892] Info :  [broker-1] Starting external module WebUI
    2013-04-16 14:04:52,929 [1366113892] Info :  [broker-1] Starting external process for instance WebUI
    2013-04-16 14:04:52,931 [1366113892] Info :  [broker-1] WebUI is now started ; pid=17356
    2013-04-16 14:04:52,932 [1366113892] Info :  [broker-1] Setting our timezone to IT/Rome
    2013-04-16 14:04:52,935 [1366113892] Debug :  [Active Directory UI] Get an Active Directory/OpenLdap UI module for plugin ActiveDir_UI
    2013-04-16 14:04:52,936 [1366113892] Debug :  [MongoDB Module]: Get Mongodb instance for plugin Mongodb
    2013-04-16 14:04:52,936 [1366113892] Info :  [Cfg Password UI] Get an CFG/Password UI module for plugin Cfg_password
    2013-04-16 14:04:52,936 [1366113892] Info :  Get an PNP UI module for plugin PNP_UI
    2013-04-16 14:04:52,936 [1366113892] Info :  Instantiate an Apache/Passwd UI module for plugin Apache_passwd
    2013-04-16 14:04:52,937 [1366113892] Info :  Trying to init module: ActiveDir_UI
    2013-04-16 14:04:52,937 [1366113892] Info :  Trying to init module: Mongodb
    2013-04-16 14:04:52,937 [1366113892] Info :  [Mongodb Module]: Try to open a Mongodb connection to mongodb://localhost/?safe=true:shinken
    2013-04-16 14:04:52,964 [1366113892] Error :  Mongodb Module: Error could not find master:
    2013-04-16 14:04:52,964 [1366113892] Error :  The instance Mongodb raised an exception could not find master, I remove it!
    2013-04-16 14:04:52,964 [1366113892] Error :  Back trace of this remove: Traceback (most recent call last):
     File "/usr/local/shinken/shinken/modulesmanager.py", line 131, in try_instance_init
      inst.init()
     File "/usr/local/shinken/shinken/modules/mongodb_generic.py", line 79, in init
      self.con = Connection(self.uri)
     File "/usr/lib/pymodules/python2.6/pymongo/connection.py", line 185, in __init__
      self.__find_master()
     File "/usr/lib/pymodules/python2.6/pymongo/connection.py", line 452, in __find_master
      raise AutoReconnect("could not find master")
    AutoReconnect: could not find master
    2013-04-16 14:04:52,965 [1366113892] Warning : The module 'Mongodb' failed to init, I will try to restart it later
    2013-04-16 14:04:52,965 [1366113892] Info :  Trying to init module: Cfg_password
    2013-04-16 14:04:52,965 [1366113892] Info :  [Cfg Password UI] Trying to initialize the CFG/Password auth
    2013-04-16 14:04:52,965 [1366113892] Info :  Trying to init module: PNP_UI
    2013-04-16 14:04:52,965 [1366113892] Info :  Trying to init module: Apache_passwd
    2013-04-16 14:04:52,965 [1366113892] Debug :  Connection test to the Apache/Passwd file
    2013-04-16 14:04:52,965 [1366113892] Info :  I correctly loaded the modules: [ActiveDir_UI,Mongodb,Cfg_password,PNP_UI,Apache_passwd]
    2013-04-16 14:04:52,983 Started new worker 139812198045440: Initial worker pool
    2013-04-16 14:04:52,983 Started new worker 139812189652736: Initial worker pool
    2013-04-16 14:04:52,983 Started new worker 139812181260032: Initial worker pool
    2013-04-16 14:04:52,984 Started new worker 139812172867328: Initial worker pool
    2013-04-16 14:04:52,984 Started new worker 139812164474624: Initial worker pool
    2013-04-16 14:04:52,985 Started new worker 139812156081920: Initial worker pool
    2013-04-16 14:04:52,985 Started new worker 139812147689216: Initial worker pool
    2013-04-16 14:04:52,985 Started new worker 139812139296512: Initial worker pool
    2013-04-16 14:04:52,985 Started new worker 139812130903808: Initial worker pool
    2013-04-16 14:04:52,986 Started new worker 139812122511104: Initial worker pool
    2013-04-16 14:04:53,931 [1366113893] Info :  Trying to init module: logsqlite
    2013-04-16 14:04:53,931 [1366113893] Info :  I correctly loaded the modules: [logsqlite]
    2013-04-16 14:04:53,931 [1366113893] Debug :  [Livestatus Broker] modulemanager file /usr/local/shinken/shinken/modulesmanager.pyc
    2013-04-16 14:04:53,931 [1366113893] Debug :  [Livestatus Broker] modulemanager absolute file /usr/local/shinken/shinken/modulesmanager.pyc
    2013-04-16 14:04:53,931 [1366113893] Debug :  [Livestatus Broker] Using modules path: /usr/local/shinken/shinken/modules
    2013-04-16 14:04:53,932 [1366113893] Info :  [Livestatus Broker] Go run
    2013-04-16 14:04:53,932 [1366113893] Info :  [Logstore SQLite] Open LiveStatusLogStoreSqlite ok : /usr/local/shinken/var/livelogs.db
    2013-04-16 14:04:53,933 [1366113893] Info :  [Livestatus Broker] Livestatus query thread started
    2013-04-16 14:04:53,933 [1366113893] Info :  [Livestatus Broker] listening on tcp port: 50000
    2013-04-16 14:04:53,955 [1366113893] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:04:53,956 [1366113893] Info :  [Logstore SQLite] at Tue Apr 16 14:04:53 2013 we rotate the database file
    2013-04-16 14:04:53,956 [1366113893] Info :  [Logstore SQLite] next rotation at Wed Apr 17 00:05:00 2013
    2013-04-16 14:04:54,972 [1366113894] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:04:55,985 [1366113895] Debug :  [Logstore SQLite] commit.....
    2013-04-16 12:04:56,140 [1366113896] Debug :  [broker-1] [broker-1] New running id for the scheduler scheduler-1: 1366113894.0 (was 0)
    2013-04-16 12:04:56,141 [1366113896] Debug :  [broker-1] [broker-1] I ask for a broks generation to the scheduler scheduler-1
    2013-04-16 12:04:56,141 [1366113896] Info :  [broker-1] Connection OK to the scheduler scheduler-1
    2013-04-16 12:04:56,356 [1366113896] Debug :  [broker-1] [broker-1] New running id for the poller poller-1: 1366113876.0 (was 0)
    2013-04-16 12:04:56,356 [1366113896] Info :  [broker-1] Connection OK to the poller poller-1
    2013-04-16 12:04:56,358 [1366113896] Debug :  [broker-1] [broker-1] New running id for the reactionner reactionner-1: 1366113876.0 (was 0)
    2013-04-16 12:04:56,358 [1366113896] Info :  [broker-1] Connection OK to the reactionner reactionner-1
    2013-04-16 12:04:56,358 [1366113896] Debug :  [broker-1] Begin Loop: managing old broks (0)
    2013-04-16 12:04:56,359 [1366113896] Debug :  [broker-1] External Queue len (Livestatus): 0
    2013-04-16 12:04:56,360 [1366113896] Debug :  [broker-1] External Queue len (WebUI): 0
    2013-04-16 14:04:57,002 [1366113897] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:04:58,017 [1366113898] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:04:59,034 [1366113899] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:00,050 [1366113900] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:01,065 [1366113901] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:02,080 [1366113902] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:03,095 [1366113903] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:04,111 [1366113904] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:05,127 [1366113905] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:06,141 [1366113906] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:07,158 [1366113907] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:08,172 [1366113908] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:09,188 [1366113909] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:10,203 [1366113910] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:11,219 [1366113911] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:12,237 [1366113912] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:13,254 [1366113913] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:14,271 [1366113914] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:15,286 [1366113915] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:16,303 [1366113916] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:17,318 [1366113917] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:18,333 [1366113918] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:19,349 [1366113919] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:20,364 [1366113920] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:21,379 [1366113921] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:22,394 [1366113922] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:23,410 [1366113923] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:24,425 [1366113924] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:25,440 [1366113925] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:26,456 [1366113926] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:27,471 [1366113927] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:28,489 [1366113928] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:29,508 [1366113929] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:30,522 [1366113930] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:31,537 [1366113931] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:32,552 [1366113932] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:33,569 [1366113933] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:34,584 [1366113934] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:35,599 [1366113935] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:36,615 [1366113936] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:37,630 [1366113937] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:38,645 [1366113938] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:39,660 [1366113939] Debug :  [Logstore SQLite] commit.....
    2013-04-16 14:05:40,388 Added task (0 tasks queued)
    2013-04-16 14:05:40,675 [1366113940] Debug :  [Logstore SQLite] commit.....




  3. #13
    Junior Member
    Join Date
    Apr 2013
    Posts
    14

    Re: Thruk display 0 host and 0 services

    Code:
    areareti@netserver09:~$ sudo less /usr/local/shinken/var/broker-debug.log 
    [1366115523] Info :  Shinken 1.2.4
    [1366115523] Info :  Copyright (c) 2009-2011:
    [1366115523] Info :  Gabes Jean (naparuba@gmail.com)
    [1366115523] Info :  Gerhard Lausser, Gerhard.Lausser@consol.de
    [1366115523] Info :  Gregory Starck, g.starck@gmail.com
    [1366115523] Info :  Hartmut Goebel, h.goebel@goebel-consult.de
    [1366115523] Info :  License: AGPL
    [1366115523] Info :  [Broker] Using working directory: /usr/local/shinken/var
    [1366115523] Warning : Stale pidfile exists (no or invalid or unreadable content). Reusing it.
    [1366115523] Info :  Initializing Pyro connection with host:0.0.0.0 port:7772 ssl:False
    [1366115523] Info :  Using the local log file 'brokerd.log'
    [1366115523] Warning : Printing stored debug messages prior to our daemonization
    [1366115523] Debug :  modulemanager file /usr/local/shinken/shinken/modulesmanager.pyc
    [1366115523] Debug :  modulemanager absolute file /usr/local/shinken/shinken/modulesmanager.pyc
    [1366115523] Debug :  Using modules path: /usr/local/shinken/shinken/modules
    [1366115523] Debug :  Successfully changed to workdir: /usr/local/shinken/var
    [1366115523] Debug :  Opening pid file: brokerd.pid
    [1366115523] Debug :  Redirecting stdout and stderr as necessary..
    [1366115523] Debug :  We are now fully daemonized :) pid=4350
    [1366115523] Debug :  The Arbiter uri it at PYRO://0.0.0.0:7772/0a01324a10f81fceaedc462257d04d204a
    [1366115523] Info :  Waiting for initial configuration
    ..............[1366115537] Debug :  The arbiter asked me what I manage. It's {}
    ..[1366115538] Debug :  [broker-1] [broker-1] Sending us configuration {'arbiters': {0: {'address': u'localhost', 'port': 7770, 'name': u'Arbiter-Master'}}, 'global': {'broker_name': u'broker-1', 'modules': [<shinken.objects.module.Module object at 0x1fab8d0>, <shinken.objects.module.Module object at 0x1faba50>, <shinken.objects.module.Module object at 0x1faba90>], 'use_timezone': u'IT/Rome', 'satellitemap': {}, 'polling_interval': 1, 'manage_arbiters': True}, 'schedulers': {0: {'name': u'scheduler-1', 'instance_id': 0, 'address': u'localhost', 'active': True, 'push_flavor': 499512, 'port': 7768}}, 'pollers': {0: {'passive': False, 'name': u'poller-1', 'poller_tags': ['None'], 'instance_id': 0, 'reactionner_tags': [], 'address': u'localhost', 'active': True, 'port': 7771}}, 'reactionners': {0: {'passive': False, 'name': u'reactionner-1', 'poller_tags': [], 'instance_id': 0, 'reactionner_tags': ['None'], 'address': u'localhost', 'active': True, 'port': 7769}}}
    [1366115538] Info :  [broker-1] We have our schedulers: {0: {'broks': {}, 'last_connection': 0, 'name': u'scheduler-1', 'uri': u'PYROLOC://localhost:7768/Broks', 'instance_id': 0, 'running_id': 0, 'address': u'localhost', 'active': True, 'push_flavor': 499512, 'port': 7768}} 
    [1366115538] Info :  [broker-1] We have our arbiters: {0: {'broks': {}, 'last_connection': 0, 'name': u'Arbiter-Master', 'uri': u'PYROLOC://localhost:7770/Broks', 'instance_id': 0, 'running_id': 0, 'address': u'localhost', 'port': 7770}} 
    [1366115538] Info :  [broker-1] We have our pollers: {0: {'broks': {}, 'passive': False, 'last_connection': 0, 'name': u'poller-1', 'poller_tags': ['None'], 'uri': u'PYROLOC://localhost:7771/Broks', 'instance_id': 0, 'reactionner_tags': [], 'running_id': 0, 'address': u'localhost', 'active': True, 'port': 7771}}
    [1366115538] Info :  [broker-1] We have our reactionners: {0: {'broks': {}, 'passive': False, 'last_connection': 0, 'name': u'reactionner-1', 'poller_tags': [], 'uri': u'PYROLOC://localhost:7769/Broks', 'instance_id': 0, 'reactionner_tags': ['None'], 'running_id': 0, 'address': u'localhost', 'active': True, 'port': 7769}}
    [1366115538] Info :  [broker-1] We received modules [<shinken.objects.module.Module object at 0x1fab8d0>, <shinken.objects.module.Module object at 0x1faba50>, <shinken.objects.module.Module object at 0x1faba90>] 
    [1366115538] Info :  [broker-1] [Livestatus Broker] Get a Livestatus instance for plugin Livestatus
    [1366115538] Debug :  [broker-1] Get a Simple log broker for plugin Simple-log
    Get a WebUI instancefor plugin WebUI
    SHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR ISSHARE DIR IS /usr/local/shinken/var/share
    Webui: using the backend auto
    [1366115538] Info :  [broker-1] Trying to init module: Simple-log
    [1366115538] Info :  [broker-1] I open the log file nagios.log
    [1366115538] Info :  [broker-1] I correctly loaded the modules: [Livestatus,Simple-log,WebUI]
    [1366115538] Info :  [broker-1] Trying to init module: Livestatus
    [1366115538] Info :  [broker-1] [Livestatus Broker] Init of the Livestatus 'Livestatus'
    [1366115538] Info :  [broker-1] Starting external module Livestatus
    [1366115538] Info :  [broker-1] Starting external process for instance Livestatus
    [1366115538] Info :  [broker-1] Livestatus is now started ; pid=4479
    [1366115538] Info :  [broker-1] Trying to init module: WebUI
    Init of the Webui 'WebUI'
    [1366115538] Info :  [broker-1] Starting external module WebUI
    [1366115538] Info :  [broker-1] Starting external process for instance WebUI
    [1366115538] Debug :  [Active Directory UI] Get an Active Directory/OpenLdap UI module for plugin ActiveDir_UI
    [1366115538] Debug :  [MongoDB Module]: Get Mongodb instance for plugin Mongodb
    [1366115538] Info :  [Cfg Password UI] Get an CFG/Password UI module for plugin Cfg_password
    [1366115538] Info :  Get an PNP UI module for plugin PNP_UI
    [1366115538] Info :  Instantiate an Apache/Passwd UI module for plugin Apache_passwd
    [1366115538] Info :  Trying to init module: ActiveDir_UI
    [1366115538] Info :  Trying to init module: Mongodb
    [1366115538] Info :  [Mongodb Module]: Try to open a Mongodb connection to mongodb://localhost/?safe=true:shinken
    [1366115539] Error :  Mongodb Module: Error could not find master:
    [1366115539] Error :  The instance Mongodb raised an exception could not find master, I remove it!
    [1366115539] Error :  Back trace of this remove: Traceback (most recent call last):
     File "/usr/local/shinken/shinken/modulesmanager.py", line 131, in try_instance_init
      inst.init()
     File "/usr/local/shinken/shinken/modules/mongodb_generic.py", line 79, in init
      self.con = Connection(self.uri)
     File "/usr/lib/pymodules/python2.6/pymongo/connection.py", line 185, in __init__
      self.__find_master()
     File "/usr/lib/pymodules/python2.6/pymongo/connection.py", line 452, in __find_master
      raise AutoReconnect("could not find master")
    AutoReconnect: could not find master
    
    [1366115539] Warning : The module 'Mongodb' failed to init, I will try to restart it later
    [1366115539] Info :  Trying to init module: Cfg_password
    [1366115539] Info :  [Cfg Password UI] Trying to initialize the CFG/Password auth
    [1366115539] Info :  Trying to init module: PNP_UI
    [1366115539] Info :  Trying to init module: Apache_passwd
    [1366115539] Debug :  Connection test to the Apache/Passwd file
    [1366115539] Info :  I correctly loaded the modules: [ActiveDir_UI,Mongodb,Cfg_password,PNP_UI,Apache_passwd]
    modulemanager file /usr/local/shinken/shinken/modulesmanager.pyc
    modulemanager absolute file /usr/local/shinken/shinken/modulesmanager.pyc
    Using modules path: /usr/local/shinken/shinken/modules
    Checking photo path /usr/local/shinken/var/photos
    Go run
    Loading plugin directory: /usr/local/shinken/shinken/webui/plugins
    Plugin dirs ['user', 'lookup', 'timeline', 'impacts', 'graphs', 'flow', 'dashboard', 'system', 'wall', 'mobile', 'forms', 'action', 'eltgroup', 'eue', 'ping', 'login', 'depgraph', 'worldmap', 'eltdetail', 'dummy', 'problems', 'threedimpacts']
    Try to load user
    Loaded module m <module 'shinken.webui.plugins.user.user' from '/usr/local/shinken/shinken/webui/plugins/user/user.pyc'>
    /usr/local/shinken/shinken/webui/plugins/user/user.pyc
    Try to load pages {<function save_pref at 0x2874938>: {'routes': ['/user/save_pref'], 'method': 'POST'}, <function save_common_pref at 0x28749b0>: {'routes': ['/user/save_common_pref'], 'method': 'POST'}}
    link function <function save_pref at 0x2874938> and route /user/save_pref method POST
    We create a lock version of <function save_pref at 0x2874938>
    The lock version is <function lock_version at 0x28748c0>
    link function <function save_common_pref at 0x28749b0> and route /user/save_common_pref method POST
    We create a lock version of <function save_common_pref at 0x28749b0>
    The lock version is <function lock_version at 0x2874a28>
    Try to load lookup
    Loaded module m <module 'shinken.webui.plugins.lookup.lookup' from '/usr/local/shinken/shinken/webui/plugins/lookup/lookup.pyc'>
    /usr/local/shinken/shinken/webui/plugins/lookup/lookup.pyc
    Try to load pages {<function lookup at 0x2874e60>: {'routes': ['/lookup/:name']}, <function lookup_post at 0x2874ed8>: {'routes': ['/lookup'], 'method': 'POST'}}
    link function <function lookup at 0x2874e60> and route /lookup/:name method GET
    We create a lock version of <function lookup at 0x2874e60>
    The lock version is <function lock_version at 0x2874de8>
    link function <function lookup_post at 0x2874ed8> and route /lookup method POST
    We create a lock version of <function lookup_post at 0x2874ed8>
    The lock version is <function lock_version at 0x2874f50>
    Try to load timeline
    Loaded module m <module 'shinken.webui.plugins.timeline.timeline' from '/usr/local/shinken/shinken/webui/plugins/timeline/timeline.pyc'>
    /usr/local/shinken/shinken/webui/plugins/timeline/timeline.pyc
    Try to load pages {<function get_page at 0x28bb2a8>: {'routes': ['/timeline'], 'static': True, 'view': 'timeline'}}
    Link function <function get_page at 0x28bb2a8> and view timeline
    link function <function get_page at 0x28bb0c8> and route /timeline method GET
    We create a lock version of <function get_page at 0x28bb0c8>
    The lock version is <function lock_version at 0x28bb230>
    Declaring static route /static/timeline/:path#.+#
    Try to load impacts
    Loaded module m <module 'shinken.webui.plugins.impacts.impacts' from '/usr/local/shinken/shinken/webui/plugins/impacts/impacts.pyc'>
    /usr/local/shinken/shinken/webui/plugins/impacts/impacts.pyc
    Try to load pages {<function show_impacts at 0x28bb848>: {'routes': ['/impacts'], 'static': True, 'view': 'impacts'}, <function impacts_widget at 0x28bb8c0>: {'widget_picture': '/static/impacts/img/widget_impacts.png', 'widget': ['dashboard'], 'widget_desc': '<h4>Impacts</h3>Show an aggregated view of the most business impacts!</h4>', 'widget_name': 'impacts', 'static': True, 'routes': ['/widget/impacts'], 'view': 'widget_impacts'}}
    Link function <function show_impacts at 0x28bb848> and view impacts
    link function <function show_impacts at 0x28bb938> and route /impacts method GET
    We create a lock version of <function show_impacts at 0x28bb938>
    The lock version is <function lock_version at 0x28bb758>
    Declaring static route /static/impacts/:path#.+#
    Link function <function impacts_widget at 0x28bb8c0> and view widget_impacts
    link function <function impacts_widget at 0x28bbb90> and route /widget/impacts method GET
    We create a lock version of <function impacts_widget at 0x28bbb90>
    The lock version is <function lock_version at 0x28bbaa0>
    Declaring static route /static/impacts/:path#.+#
    Loading widget {'base_uri': '/widget/impacts', 'widget_picture': '/static/impacts/img/widget_impacts.png', 'widget_name': 'impacts', 'widget_desc': '<h4>Impacts</h3>Show an aggregated view of the most business impacts!</h4>'}
    Try to load graphs
    Loaded module m <module 'shinken.webui.plugins.graphs.graphs' from '/usr/local/shinken/shinken/webui/plugins/graphs/graphs.pyc'>
    /usr/local/shinken/shinken/webui/plugins/graphs/graphs.pyc
    Try to load pages {<function get_graphs_widget at 0x28bbed8>: {'widget_picture': '/static/graphs/img/widget_graphs.png', 'widget': ['dashboard'], 'widget_desc': '<h4>Graphs</h4>\nShow the perfdata graph\n', 'widget_name': 'graphs', 'static': True, 'routes': ['/widget/graphs'], 'view': 'widget_graphs'}}
    Link function <function get_graphs_widget at 0x28bbed8> and view widget_graphs
    link function <function get_graphs_widget at 0x28bbf50> and route /widget/graphs method GET
    We create a lock version of <function get_graphs_widget at 0x28bbf50>
    The lock version is <function lock_version at 0x28bbe60>
    Declaring static route /static/graphs/:path#.+#
    Loading widget {'base_uri': '/widget/graphs', 'widget_picture': '/static/graphs/img/widget_graphs.png', 'widget_name': 'graphs', 'widget_desc': '<h4>Graphs</h4>\nShow the perfdata graph\n'}
    Try to load flow
    Loaded module m <module 'shinken.webui.plugins.flow.flow' from '/usr/local/shinken/shinken/webui/plugins/flow/flow.pyc'>
    /usr/local/shinken/shinken/webui/plugins/flow/flow.pyc
    Try to load pages {<function get_page at 0x28c8410>: {'routes': ['/flow/'], 'static': True, 'view': 'flow'}}
    Link function <function get_page at 0x28c8410> and view flow
    link function <function get_page at 0x28c8500> and route /flow/ method GET
    We create a lock version of <function get_page at 0x28c8500>
    The lock version is <function lock_version at 0x28c02a8>
    Declaring static route /static/flow/:path#.+#
    Try to load dashboard
    Loaded module m <module 'shinken.webui.plugins.dashboard.dashboard' from '/usr/local/shinken/shinken/webui/plugins/dashboard/dashboard.pyc'>
    /usr/local/shinken/shinken/webui/plugins/dashboard/dashboard.pyc
    Try to load pages {<function get_page at 0x28cb848>: {'routes': ['/dashboard'], 'static': True, 'view': 'dashboard'}, <function get_currently at 0x28cb8c0>: {'routes': ['/dashboard/currently'], 'static': True, 'view': 'currently'}}
    Link function <function get_page at 0x28cb848> and view dashboard
    link function <function get_page at 0x28cb938> and route /dashboard method GET
    We create a lock version of <function get_page at 0x28cb938>
    The lock version is <function lock_version at 0x28cb7d0>
    Declaring static route /static/dashboard/:path#.+#
    Link function <function get_currently at 0x28cb8c0> and view currently
    link function <function get_currently at 0x28cbb90> and route /dashboard/currently method GET
    We create a lock version of <function get_currently at 0x28cbb90>
    The lock version is <function lock_version at 0x28cbaa0>
    Declaring static route /static/dashboard/:path#.+#
    Try to load system
    Loaded module m <module 'shinken.webui.plugins.system.system' from '/usr/local/shinken/shinken/webui/plugins/system/system.pyc'>
    /usr/local/shinken/shinken/webui/plugins/system/system.pyc
    Try to load pages {<function system_page at 0x28cbf50>: {'routes': ['/system', '/system/'], 'static': True, 'view': 'system'}, <function system_widget at 0x28cf050>: {'widget_picture': '/static/system/img/widget_system.png', 'widget': ['dashboard'], 'widget_desc': '<h4>System state</h4>\nShow an aggregated view of all Shinken daemons.\n', 'widget_name': 'system', 'static': True, 'routes': ['/widget/system'], 'view': 'system_widget'}, <function show_log at 0x28cf0c8>: {'routes': ['/system/log'], 'static': True, 'view': 'log'}}
    Link function <function system_page at 0x28cbf50> and view system
    link function <function system_page at 0x28cf140> and route /system method GET
    We create a lock version of <function system_page at 0x28cf140>
    The lock version is <function lock_version at 0x28cbed8>
    link function <function lock_version at 0x28cbed8> and route /system/ method GET
    We create a lock version of <function lock_version at 0x28cbed8>
    The lock version is <function lock_version at 0x28cf1b8>
    Declaring static route /static/system/:path#.+#
    Link function <function system_widget at 0x28cf050> and view system_widget
    link function <function system_widget at 0x28cf488> and route /widget/system method GET
    We create a lock version of <function system_widget at 0x28cf488>
    The lock version is <function lock_version at 0x28cf398>
    Declaring static route /static/system/:path#.+#
    Loading widget {'base_uri': '/widget/system', 'widget_picture': '/static/system/img/widget_system.png', 'widget_name': 'system', 'widget_desc': '<h4>System state</h4>\nShow an aggregated view of all Shinken daemons.\n'}
    Link function <function show_log at 0x28cf0c8> and view log
    link function <function show_log at 0x28cf6e0> and route /system/log method GET
    We create a lock version of <function show_log at 0x28cf6e0>

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

    Re: Thruk display 0 host and 0 services

    Your mongodb module failed with the mongodb server connexion, but I don't think it can have an impact on the authentification.

    We need logs after this part, especially when you try to connect with the admin account.
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #15
    Junior Member
    Join Date
    Apr 2013
    Posts
    14

    Re: Thruk display 0 host and 0 services

    Code:
    2013-04-16 16:35:07,092 [1366122907] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:08,107 [1366122908] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:09,122 [1366122909] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:10,137 [1366122910] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:11,153 [1366122911] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:12,090 Added task (0 tasks queued)
    2013-04-16 16:35:12,091 [1366122912] Debug :  PASSWD: admin $apr1$83LCtn76$KyP5sFL2sfb/UrunFzc9C0 83LCtn76
    2013-04-16 16:35:12,093 [1366122912] Info :  Authentication success
    2013-04-16 16:35:12,140 Added task (0 tasks queued)
    2013-04-16 16:35:12,168 [1366122912] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:13,183 [1366122913] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:14,199 [1366122914] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:15,213 [1366122915] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:16,215 [1366122916] Debug :  [Logstore SQLite] commit.....
    2013-04-16 16:35:17,231 [1366122917] Debug :  [Logstore SQLite] commit.....

    strange: it seems succesfull,
    but it's not in the webui :

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

    Re: Thruk display 0 host and 0 services

    Can you try with another auth module like cfg_password? (just add the password to your contact definition and should be ok)
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #17
    Junior Member
    Join Date
    Apr 2013
    Posts
    14

    Re: Thruk display 0 host and 0 services

    goodmorning,

    there's already a password field in the default admin contact
    Code:
    define contact{
      use       generic-contact
      contact_name  admin
      email      shinken@localhost
      pager      0600000000  ; contact phone number
      password    admin
      is_admin    1
    have i to set something else?

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

    Re: Thruk display 0 host and 0 services

    Currently it is using the htpassw module, can you remove it from the WebUI module configuration?
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #19
    Junior Member
    Join Date
    Apr 2013
    Posts
    14

    Re: Thruk display 0 host and 0 services





    Code:
    define module {
     modules Apache_passwd, ActiveDir_UI, Cfg_password, PNP_UI, Mongodb
     manage_acl 1
     play_sound 0
     host 0.0.0.0
     module_type webui
     allow_html_output 0
     max_output_length 100
     module_name WebUI
     auth_secret CHANGE_ME
     port 7767
    }

    I have to remove "Cfg_password" ?

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

    Re: Thruk display 0 host and 0 services

    No, the apache one.
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

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