Install Zabbix Linux oracle RHEL 5

useradd -r zabbix
mkdir /etc/zabbix/

repository zabbix http://repo.zabbix.com/zabbix/3.2/

RHEL5 : rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/5/x86_64/zabbix-agent-3.2.0-1.el5.x86_64.rpm

yum install zabbix-agent

scp root@vlbid41x.ft.grp:/usr/bin/zabbix* /usr/bin/
scp root@vlbid41x.ft.grp:/usr/sbin/zabbix* /usr/sbin/
scp root@vlbid41x.ft.grp:/etc/zabbix/zabbix_agentd.conf /etc/zabbix/

cd /exploit/scripts

scp admse_efougere@wctsrv0011.wabtec.com:/exploit/scripts/zab_*.sh .

vim /etc/zabbix/zabbix_agentd.conf

Hostname=WCTSRV00XX.wabtec.com
ListenIP=10.129.32.XX
UserParameter=zab_mem_free,/exploit/scripts/zab_mem_free.sh
UserParameter=zab_proc_mem[*],/exploit/scripts/zab_proc_mem.sh $1
UserParameter=zab_proc_cpu[*],/exploit/scripts/zab_proc_cpu.sh $1
UserParameter=zab_test_port[*],/exploit/scripts/zab_test_port.sh $1 $2

service zabbix-agent start

—– log dans :
cat /exploit/logs/zabbix_agentd.log

Test the proper operation of the agent

Connect on vmoni with root account

cd /usr/local/bin

root@vmoni:~# zabbix_get -p 10050 -k agent.version -s servername

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *