Ad Widget

Collapse

PATCH: beginning work for logging info by components

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herr_bpl
    Junior Member
    • Jan 2006
    • 15

    #1

    PATCH: beginning work for logging info by components

    Hi.

    I needed to check why my pinger does not work, but when i set loglevel to debug, information is overhelming.. (like megabyte per 10secs.. I have lot of things to monitor )

    So i devised a little patch to be able to select components, about which you wish to get logged information.

    Following data should go to zabbix_server.conf
    Code:
    # Log components .. It is bitmap, so use precalculated sum for it..
    #LOG_COMPONENT_ALL              0
    #LOG_COMPONENT_ALERTER          1
    #LOG_COMPONENT_ESCALATOR        1 << 1 = 2
    #LOG_COMPONENT_HOUSEKEEPER      1 << 2 = 4
    #LOG_COMPONENT_PINGER           1 << 3 = 8
    #LOG_COMPONENT_POLLER           1 << 4 = 16
    #LOG_COMPONENT_TIMER            1 << 5 = 32
    #LOG_COMPONENT_TRAPPER          1 << 6 = 64
    #LOG_COMPONENT_UNSPECIFIED      1 << 16 = 65536
    # Defaults to LOG_COMPONENT_ALL
    LogComponents=8
    C files patch is attached for zabbix 1.1beta7

    Hope this is useful for someone..
    Attached Files
    Last edited by herr_bpl; 16-03-2006, 12:06. Reason: Wrong title line :$
Working...