shinken-monitoring / mod-logstore-mongodb

Shinken module for exporting logs to mongodb from the Livestatus module
GNU Affero General Public License v3.0
5 stars 10 forks source link

Database problem in mongologs ... #3

Closed mohierf closed 9 years ago

mohierf commented 10 years ago

Exception :

2014-03-09 08:11:17,903 [1394349077] Info : [Livestatus Broker] Go run
2014-03-09 08:11:17,958 [1394349077] Info : [Livestatus Broker] Livestatus query thread started
2014-03-09 08:11:17,958 [1394349077] Info : [Livestatus Broker] listening on tcp port: 50000
2014-03-09 08:11:18,154 [1394349078] Debug : [broker-master] Unlinking /var/run/shinken/brokerd.pid
2014-03-09 08:11:18,154 [1394349078] Debug : I'm process 22511 and I received signal 15
2014-03-09 08:11:18,682 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,683 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: 24x7;-1;1
2014-03-09 08:11:18,717 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,717 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: none;-1;0
2014-03-09 08:11:18,752 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,752 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: workhours;-1;0
2014-03-09 08:11:18,787 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,787 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: us-holidays;-1;0
2014-03-09 08:11:18,822 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,822 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: 8_22;-1;1
2014-03-09 08:11:18,858 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,858 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: Default;-1;0
2014-03-09 08:11:18,893 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,894 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: 24x7;-1;1
2014-03-09 08:11:18,929 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,929 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: WorkingDays;-1;1
2014-03-09 08:11:20,424 [1394349080] Debug : [broker-master] I'm process 22508 and I received signal 15
2014-03-09 08:11:20,424 [1394349080] Debug : I'm process 22511 and I received signal 15
2014-03-09 08:11:20,497 [1394349080] Debug : [Livestatus Broker] {}
2014-03-09 08:11:20,497 [1394349080] Warning : [Livestatus] Warning: The mod mongologs raise an exception: not all arguments converted during string formatting, I'm tagging it to restart later
2014-03-09 08:11:20,498 [1394349080] Debug : [Livestatus] Exception type: <type 'exceptions.TypeError'>
2014-03-09 08:11:20,499 [1394349080] Debug : Back trace of this kill: Traceback (most recent call last):
 File "/var/lib/shinken/modules/livestatus/module.py", line 461, in manage_lql_thread
 mod.manage_brok(b)
 File "/usr/local/lib/python2.7/dist-packages/shinken/basemodule.py", line 236, in manage_brok
 return manage(brok)
 File "/var/lib/shinken/modules/logstore-mongodb/module.py", line 241, in manage_log_brok
 logger.error("[LogStoreMongoDB] Databased error occurred:" % exp)
TypeError: not all arguments converted during string formatting
2014-03-09 08:11:20,512 [1394349080] Debug : [Livestatus Regenerator] Id by Hostname heap: {'shinken2': [62, 64, 66, 73], 'ek3k-cnam-0007': [90, 91, 92, 93, 94, 95, 96, 97, 98], u'ek3k-cnam-0002': [47, 48, 49, 63, 68, 71, 72, 74, 75], 'host_for_bp': [111], u'localhost': [112, 113, 114, 115, 116, 117], u'ksk-26000-001': [130, 136, 142, 148, 154, 118, 124], u'ksk-26000-002': [131, 137, 143, 149, 155, 119, 125], u'ksk-26000-003': [132, 138, 144, 150, 156, 120, 126], u'ksk-26000-004': [133, 139, 145, 151, 157, 121, 127], u'ksk-26000-005': [128, 134, 140, 146, 152, 158, 122], u'ksk-26000-006': [129, 135, 141, 147, 153, 159, 123], 'fvc318': [70, 76, 77, 78, 79, 82, 83, 84, 85]}
2014-03-09 08:11:20,531 [1394349080] Info : [LogStoreMongoDB] Next log rotation at Mon Mar 10 00:05:00 2014
mohierf commented 10 years ago

Simply occured once when restarting broker in debug mode ...

gst commented 9 years ago

Fixed.