About “zabbix_agentd dead but subsys locked”
[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#/etc/init.d/zabbix_agentd status
zabbix_agentd dead but subsys locked

[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#/etc/init.d/zabbix_agentd status
zabbix_agentd dead but subsys locked

[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#locate subsys
/usr/share/doc/db4-devel-4.7.25/gsg_txn/C/lockingsubsystem.html
/usr/share/doc/db4-devel-4.7.25/gsg_txn/CXX/lockingsubsystem.html
/usr/share/doc/db4-devel-4.7.25/gsg_txn/JAVA/lockingsubsystem.html
/usr/src/kernels/2.6.32-358.el6.x86_64/include/linux/cgroup_subsys.h
/var/lock/subsys
/var/lock/subsys/crond
/var/lock/subsys/local
/var/lock/subsys/messagebus
/var/lock/subsys/network
/var/lock/subsys/rsyslog
/var/lock/subsys/sshd
/var/lock/subsys/zabbix_agentd

[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#rm /var/lock/subsys/zabbix_agentd 
rm: remove regular empty file `/var/lock/subsys/zabbix_agentd'? y


[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#/etc/init.d/zabbix_agentd start
zabbix_agentd [17939]: cannot open [/tmp/zabbix_agentd.log]: [13] Permission denied




[root@SRV-301082-vm01 /data/mysql/data] eth0 = 10.0.4.16
#cd /tmp/

[root@SRV-301082-vm01 /tmp] eth0 = 10.0.4.16
#ll
total 76
-rw-r--r-- 1 root root 451 Aug 12 09:31 jay.pl
-rw-r--r-- 1 root root 126 Aug 12 09:31 limits.conf.bak
-rw-r--r-- 1 root root 665 Aug 12 09:31 logrotate.conf.bak
lrwxrwxrwx 1 root root 27 Aug 12 09:32 mysql.sock -> /data/mysql/data/mysql.sock
-rw-r--r-- 1 root root 1140 Aug 12 09:31 profile.bak
-rwxr-xr-x 1 root root 832 Aug 12 09:34 rc.local
-rw-r--r-- 1 root root 81 Aug 12 09:32 resolv.conf.bak
-rw-r--r-- 1 root root 551 Aug 12 09:31 sysctl.conf.bak
-rw-r--r-- 1 root root 17553 Aug 12 09:33 sysctldump
-rw------- 1 root root 0 Aug 12 09:31 yum.log
-rw------- 1 root root 6794 Aug 12 09:31 yum_save_tx-2013-12-27-01-32_JkFDb.yumtx
-rw------- 1 root root 267 Aug 12 09:31 yum_save_tx-2014-11-25-15-11Xjt62m.yumtx
-rw------- 1 root root 267 Aug 12 09:31 yum_save_tx-2015-02-12-11-119r8rpz.yumtx
-rw------- 1 root root 267 Aug 12 09:34 yum_save_tx-2015-08-12-09-34ZBNxGf.yumtx
-rw-rw-r-- 1 mysql mysql 1063 Aug 12 09:31 zabbix_agentd.log
-rw-rw-r-- 1 mysql mysql 4 Aug 12 09:31 zabbix_agentd.pid

[root@SRV-301082-vm01 /tmp] eth0 = 10.0.4.16
#rm /tmp/zabbix_agentd.*
rm: remove regular file `/tmp/zabbix_agentd.log'? y
rm: remove regular file `/tmp/zabbix_agentd.pid'? y

[root@SRV-301082-vm01 /tmp] eth0 = 10.0.4.16
#/etc/init.d/zabbix_agentd start 
Starting Zabbix Agent: [ OK ]

[root@SRV-301082-vm01 /tmp] eth0 = 10.0.4.16
#ps -ef|grep zabbix
zabbix 17970 1 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
zabbix 17972 17970 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
zabbix 17973 17970 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
zabbix 17974 17970 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
zabbix 17975 17970 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
zabbix 17976 17970 0 16:04 ? 00:00:00 /sbin/zabbix_agentd -c /etc/zabbix_agentd.conf
root 17979 13319 0 16:04 pts/0 00:00:00 grep zabbix

[root@SRV-301082-vm01 /tmp] eth0 = 10.0.4.16
#

共有 0 条评论

Top