Closed ayaloulameche closed 6 years ago
Your hosts and services are visible in the WebUI ? If not, you have a communication problem between the UI and the Shinekn core ... have a look here: https://github.com/naparuba/shinken/issues/1970
Yes, everything works in Webui except this functionality.
Ok. If you do not have information in this page it means the the WebUI does not receive the daemons status broks ... any log in the broker log file ?
This is the log of the broker :
[1537454957] INFO: [Shinken] Shinken 2.4.3
[1537454957] INFO: [Shinken] Copyright (c) 2009-2014:
[1537454957] INFO: [Shinken] Gabes Jean (naparuba@gmail.com)
[1537454957] INFO: [Shinken] Gerhard Lausser, Gerhard.Lausser@consol.de
[1537454957] INFO: [Shinken] Gregory Starck, g.starck@gmail.com
[1537454957] INFO: [Shinken] Hartmut Goebel, h.goebel@goebel-consult.de
[1537454957] INFO: [Shinken] License: AGPL
[1537454957] INFO: [Shinken] [Broker] Using working directory: /var/run/shinken
[1537454957] INFO: [Shinken] Trying to initialize additional groups for the daemon
[1537454957] INFO: [Shinken] Stale pidfile exists at invalid literal for int() with base 10: '' (/var/run/shinken/brokerd.pid). Reusing it.
[1537454957] INFO: [Shinken] Opening HTTP socket at http://0.0.0.0:7772
[1537454957] INFO: [Shinken] Initializing a wsgiref backend with 16 threads
[1537454957] INFO: [Shinken] Using the local log file '/var/log/shinken/brokerd.log'
[1537454957] INFO: [Shinken] Printing stored debug messages prior to our daemonization
[1537454957] INFO: [Shinken] Successfully changed to workdir: /var/run/shinken
[1537454957] INFO: [Shinken] Opening pid file: /var/run/shinken/brokerd.pid
[1537454957] INFO: [Shinken] Redirecting stdout and stderr as necessary..
[1537454957] INFO: [Shinken] We are now fully daemonized :) pid=21330
[1537454957] INFO: [Shinken] Modules directory: /var/lib/shinken/modules
[1537454957] INFO: [Shinken] Starting HTTP daemon
[1537454957] INFO: [Shinken] Modules directory: /var/lib/shinken/modules
[1537454957] INFO: [Shinken] Using a 16 http pool size
[1537454957] INFO: [Shinken] Waiting for initial configuration
[1537454968] INFO: [broker-master] We have our schedulers: {0: {'broks': {}, 'data_timeout': 120, 'name': u'scheduler-qualdev', 'last_connection': 0, 'hard_ssl_name_check': True, 'uri': u'http://serverq1:7768/', 'instance_id': 2, 'running_id': 0, 'timeout': 3, 'address': u'serverq1', 'active': True, 'use_ssl': False, 'push_flavor': 673653, 'port': 7768}, 1: {'broks': {}, 'data_timeout': 120, 'name': u'scheduler-net', 'last_connection': 0, 'hard_ssl_name_check': True, 'uri': u'http://serverp5:7768/', 'instance_id': 5, 'running_id': 0, 'timeout': 3, 'address': u'serverp5', 'active': True, 'use_ssl': False, 'push_flavor': 581561, 'port': 7768}, 2: {'broks': {}, 'data_timeout': 120, 'name': u'scheduler-prod', 'last_connection': 0, 'hard_ssl_name_check': True, 'uri': u'http://serverp3:7768/', 'instance_id': 3, 'running_id': 0, 'timeout': 3, 'address': u'serverp3', 'active': True, 'use_ssl': False, 'push_flavor': 705449, 'port': 7768}}
[1537454968] INFO: [broker-master] We have our arbiters: {0: {'broks': {}, 'last_connection': 0, 'name': u'arbiter-spare', 'hard_ssl_name_check': True, 'uri': u'http://serverp2:7770/', 'instance_id': 0, 'running_id': 0, 'address': u'serverp2', 'use_ssl': False, 'port': 7770}, 1: {'broks': {}, 'last_connection': 0, 'name': u'arbiter-master', 'hard_ssl_name_check': True, 'uri': u'http://serverp1:7770/', 'instance_id': 0, 'running_id': 0, 'address': u'serverp1', 'use_ssl': False, 'port': 7770}}
[1537454968] INFO: [broker-master] We have our pollers: {2: {'broks': {}, 'instance_id': 0, 'last_connection': 0, 'name': u'poller-prod-spare', 'poller_tags': ['None'], 'hard_ssl_name_check': True, 'uri': u'http://serverp4:7771/', 'passive': False, 'secret': '', 'reactionner_tags': [], 'running_id': 0, 'address': u'serverp4', 'active': True, 'use_ssl': False, 'api_key': '', 'port': 7771}, 3: {'broks': {}, 'instance_id': 0, 'last_connection': 0, 'name': u'poller-prod', 'poller_tags': ['None'], 'hard_ssl_name_check': True, 'uri': u'http://serverp3:7771/', 'passive': False, 'secret': '', 'reactionner_tags': [], 'running_id': 0, 'address': u'serverp3', 'active': True, 'use_ssl': False, 'api_key': '', 'port': 7771}}
[1537454968] INFO: [broker-master] We have our reactionners: {}
[1537454968] INFO: [broker-master] We received modules [
Here is the log part of the broker in debug mode when I try to access System/Status :
[1537449420] DEBUG: [broker-master] [WebUI] login_required, requested URL: /system [1537449420] DEBUG: [broker-master] [WebUI] get_url for 'Logout' [1537449420] DEBUG: [broker-master] [WebUI] get_url for 'GetLogin' [1537449420] DEBUG: [broker-master] [WebUI] get_url for 'SetLogin' [1537449420] DEBUG: [broker-master] [WebUI] login_required, getting user cookie ... [1537449420] DEBUG: [broker-master] [WebUI] user session: None [1537449420] DEBUG: [broker-master] [WebUI] user info: None [1537449420] DEBUG: [broker-master] [WebUI] user login: usertest [1537449420] DEBUG: [broker-master] [WebUI - datamanager] get_contact, name: usertest, user: None [1537449420] DEBUG: [broker-master] [WebUI - datamanager] get_contacts, name: usertest [1537449420] DEBUG: [broker-master] [WebUI - datamanager] got 86 contacts [1537449420] DEBUG: [broker-master] [WebUI] update current user: {'service_notifications_enabled': True, 'can_submit_commands': True, 'contact_name': u'usertest', 'id': 11, 'modified_attributes': 0L, 'password': 'NOPASSWORDSET', 'expert': True, 'downtimes': [], 'retain_status_information': True, 'service_notification_options': [''], 'hash': '', 'tags': [u'generic-contact'], 'address1': 'none', 'address2': 'none', 'address3': 'none', 'address4': 'none', 'address5': 'none', 'address6': 'none', 'customs': {}, 'contactgroups': [], 'configuration_warnings': [], 'pager': 'none', 'configuration_errors': [], 'notificationways': [<shinken.objects.notificationway.NotificationWay object at 0x7fdc14fa6410>], 'host_notifications_enabled': True, 'min_business_impact': 0, 'email': u'usertest@toto.com', 'instance_id': 3, 'alias': 'none', 'plus': {}, 'is_admin': True, 'host_notification_options': ['']} [1537449420] DEBUG: [broker-master] [WebUI-system] schedulers: [1537449420] DEBUG: [broker-master] [WebUI-system] brokers: [1537449420] DEBUG: [broker-master] [WebUI-system] reactionners: [1537449420] DEBUG: [broker-master] [WebUI-system] receivers: [1537449420] DEBUG: [broker-master] [WebUI-system] pollers: [1537449420] DEBUG: [broker-master] [WebUI-MongoDBPreferences] new parameter of not stored preference: bookmarks [1537449420] DEBUG: [broker-master] [WebUI - datamanager] search_hosts_and_services, search for type:service in 6056 items [1537449420] DEBUG: [broker-master] [WebUI - datamanager] search patterns: [('type', 'service')] [1537449420] DEBUG: [broker-master] [WebUI - datamanager] searching for type service [1537449420] DEBUG: [broker-master] [WebUI - datamanager] type:service, 5774 matching items
I install these python packages, thinking that it is related to my problem but no : pip install CherryPy pip install importlib pip install pbr pip install html
I am in HA configuration, so I have made a test. I stopped the Shinken master to switch on the Shinken Spare, and when I went on system > Status on the spare Webui, daemon status appear correctly. So, with a little search, I found that this issue is already referenced on the shinken forum : https://github.com/naparuba/shinken/issues/1814 I hope Shinken 3.0 will arrive soon...
Thanks for your help. Regards.
+1 @ayaloulameche : I did not remembered this problem that I raised a while ago ... indeed, you should not rely upon an upgrade of Shinken ... the project is almost dead now 😞
Hello,
When I go on System => Status, I got the message "No system information is available" (same message using Chrome or Firefox) :
I'm on : OS : Centos 7.5 Shinken : 2.4.3 Webui2 : 2.7.2
Installed Python Modules : anyjson 0.3.3 arrow 0.12.1 asn1crypto 0.24.0 backports.functools-lru-cache 1.5 backports.ssl-match-hostname 3.5.0.1 bcrypt 3.1.4 bottle 0.12.8 certifi 2018.4.16 cffi 1.11.5 chardet 3.0.4 configobj 4.7.2 cryptography 2.3.1 decorator 3.4.0 distribute 0.7.3 enum34 1.1.6 helper 2.4.2 idna 2.7 iniparse 0.4 ipaddress 1.0.16 meld3 1.0.2 netifaces 0.10.7 paramiko 2.4.1 passlib 1.7.1 perf 0.1 pip 10.0.1 ply 3.4 pyasn1 0.4.4 pycparser 2.18 pycrypto 2.6.1 pycurl 7.19.0 pygobject 3.22.0 pygpgme 0.3 pyliblzma 0.5.3 pymongo 3.7.1 PyNaCl 1.2.1 pyparsing 1.5.6 Pyro 3.16 python-dateutil 2.7.3 python-ldap 2.4.15 python-linux-procfs 0.4.9 pyudev 0.15 pyxattr 0.5.1 PyYAML 3.13 requests 2.19.1 schedutils 0.4 setuptools 0.9.8 Shinken 2.4.3 simplejson 3.16.0 six 1.11.0 slip 0.4.0 slip.dbus 0.4.0 supervisor 3.3.4 urlgrabber 3.10 urllib3 1.23 xlrd 1.1.0 xlutils 2.0.0 xlwt 1.3.0 yum-metadata-parser 1.1.4
When I launched daemons in Debug mode, I have no errors or warning. In the broker log, I have no results for WebUI-system : _DEBUG: [broker-master] [WebUI-system] schedulers: DEBUG: [broker-master] [WebUI-system] brokers: DEBUG: [broker-master] [WebUI-system] reactionners: DEBUG: [broker-master] [WebUI-system] receivers: DEBUG: [broker-master] [WebUI-system] pollers:__
The strange thing is that when I launch check_shinken2.py, I retrieve daemons informations : +----------------------------------------------------------------------------------------------------------+ | TYPE | NAME | STATUS | REALM | ATTEMPTS | SPARE | +---------------------------------------------------------------------------------------------------------- | reactionner | reactionner-master | alive | All | 0/3 | | | reactionner | reactionner-spare | alive | All | 0/3 | X | | broker | broker-spare | alive | All | 0/3 | X | | broker | broker-master | alive | All | 0/3 | | | arbiter | arbiter-spare | alive | | 0/3 | X | | arbiter | arbiter-master | alive | | 0/3 | | | scheduler | scheduler-prod | alive | PROD | 0/3 | | | scheduler | scheduler-prod-spare | alive | PROD | 0/3 | X | | receiver | receiver-spare | alive | All | 0/3 | X | | receiver | receiver-master | alive | All | 0/3 | | | poller | poller-prod-spare | alive | PROD | 0/3 | X | | poller | poller-prod | alive | PROD | 0/3 | |
I miss something but I don't know where...
Thanks for your help :)
Regards