raspberry piにzabbix-agentを入れたと思われるメモ

Pocket

なんか残ってたメモです(?

いつのかも覚えてません!

pi@raspberrypi ~ $ dpkg -l | grep zabbix
ii zabbix-agent 1:1.8.11-1 armhf network monitoring solution - agent

pi@raspberrypi ~ $ sudo apt-get --purge remove zabbix-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
zabbix-agent*
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
After this operation, 573 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 70662 files and directories currently installed.)
Removing zabbix-agent ...
[ ok ] Stopping Zabbix agent: zabbix_agentd.
Purging configuration files for zabbix-agent ...
insserv: warning: script 'mathkernel' missing LSB tags and overrides
Processing triggers for man-db ...

[root@astail ~]# rpm -qa | grep zabbix
zabbix-web-mysql-2.2.3-1.el6.noarch
zabbix-web-japanese-2.2.3-1.el6.noarch
zabbix-get-2.2.3-1.el6.x86_64
zabbix-sender-2.2.3-1.el6.x86_64
zabbix-2.2.3-1.el6.x86_64
zabbix-web-2.2.3-1.el6.noarch
zabbix-server-mysql-2.2.3-1.el6.x86_64
zabbix-agent-2.2.3-1.el6.x86_64
zabbix-server-2.2.3-1.el6.x86_64
zabbix-java-gateway-2.2.3-1.el6.x86_64

pi@raspberrypi ~ $ uname -m
armv6l

32bit用を探す

http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix/

http://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix/zabbix-agent_2.2.3-1+wheezy_i386.deb

しかし32bidでも64bidでもインストールできず

pi@raspberrypi ~ $ sudo dpkg -i zabbix-agent_2.2.3-1+wheezy_amd64.deb
dpkg: error processing zabbix-agent_2.2.3-1+wheezy_amd64.deb (--install):
package architecture (amd64) does not match system (armhf)
Errors were encountered while processing:
zabbix-agent_2.2.3-1+wheezy_amd64.deb

違う方法で

pi@raspberrypi ~ $ cd /usr/local/src/
pi@raspberrypi /usr/local/src $ sudo wget http://sourceforge.net/projects/zabbix/files/latest/download

pi@raspberrypi /usr/local/src $ sudo tar -xzvf download

起動スクリプトの最初の行に下記を追記?

##
## Zabbix agent start/stop script.
##
## Copyright (C) 2001-2014 Zabbix SIA
#
#NAME=zabbix_agentd
#DAEMON=/usr/local/sbin/${NAME}
#DESC="Zabbix agent daemon"
#PID=/tmp/$NAME.pid

コメントを残す

メールアドレスが公開されることはありません。