herr_bpl
16-03-2006, 12:05
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 :D)
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
# 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..
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 :D)
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
# 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..