Results 1 to 6 of 6

Thread: Problem with ToMerlindb_Mysql

  1. #1
    olfway
    Guest

    Problem with ToMerlindb_Mysql

    Hello!

    i'm using shinken 1.0, got exception on module loading:

    2012-03-02 16:01:54,855 [1330689714] [broker-1] [broker-1] Warning : The mod ToMerlindb_Mysql raise an exception: 'unicode' object has no attribute 'get_name', I'm tagging it to restart later

    2012-03-02 16:01:54,856 [1330689714] [broker-1] [broker-1] Exception type : <type 'exceptions.AttributeError'>

    2012-03-02 16:01:54,860 [1330689714] [broker-1] Back trace of this kill: Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/shinken/daemons/brokerdaemon.py", line 240, in manage_brok
    mod.manage_brok(b)
    File "/usr/lib/python2.7/dist-packages/shinken/modules/merlindb_broker/merlindb_broker.py", line 472, in manage_brok
    new_b = self.preprocess(type, b)
    File "/usr/lib/python2.7/dist-packages/shinken/modules/merlindb_broker/merlindb_broker.py", line 439, in preprocess
    val = f(val)
    File "/usr/lib/python2.7/dist-packages/shinken/modules/merlindb_broker/merlindb_broker.py", line 34, in get_objs_names
    s += get_obj_name(o)
    File "/usr/lib/python2.7/dist-packages/shinken/modules/merlindb_broker/merlindb_broker.py", line 38, in get_obj_name
    print "Get name on", obj.get_name()
    AttributeError: 'unicode' object has no attribute 'get_name'

  2. #2
    Senior Member
    Join Date
    Nov 2011
    Posts
    147

    Re: Problem with ToMerlindb_Mysql

    same here.
    We tried to change the charset ... no luck

  3. #3
    Administrator Frescha's Avatar
    Join Date
    May 2011
    Posts
    183

    Re: Problem with ToMerlindb_Mysql

    same log entries?

  4. #4
    Junior Member
    Join Date
    Mar 2012
    Posts
    1

    Re: Problem with ToMerlindb_Mysql

    when changing the character_set entry to "latin1" the log doesn't change.

  5. #5
    Senior Member
    Join Date
    Nov 2011
    Posts
    147

    Re: Problem with ToMerlindb_Mysql

    and yes, the exact same error message

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

    Re: Problem with ToMerlindb_Mysql

    It was a bug. I fixed it : https://github.com/naparuba/shinken/...d5f2ff4320252a

    I don't know about someone really using this module in production, so there is few tests on this module. If you planned on using Ninja (I don't see any other thing for merlindb) basic functions will works, but advanced ones should got problems.
    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
  •