Hi all!
I am trying zabbix as monitoring system on our community network in Italy ( ninux.org )
I am experiencing a big problem with the agent, our devices are embedded system with openwrt and ~16MB of ram so a have noticed rapidly of a memory leak on latest version of zabbix_agentd
as you can see here http://eigenlab.org/~gioacchino/Imma...emory_leak.png
the free memory on the device is slowly decreasing after starting zabbix agentd end grow up instantly when /etc/init.d/zabbix_agentd restart is runned
here more infos:
I am trying to run zabbix_agentd under valgrind on my workstation, but i didn't find a way to make it not detach
Any helps would be very appreciated!!
I am trying zabbix as monitoring system on our community network in Italy ( ninux.org )
I am experiencing a big problem with the agent, our devices are embedded system with openwrt and ~16MB of ram so a have noticed rapidly of a memory leak on latest version of zabbix_agentd
as you can see here http://eigenlab.org/~gioacchino/Imma...emory_leak.png
the free memory on the device is slowly decreasing after starting zabbix agentd end grow up instantly when /etc/init.d/zabbix_agentd restart is runned
here more infos:
Code:
root@OpenWrt:~# zabbix_agentd -V
Zabbix Agent (daemon) v1.8.11 (revision 26205) (20 March 2012)
Compilation time: Apr 5 2012 15:56:04
root@OpenWrt:~# ps ax
PID USER VSZ STAT COMMAND
1 root 1384 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
8 root 0 SW [async/mgr]
39 root 0 SW [sync_supers]
41 root 0 SW [bdi-default]
43 root 0 SW [kblockd/0]
71 root 0 SW [kswapd0]
72 root 0 SW [aio/0]
73 root 0 SW [crypto/0]
85 root 0 SW [mtdblockd]
91 root 0 SW [ar71xx-spi]
225 root 0 SW [ipolldevd]
278 root 0 SWN [jffs2_gcd_mtd4]
293 root 1376 S /bin/sh /etc/init.d/rcS S boot
294 root 1384 S init
296 root 1376 S logger -s -p 6 -t sysinit
308 root 1388 S syslogd -C16
310 root 1368 S klogd
324 root 780 S /sbin/hotplug2 --override --persistent --set-worker /
432 root 0 SW [events_nrt]
434 root 0 SW [cfg80211]
441 root 0 SW [khubd]
511 root 0 SW [phy0]
561 root 0 SW [bat_events]
670 root 1456 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd
848 root 1132 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -s -p 2
858 root 800 S /usr/bin/mini_snmpd -c public -i br-clients,wlan0-1 -
900 root 1380 S watchdog -t 5 /dev/watchdog
1424 root 1380 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.open
5043 zabbix 1584 S /usr/sbin/zabbix_agentd
5044 zabbix 1584 S /usr/sbin/zabbix_agentd
5045 zabbix 1844 S /usr/sbin/zabbix_agentd <--- JUST AFTER SOME MINUTER FROM RESTART
5046 zabbix 1592 S /usr/sbin/zabbix_agentd
5084 root 1204 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -s -p 2
5085 root 1388 S -ash
5140 root 1376 R ps ax
root@OpenWrt:~# cat /etc/zabbix/zabbix_agentd.conf
# This is config file for zabbix_agentd
# To get more information about ZABBIX, go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
# No spaces allowed. First entry is used for sending active checks.
# Note that hostnames must resolve hostname->IP address and
# IP address->hostname.
Server=zabbix.eigenlab.org
# Server port for sending active checks
#ServerPort=10051
# Unique hostname. Required for active checks.
Hostname=localhost
# Listen port. Default is 10050
#ListenPort=10050
# IP address to bind agent
# If missing, bind to all available IPs
#ListenIP=127.0.0.1
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
StartAgents=1
# How often refresh list of active checks. 2 minutes by default.
#RefreshActiveChecks=120
# Disable active checks. The agent will work in passive mode listening server.
#DisableActive=1
# Enable remote commands for ZABBIX agent. By default remote commands disabled.
#EnableRemoteCommands=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings
# 4 - information (default)
# 5 - for debugging (produces lots of information)
DebugLevel=3
# Name of PID file
PidFile=/var/run/zabbix/zabbix_agentd.pid
# Name of log file.
# If not set, syslog will be used
LogFile=/var/log/zabbix/zabbix_agentd.log
# Spend no more than Timeout seconds on processing
# Must be between 1 and 30
Timeout=3
####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=<key>,<shell command>
# Note that shell command must not return empty string or EOL only
#UserParameter=system.test,who|wc -l
### Set of parameter for monitoring MySQL server (v3.23.42 and later)
### Change -u<username> and add -p<password> if required
#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
#UserParameter=mysql.version,mysql -V
I am trying to run zabbix_agentd under valgrind on my workstation, but i didn't find a way to make it not detach
Any helps would be very appreciated!!
) - grabbing the one from 1.8.11 archive would be suggested
Comment