shinken-solutions / shinken

Flexible and scalable monitoring framework
http://www.shinken-monitoring.org
GNU Affero General Public License v3.0
1.13k stars 335 forks source link

Strange behavior after installation #1242

Open ghost opened 10 years ago

ghost commented 10 years ago

service shinken_scheduler onestart service shinken_poller onestart service shinken_broker onestart service shinken_reactionner onestart service shinken_receiver onestart

  1. Verifying the configuration

shinken-arbiter -v -c /usr/local/etc/shinken/shinken.cfg None [1404127267] WARNING: [Shinken] The following parameter(s) are not currently managed. [1404127267] WARNING: [Shinken] Unmanaged configuration statement, do you really need it? Ask for it on the developer mailinglist https://lists.sourceforge.net/lists/listinfo/shinken-devel or submit a pull request on the Shinken github ...

  1. Starting the arbiter service

/usr/local/bin/shinken-arbiter -c /usr/local/etc/shinken/shinken.cfg None TOTAL serializing in 0.00968599319458 Bottle server starting up (using CherryPyServer(ssl_key='', ssl_cert='', daemon_thread_pool_size=8, ca_cert='', use_ssl=False))... Listening on http://IP:7770/ Use Ctrl-C to quit.

Shutting down... GO FOR IT List to register :[('init', <bound method IForArbiter.init of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('api', <bound method IForArbiter.api of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('api_full', <bound method IForArbiter.api_full of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('do_not_run', <bound method IForArbiter.do_not_run of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_all_states', <bound method IForArbiter.get_all_states of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_config', <bound method IForArbiter.get_config of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_log_level', <bound method IForArbiter.get_log_level of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_objects_properties', <bound method IForArbiter.get_objects_properties of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_running_id', <bound method IForArbiter.get_running_id of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('get_satellite_list', <bound method IForArbiter.get_satellite_list of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('have_conf', <bound method IForArbiter.have_conf of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('ping', <bound method IForArbiter.ping of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('put_conf', <bound method IForArbiter.put_conf of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('set_log_level', <bound method IForArbiter.set_log_level of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('wait_new_conf', <bound method IForArbiter.wait_new_conf of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>), ('what_i_managed', <bound method IForArbiter.what_i_managed of <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750>>)] Registering api [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering api_full [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering do_not_run [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_all_states [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_config [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_log_level [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_objects_properties ['table'] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_running_id [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering get_satellite_list ['daemon_type'] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering have_conf ['magic_hash'] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering ping [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering put_conf ['conf'] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering set_log_level ['loglevel'] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering wait_new_conf [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> Registering what_i_managed [] <shinken.daemons.arbiterdaemon.IForArbiter object at 0x80898a750> [scheduler-master]What i managed raw value is {u'0': 7150} [reactionner-master]What i managed raw value is {u'0': 7150} [poller-master]What i managed raw value is {u'0': 7150} [broker-master]What i managed raw value is {u'0': 7150} [receiver-master]What i managed raw value is {u'0': 7150} PUT CONF SUCESS scheduler-master PUT CONF SUCESS reactionner-master PUT CONF SUCESS poller-master PUT CONF SUCESS broker-master PUT CONF SUCESS receiver-master PUT CONF SUCESS receiver-master ^CStopping all modules Stopping inter-process message ('Stopping daemon. Exiting',)

The same with wsgiref.

This is very strange because 2.0.1 worked without problems.

Any ideas?

Thanks in advance.

Seb-Solon commented 10 years ago

Where is the strange behavior? . Looks like you are runnin the arbiter with the command line and shut it down after.

ghost commented 10 years ago

It's the following.

On FreeBSD:

shinken-arbiter -v -c /usr/local/etc/shinken/shinken.cfg /usr/local/bin/shinken-arbiter -v -c /usr/local/etc/shinken/shinken.cfg None [ <- The None is the problem] [1404138082] WARNING: [Shinken] The following parameter(s) are not currently managed. [1404138082] WARNING: [Shinken] Unmanaged configuration statement, do you really need it? Ask for it on the developer mailinglist https://lists.sourceforge.net/lists/listinfo/shinken-devel or submit a pull request on the Shinken github

On Linux (pip install shinken)

/usr/bin/shinken-arbiter -v -c /etc/shinken/shinken.cfg [1404138271] Info : Shinken 2.0.3 [1404138271] Info : Copyright (c) 2009-2014: [1404138271] Info : Gabes Jean (naparuba@gmail.com) [1404138271] Info : Gerhard Lausser, Gerhard.Lausser@consol.de [1404138271] Info : Gregory Starck, g.starck@gmail.com [1404138271] Info : Hartmut Goebel, h.goebel@goebel-consult.de [1404138271] Info : License: AGPL ... [1404138272] Info : Number of hosts in the realm All: 140 (distributed in 140 linked packs) [1404138272] Debug : Trying to open the distribution file /var/lib/shinken/pack_distribution.dat [1404138272] Info : Saving the distribution file /var/lib/shinken/pack_distribution.dat [1404138272] Info : Total number of hosts : 140 [1404138272] Info : Things look okay - No serious problems were detected during the pre-flight check

Seb-Solon commented 10 years ago

So you dont have the Shinken header? This is basically the first line of the arbiter deamon :(

If you don't have it, maybe the logger is not initialized correctly.

ghost commented 10 years ago

Thanks. How can i initialize the logger?

Am 30.06.2014 19:00, schrieb Sébastien Coavoux:

So you dont have the Shinken header? This is basically the first line of the arbiter deamon :(

If you don't have it, maybe the logger is not initialized correctly.

— Reply to this email directly or view it on GitHub https://github.com/naparuba/shinken/issues/1242#issuecomment-47557036.