{"id":2031,"date":"2018-10-11T08:33:59","date_gmt":"2018-10-11T06:33:59","guid":{"rendered":"http:\/\/les-fougs.com\/wordpress\/?p=2031"},"modified":"2019-06-27T08:20:45","modified_gmt":"2019-06-27T06:20:45","slug":"install-zabbix-linux-oracle-rhel-7-ou-6","status":"publish","type":"post","link":"http:\/\/les-fougs.com\/wordpress\/2018\/10\/11\/install-zabbix-linux-oracle-rhel-7-ou-6\/","title":{"rendered":"Install Zabbix Linux oracle RHEL 7"},"content":{"rendered":"<p>useradd -r zabbix<br \/>\nmkdir \/etc\/zabbix\/<\/p>\n<p><em>repository zabbix http:\/\/repo.zabbix.com\/zabbix\/3.2\/<\/em><\/p>\n<pre>RHEL7 : rpm -Uvh <a href=\"http:\/\/repo.zabbix.com\/zabbix\/3.2\/rhel\/7\/x86_64\/\">http:\/\/repo.zabbix.com\/zabbix\/3.2\/rhel\/7\/x86_64<\/a>\/<a href=\"http:\/\/repo.zabbix.com\/zabbix\/3.2\/rhel\/7\/x86_64\/zabbix-release-3.2-1.el7.noarch.rpm\">zabbix-release-3.2-1.el7.noarch.rpm<\/a>\r\n\r\nyum install zabbix-agent<\/pre>\n<p>scp root@vlbid41x.ft.grp:\/usr\/bin\/zabbix* \/usr\/bin\/<br \/>\nscp root@vlbid41x.ft.grp:\/usr\/sbin\/zabbix* \/usr\/sbin\/<br \/>\nscp root@vlbid41x.ft.grp:\/etc\/zabbix\/zabbix_agentd.conf \/etc\/zabbix\/<\/p>\n<p>cd \/exploit\/scripts<\/p>\n<p>scp admse_efougere@wctsrv0011.wabtec.com:\/exploit\/scripts\/zab_*.sh .<\/p>\n<p>vim \/etc\/zabbix\/zabbix_agentd.conf<\/p>\n<pre>Hostname=WCTSRV00XX.wabtec.com\r\nPidFile=\/run\/zabbix\/zabbix_agentd.pid\r\nListenIP=10.129.32.XX\r\nUserParameter=zab_mem_free,\/exploit\/scripts\/zab_mem_free.sh\r\nUserParameter=zab_proc_mem[*],\/exploit\/scripts\/zab_proc_mem.sh $1\r\nUserParameter=zab_proc_cpu[*],\/exploit\/scripts\/zab_proc_cpu.sh $1\r\nUserParameter=zab_test_port[*],\/exploit\/scripts\/zab_test_port.sh $1 $2<\/pre>\n<pre>ln -s \"\/etc\/zabbix\/zabbix_agentd.conf\" \"\/usr\/local\/etc\/zabbix_agentd.conf\"<\/pre>\n<p>vim \/lib\/systemd\/system\/zabbix-agent.service<\/p>\n<pre>[Unit]\r\nDescription=Zabbix Agent\r\nAfter=syslog.target\r\nAfter=network.target\r\n\r\n[Service]\r\nEnvironment=\"CONFFILE=\/etc\/zabbix\/zabbix_agentd.conf\"\r\n#EnvironmentFile=-\/etc\/sysconfig\/zabbix-agent\r\nType=forking\r\nRestart=on-failure\r\nPIDFile=\/run\/zabbix\/zabbix_agentd.pid\r\nKillMode=control-group\r\nExecStart=\/usr\/sbin\/zabbix_agentd -c $CONFFILE\r\nExecStop=\/bin\/kill -SIGTERM $MAINPID\r\nRestartSec=10s\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>rm \/exploit\/logs\/zabbix_agentd.log<br \/>\nsystemctl stop zabbix-agent.service<br \/>\nsystemctl start zabbix-agent.service<br \/>\nsystemctl status zabbix-agent.service<\/p>\n<p>(\u00e9ventuellement refaire un stop\u00a0 + start)<\/p>\n<p>&#8212;&#8211; log dans :<\/p>\n<p>cat \/var\/log\/messages<\/p>\n<h2>Test the proper operation of the agent<\/h2>\n<p>Connect on<strong>\u00a0vmoni<\/strong>\u00a0with root account<\/p>\n<p>cd \/usr\/local\/bin<\/p>\n<p>root@vmoni:~#\u00a0<strong>zabbix_get -p 10050 -k agent.version -s<\/strong>\u00a0<em>servername<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>useradd -r zabbix mkdir \/etc\/zabbix\/ repository zabbix http:\/\/repo.zabbix.com\/zabbix\/3.2\/ RHEL7 : rpm -Uvh http:\/\/repo.zabbix.com\/zabbix\/3.2\/rhel\/7\/x86_64\/zabbix-release-3.2-1.el7.noarch.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 PidFile=\/run\/zabbix\/zabbix_agentd.pid 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 ln -s &laquo;&nbsp;\/etc\/zabbix\/zabbix_agentd.conf&nbsp;&raquo; &laquo;&nbsp;\/usr\/local\/etc\/zabbix_agentd.conf&nbsp;&raquo; vim \/lib\/systemd\/system\/zabbix-agent.service [Unit] Description=Zabbix Agent After=syslog.target After=network.target [Service] &hellip; <a href=\"http:\/\/les-fougs.com\/wordpress\/2018\/10\/11\/install-zabbix-linux-oracle-rhel-7-ou-6\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Install Zabbix Linux oracle RHEL 7&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[52],"tags":[],"_links":{"self":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2031"}],"collection":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2031"}],"version-history":[{"count":19,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2031\/revisions"}],"predecessor-version":[{"id":2450,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/2031\/revisions\/2450"}],"wp:attachment":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2031"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}