AIX 7.1 安装 zabbix agent
AIX Version 7
Copyright IBM Corporation, 1982, 2012.
login: root
root's Password:
*******************************************************************************
* *
* *
* Welcome to AIX Version 7.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Last unsuccessful login: Thu May 8 07:57:26 BEIST 2014 on /dev/pts/0 from 10.101.0.173
Last login: Fri May 16 11:22:40 BEIST 2014 on /dev/pts/0 from 10.101.5.66
# bash-3.2#
bash-3.2#
bash-3.2# pwd
/
bash-3.2# ls
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# mkgroup -'A' id='333' zabbix
bash-3.2# mkuser id=333 groups=zabbix home=/tmp/zabbix login=false rlogin=false zabbix
bash-3.2#
bash-3.2# ls -l /tmp/zabbix/
total 8
-rwxr----- 1 zabbix staff 254 May 16 15:19 .profile
bash-3.2# ls -ld /tmp/zabbix/
drwxr-xr-x 2 zabbix staff 256 May 16 15:19 /tmp/zabbix/
bash-3.2#
bash-3.2# cd /tmp/zabbix/
bash-3.2# ls -l
total 8
-rwxr----- 1 zabbix staff 254 May 16 15:19 .profile
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# ftp 10.101.0.17
Connected to 10.101.0.17.
220 (vsFTPd 2.2.2)
Name (10.101.0.17:root): root
331 Please specify the password.
Password:
230 Login successful.
ftp> cd /var/ftp/pub/kik/zabbix
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
libiconv-1.14-2.aix5.1.ppc.rpm
zabbix_agentd.conf.linux
zabbix_agents_2.0.6.aix5300-06.powerpc.tar.gz
zabbix_agents_2.0.6.aix6100.powerpc.tar.gz
zabbix_agents_2.0.6.hpux11_11.risc.tar.gz
zabbix_agents_2.0.6.hpux11_23.risc.tar.gz
zabbix_agents_2.0.6.solaris10.sparc.tar.gz
zabbix_agents_2.0.6.solaris11.amd64.tar.gz
zabbix_agents_2.0.6.solaris9.sparc.tar.gz
zabbix_agents_2.0.6.win.zip
zabbix_agents_2.0.8.aix5300-06.powerpc.tar.gz
zabbix_agents_2.0.8.aix6100.powerpc.tar.gz
zabbix_agents_2.0.8.hpux11_23.ia64.tar.gz
zabbix_agents_2.0.8.solaris10.sparc.tar.gz
zabbix_agents_2.0.8.solaris9.sparc.tar.gz
zabbix_agents_2.0.8.win.zip
226 Directory send OK.
ftp> binary
200 Switching to Binary mode.
ftp> get zabbix_agents_2.0.8.aix6100.powerpc.tar.gz
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for zabbix_agents_2.0.8.aix6100.powerpc.tar.gz (3025911 bytes).
226 Transfer complete.
3025911 bytes received in 0.2587 seconds (1.142e+04 Kbytes/s)
local: zabbix_agents_2.0.8.aix6100.powerpc.tar.gz remote: zabbix_agents_2.0.8.aix6100.powerpc.tar.gz
ftp> quit
221 Goodbye.
bash-3.2# pwd
/tmp/zabbix
bash-3.2# ls -l
total 5920
-rwxr----- 1 zabbix staff 254 May 16 15:19 .profile
-rw-r--r-- 1 root system 3025911 May 16 15:20 zabbix_agents_2.0.8.aix6100.powerpc.tar.gz
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# gunzip -d zabbix_agents_2.0.8.aix6100.powerpc.tar.gz
bash-3.2# tar -xvf zabbix_agents_2.0.8.aix6100.powerpc.tar
x sbin/zabbix_agent, 1150615 bytes, 2248 media blocks.
x sbin/zabbix_agentd, 1180220 bytes, 2306 media blocks.
x bin/zabbix_get, 1051434 bytes, 2054 media blocks.
x bin/zabbix_sender, 1066462 bytes, 2083 media blocks.
x conf/zabbix_agent.conf, 1601 bytes, 4 media blocks.
x conf/zabbix_agentd.conf, 5707 bytes, 12 media blocks.
x conf/zabbix_agentd/userparameter_examples.conf, 1326 bytes, 3 media blocks.
x conf/zabbix_agentd/userparameter_mysql.conf, 1517 bytes, 3 media blocks.
bash-3.2# ls -l
total 8752
-rwxr----- 1 zabbix staff 254 May 16 15:19 .profile
drwxr-xr-x 2 zabbix staff 256 May 16 15:20 bin
drwxr-xr-x 3 zabbix staff 256 May 16 15:20 conf
drwxr-xr-x 2 zabbix staff 256 May 16 15:20 sbin
-rw-r--r-- 1 root system 4474880 May 16 15:20 zabbix_agents_2.0.8.aix6100.powerpc.tar
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2#
bash-3.2# cp -p bin/* /bin
bash-3.2# cp -p sbin/* /sbin
bash-3.2# zabbix_agentd -V
Zabbix Agent (daemon) v2.0.8 (revision 38017) (21 August 2013)
Compilation time: Sep 10 2013 03:11:48
Supported technology levels: 6100 and above
bash-3.2#
bash-3.2#
bash-3.2# mkdir /etc/zabbix
bash-3.2#
bash-3.2# mkdir /etc/zabbix/conf.d
bash-3.2#
bash-3.2# cat << EOF >/etc/zabbix/zabbix_agentd.conf
> PidFile=/tmp/zabbix/zabbix_agentd.pid
> LogFile=/tmp/zabbix/zabbix_agentd.log
> LogFileSize=10
> DebugLevel=3
> Server=10.101.0.17
> ServerActive=127.0.0.1
> Hostname=$(hostname).$(domainname)
> Timeout=30
> EOF
bash-3.2#
bash-3.2#
bash-3.2# zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
bash-3.2#
bash-3.2# more /tmp/zabbix/zabbix_agent
zabbix_agentd.log zabbix_agents_2.0.8.aix6100.powerpc.tar
zabbix_agentd.pid
bash-3.2# more /tmp/zabbix/zabbix_agent.log
/tmp/zabbix/zabbix_agent.log: A file or directory in the path name does not exist.
bash-3.2#
bash-3.2# ps -eaf|grep zabbix
zabbix 8585408 9502878 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 9175198 9502878 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 9371792 9502878 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 9502878 1 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 9568486 9502878 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 11272372 9502878 0 15:23:50 - 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
bash-3.2#
bash-3.2#
bash-3.2# who -r
. run-level 2 May 09 09:38 2 0 S
bash-3.2#
bash-3.2# mkitab zabbix_agentd:2:respawn:/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
bash-3.2#
bash-3.2#
阅读(6781) | 评论(0) | 转发(0) |