Results 1 to 9 of 9

Thread: Thruk without notifications list

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Thruk without notifications list

    Hi,
    I am using Shinken with Thruk frontend and a MongoDB backend. I can see event log, alerts ... but the "Notifications" page is empty, I can see the notifications in event log but not in the dedicated page.

    Any idea ?


    Softwares on server:
    OS RHEL 6.3
    Shinken 1.2.3
    Python 2.6.6
    pymongo 2.1.1
    pymongo-gridfs 2.1.1
    mongo 2.2.3
    THRUK 1.62


    Shinken configuration:
    Code:
    define module {
      module_name   Livestatus
      module_type   livestatus
      host      *      ; * = listen on all configured IP addresses
      port      50000    ; port to listen
      socket     /usr/local/shinken/var/rw/live ; If a Unix socket is required
      modules     mongologs
    }
    
    define module {
      module_name   mongologs
      module_type   logstore_mongodb
      mongodb_uri   mongodb://xxxxx:27017,yyyyy:27017
      replica_set monitor
    }


    Thruk_local.conf:
    Code:
    shown_inline_pnp = 0
    
    use_frames     = 0
    
    default_theme    = Classic
    
    group_paging_overview = *5, 10, 100, all
    
    statusmap_default_type  = circle
    statusmap_default_groupby = parent
    
    enable_shinken_features = 1
    
    <priorities>
     5  = Business Critical
     4  = Top Production
     3  = Production
     2  = Standard
     1  = Testing
     0  = Development
    </priorities>
    
    <Component Thruk::Backend>
      <peer>
        name  = External Shinken
        type  = livestatus
        <options>
          peer = 127.0.0.01:50000
          resource_file = /etc/shinken/resource.cfg
        </options>
        <configtool>
          core_conf   = /etc/shinken/nagios.cfg
          obj_check_cmd = /usr/local/shinken/bin/shinken-arbiter -v -c /etc/shinken/nagios.cfg -c /etc/shinken/shinken-specific.cfg
          obj_reload_cmd = /etc/init.d/shinken-arbiter restart
        </configtool>
    
      </peer>
    </Component>
    
    <Component Thruk::Plugin::Panorama>
      state_provider = cookie
    </Component>

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

    Re: Thruk without notifications list

    Try to put the scheduler log_level to DEBUG in the schedulerd.ini to see if you saw logs then.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Senior Member
    Join Date
    Aug 2011
    Posts
    201

    Re: Thruk without notifications list

    Hi Nap
    Just a question about this
    [quote author=naparuba link=topic=774.msg4301#msg4301 date=1360739271]
    Try to put the scheduler log_level to DEBUG in the schedulerd.ini to see if you saw logs then.
    [/quote]

    As I understood, we can (or must) use sqlite or mongo DB to store logs, because using text files is too slow..
    But if we set this log to debug (needed to send notifications from external backend) in fact we're creating a really big text file at schedulerd.log with all this data... .. so I don't understand very well this.. there is not double job when storing both DB and schedulerd.log??

    thanks

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

    Re: Thruk without notifications list

    There is a known bug that make the scheduelr drop logs when you are using an old scheduled.init file (thanks a code regression.....). So here I'm trying to see if the full debug mode solve it, and if so, we can find the good level (will be INFO I think).
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Thruk without notifications list

    I have put the scheduler and broker in DEBUG mode, but no more success.

    Here the broker log when I try to access the notification page in Thruk:
    Code:
    2013-02-13 12:31:59,582 [1360755119] Debug :  [Livestatus Query Metainfo] ge_contains_filters: []
    2013-02-13 12:31:59,582 [1360755119] Debug :  [Livestatus Query Metainfo] unique_ge_contains_filters: []
    2013-02-13 12:31:59,583 [1360755119] Debug :  [Livestatus] Request duration 0.0025s
    2013-02-13 12:31:59,583 [1360755119] Debug :  [Livestatus Broker] Connection 16 is idle since 0 seconds (idle)
    2013-02-13 12:31:59,604 [1360755119] Debug :  [Livestatus Broker] Connection 16 is idle since 0 seconds (idle)
    2013-02-13 12:31:59,605 [1360755119] Debug :  [Livestatus Broker] Shutdown socket 16
    2013-02-13 12:31:59,627 [1360755119] Debug :  [Logstore MongoDB] Filter is [<function eq_filter at 0x3f4b500>, <function le_filter at 0x3f4bc80>, <function ge_filter at 0x3f4b758>]
    2013-02-13 12:31:59,627 [1360755119] Debug :  [Logstore MongoDB] and_elements <function <lambda> at 0x3f4bf50>
    2013-02-13 12:31:59,628 [1360755119] Debug :  [Livestatus Query Metainfo] I cannot cache this table log
    columns ['class', 'time', 'type', 'state', 'host_name', 'service_description', 'plugin_output', 'message', 'options', 'contact_name', 'command_name', 'state_type']
    stats_columns []
    filter_columns ['class', 'time']
    is_stats False
    is_cacheable False
    2013-02-13 12:31:59,629 [1360755119] Debug :  [Livestatus Query Metainfo] ge_contains_filters: ['time']
    2013-02-13 12:31:59,629 [1360755119] Debug :  [Livestatus Query Metainfo] unique_ge_contains_filters: ['time']
    2013-02-13 12:31:59,629 [1360755119] Debug :  [Logstore MongoDB] Filter is [<function le_filter at 0x3f4b1b8>, <function ge_filter at 0x3f4b320>, <function <lambda> at 0x3073ed8>]
    2013-02-13 12:31:59,630 [1360755119] Debug :  [Logstore MongoDB] and_elements <function <lambda> at 0x3f4b5f0>
    2013-02-13 12:31:59,630 [1360755119] Debug :  [Logstore MongoDB] Mongo filter is '$and' : [{ 'class' : 3 }, { 'time' : { '$lte' : 1360796400 } }, { 'time' : { '$gte' : 1360710000 } }]
    2013-02-13 12:31:59,630 [1360755119] Debug :  [LogstoreMongoDB] Mongo filter is {'$and': [{'class': 3}, {'time': {'$lte': 1360796400}}, {'time': {'$gte': 1360710000}}]}
    2013-02-13 12:31:59,637 [1360755119] Debug :  [Livestatus] Request duration 0.0111s
    2013-02-13 12:31:59,637 [1360755119] Debug :  [Livestatus Broker] Connection 17 is idle since 0 seconds (idle)
    2013-02-13 12:31:59,658 [1360755119] Debug :  [Livestatus Broker] Connection 17 is idle since 0 seconds (idle)
    2013-02-13 12:31:59,658 [1360755119] Debug :  [Livestatus Broker] Shutdown socket 17

  6. #6
    Senior Member
    Join Date
    Aug 2011
    Posts
    201

    Re: Thruk without notifications list

    Hi
    perhaps debug is too much for Thruk? and if you activate debug at scheduler daemon, info is not at schedulerd.log, it is into other file scheduler-debug.log

    I've this line at --shinken-folder--/etc/schedulerd.ini file
    "
    # accepted log level values= DEBUG,INFO,WARNING,ERROR,CRITICAL
    log_level=INFO
    "

    and Thruk reads well these events via Livestatus (not file access directly)

  7. #7
    Junior Member
    Join Date
    Jun 2011
    Posts
    21

    Re: Thruk without notifications list

    Hi,
    Thruk don't show notifications with scheduler in DEBUG or INFO mode. In "Event Log" I cant see notifications (see attached screenshot), but not in the dedicated "Notifications" page (see my first post).

    I don't know if this problem is in Shinken or Thruk, but if Thruk show notifications in event log I don't know qhy it can't show them in dedicated page :

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

    Re: Thruk without notifications list

    Hum.... I don't know here sorry
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9
    Senior Member
    Join Date
    Aug 2011
    Posts
    201

    Re: Thruk without notifications list

    Hi
    It is quite strange, since notifications are only one type of things at log... If you see all events at event log menu option, I don't know more :'(
    I would ask into Thruk forum, it is at Google groups.. Thruk developer (Sven) usually answers quickly asked questions..

    bye

Posting Permissions

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