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


いつのかも覚えてません! [shell gutter="false"] 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 [/shell] 32bit用を探す



しかし32bidでも64bidでもインストールできず [shell gutter="false"] 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 [/shell] 違う方法で [shell gutter="false"] 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 [/shell] 起動スクリプトの最初の行に下記を追記? [shell]


Zabbix agent start/stop script.





DESC="Zabbix agent daemon"