{"id":265069,"date":"2015-09-07T12:19:08","date_gmt":"2015-09-07T08:19:08","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=265069"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=265069","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix 2.4 \u043d\u0430 RedHat Openshift"},"content":{"rendered":"<p>             \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u00ab\u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439\u00bb \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0431\u044e\u0434\u0436\u0435\u0442\u043e\u043c \u0432 0 \u0440\u0443\u0431\u043b\u0435\u0439. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d zabbix \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 openshift.<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u043c \u0441 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u0446\u0435\u043b\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <a href=\"https:\/\/openshift.redhat.com\">openshift<\/a>. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b zabbix \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f application \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0435\u0439 mysql \u0438 crontab. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e0f\/865\/7ec\/e0f8657ec8234b65a609105eea0bc072.PNG\"\/> <\/p>\n<p>  \u0422\u0443\u0442 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043b\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c openshift, \u043d\u0430\u0436\u0430\u0432 \u043d\u0430 \u00abWant to log in your application?\u00bb. \u041d\u0430\u0434\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 <a href=\"https:\/\/openshift.redhat.com\/app\/console\/settings\">\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439<\/a> openshift \u0441\u0432\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 ssh-\u043a\u043b\u044e\u0447. <\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e zabbix \u043c\u043e\u0436\u043d\u043e \u0441 <a href=\"http:\/\/www.zabbix.com\/ru\/download.php\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/a>. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 openshift \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 zabbix, \u0437\u0430\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0443\u0434\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c:<\/p>\n<pre><code class=\"bash\">]\\&gt;mkdir -p \/tmp\/BUILD ; cd  \/tmp\/BUILD ; wget http:\/\/downloads.sourceforge.net\/project\/zabbix\/ZABBIX%20Latest%20Stable\/2.4.6\/zabbix-2.4.6.tar.gz ; tar xf zabbix-2.4.6.tar.gz ; cd zabbix-2.4.6 ; &gt;  mkdir \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix ]\\&gt;.\/configure --enable-server --enable-java  --with-mysql --with-libcurl --enable-agent --with-ssh2 --prefix=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix ]\\&gt; make ]\\&gt; make install  <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0430\u0433\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0441\u0440\u0435\u0434\u0435 openshift. \u0422\u0443\u0442 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c $OPENSHIFT_APP_UUID \u0438 $OPENSHIFT_PHP_IP \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e:  <\/p>\n<pre><code class=\"bash\">]\\&gt; export  | grep OPENSHIFT_PHP_IP declare -x OPENSHIFT_PHP_IP=&quot;127.13.151.129&quot; ]\\&gt; export | grep OPENSHIFT_APP_UUID declare -x OPENSHIFT_APP_UUID=&quot;55e9bc400c1e66a589000029&quot; ]\\&gt;vi \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_server.conf ListenIP=$OPENSHIFT_PHP_IP ListenPort=30051 LogFile=\/tmp\/zabbix_server.log LogFileSize=5 DebugLevel=3 PidFile=\/tmp\/zabbix_server.pid DBHost=localhost DBName=zabbix #DBSchema=zabbix DBUser=zabbix DBPassword=&lt;\u041f\u0410\u0420\u041e\u041b\u042c&gt; DBSocket=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/mysql\/socket\/mysql.sock  ]\\&gt;vi \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_agentd.conf PidFile=\/tmp\/zabbix_agentd.pid LogFile=\/tmp\/zabbix_agentd.log LogFileSize=5 DebugLevel=3 Server=127.13.151.129 ServerActive=127.13.151.129:30051 ListenPort=30050 ListenIP=127.13.151.129 StartAgents=3 Hostname=Zabbix server <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438:<\/p>\n<pre><code class=\"bash\">\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/sbin\/zabbix_server -c \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_server.conf  \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/sbin\/zabbix_agentd -c  \/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_agentd.conf <\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043b\u043e\u0433\u0438:<\/p>\n<pre><code class=\"bash\">[zabbix-chinacoolhacker.rhcloud.com zabbix]\\&gt; tail -3 \/tmp\/zabbix_server.log  82320:20150904:153339.334 server #24 started [escalator #1]  82321:20150904:153339.334 server #25 started [proxy poller #1]  82323:20150904:153339.335 server #26 started [self-monitoring #1]    [zabbix-chinacoolhacker.rhcloud.com zabbix]\\&gt; tail -2 \/tmp\/zabbix_agentd.log 111422:20150904:154248.644 agent #4 started [listener #3] 111423:20150904:154248.644 agent #5 started [active checks #1] <\/code><\/pre>\n<p>  \u0418\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0444\u0440\u043e\u043d\u0442-\u044d\u043d\u0434\u0443.<\/p>\n<p>  \u0422\u0443\u0442 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c openshift \u2014 \u0434\u0435\u043f\u043b\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 git. \u041a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0435\u0431\u0435 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u0445\u043e\u0441\u0442 \u00ab\u0431\u043e\u043b\u0432\u0430\u043d\u043a\u0443\u00bb \u0441\u0430\u0439\u0442\u0430:<\/p>\n<pre><code class=\"bash\">% git clone ssh:\/\/55e9bc400c1e66a589000029@zabbix-chinacoolhacker.rhcloud.com\/~\/git\/zabbix.git\/ <\/code><\/pre>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0444\u0440\u043e\u043d\u0442-\u044d\u043d\u0434\u0430 zabbix- \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438 \u0447\u0435\u0440\u0435\u0437 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 gui. \u041e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0435, \u043d\u043e \u043f\u0440\u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0435 \u0440\u0438\u0441\u043a\u0443\u0435\u043c \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432\u043d\u0435\u0441\u0451\u043d\u043d\u044b\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0433\u0438\u0442\u0430 \u2014 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u0435\u043b\u0430\u044e \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444\u0438\u0433, \u044d\u0442\u043e \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e. \u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0440\u043e\u043d\u0442-\u044d\u043d\u0434\u0430 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430 zabbix. \u0423\u0434\u0430\u043b\u044f\u044e setup.php \u0447\u0442\u043e\u0431\u044b \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0438 \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043c\u043e\u044e \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0438 \u043f\u0440\u0430\u0432\u043b\u044e \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u043d\u0443\u0436\u0434\u044b:<\/p>\n<pre><code class=\"bash\">c@pentahon:~\/ZABBIX\/zabbix % rm -f setup.php c@pentahon:~\/ZABBIX\/zabbix % cd conf c@pentahon:~\/ZABBIX\/zabbix\/conf % mv zabbix.conf.php.example zabbix.conf.php c@pentahon:~\/ZABBIX\/zabbix\/conf % vi zabbix.conf.php  \/\/ Zabbix GUI configuration file. global $DB;  $DB[&quot;TYPE&quot;]                             = 'MYSQL'; $DB[&quot;SERVER&quot;]                   = 'localhost'; $DB[&quot;PORT&quot;]                             = '0'; $DB[&quot;DATABASE&quot;]                 = 'zabbix'; $DB[&quot;USER&quot;]                             = 'zabbix'; $DB[&quot;PASSWORD&quot;]                 = 'oDWp7akWrxWiMAIRCoYJ'; \/\/ Schema name. Used for IBM DB2 and PostgreSQL. $DB[&quot;SCHEMA&quot;]                   = '';  $ZBX_SERVER                             = '127.13.151.129'; $ZBX_SERVER_PORT                = '30051'; $ZBX_SERVER_NAME                = 'Overseer';  $IMAGE_FORMAT_DEFAULT   = IMAGE_FORMAT_PNG; ?&gt; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0451\u043c .htaccess \u0432 \u043a\u043e\u0440\u043d\u0435 \u0441\u0430\u0439\u0442\u0430:<\/p>\n<pre><code class=\"bash\">c@pentahon:~\/ZABBIX\/zabbix\/conf % cd .. c@pentahon:~\/ZABBIX\/zabbix % vi .htaccess  php_value upload_max_filesize 20M php_value date.timezone Europe\/Moscow php_value post_max_size 20M php_value max_execution_time 300 php_value max_input_time 300 php_value max_input_time 300 php_value mysql.default_socket &quot;\/var\/lib\/stickshift\/$OPENSHIFT_APP_UUID\/mysql-5.1\/socket\/mysql.sock&quot; <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0432 \u0433\u0438\u0442!<\/p>\n<pre><code class=\"bash\">git add * git add .htaccess git commit -m &quot;zabb&quot; git push <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u043f\u0443\u0448\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (\u043b\u043e\u0433\u0438\u043d\\\u043f\u0430\u0440\u043e\u043b\u044c \u2014 admin\\zabbix, \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0435\u0433\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c!) \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7b9\/1c3\/90c\/7b91c390c44642e5bc6dd0b08a61f0b4.PNG\"\/><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0430\u0433\u0435\u043d\u0442 \u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 ip \u0438 \u043f\u043e\u0440\u0442\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d62\/eef\/4c1\/d62eef4c121d4d26bc2469de40fe1a95.PNG\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0430\u0447 \u0432 \u043a\u0440\u043e\u043d \u2014 \u0434\u043b\u044f \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0430\u0433\u0435\u043d\u0442\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u043f\u0430\u0434\u0435\u043d\u0438\u044f. Crontab \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432 \/var\/lib\/openshift\/55e9bc400c1e66a589000029\/app-root\/runtime\/repo\/.openshift\/cron. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre><code class=\"bash\">mkdir \/tmp\/status ]\\&gt; vi minutely\/zabbixwatchog.sh #!\/bin\/bash ### config pidof_prog=&quot;\/sbin\/pidof&quot; ### zabbix_agentd_prog=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/sbin\/zabbix_agentd zabbix_agentd_conf=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_agentd.conf zabbix_server_prog=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/sbin\/zabbix_server zabbix_server_conf=\/var\/lib\/openshift\/$OPENSHIFT_APP_UUID\/app-root\/data\/zabbix\/etc\/zabbix_server.conf ### agentstatlog=\/tmp\/status\/agentstat.log serverstatlog=\/tmp\/status\/serverstat.log ### ### server lifekeeper ### serverststat=`$pidof_prog $zabbix_server_prog` if [ &quot;$serverststat&quot; ]  then     echo &quot;`date` : server pids: $serverststat&quot; &gt;&gt; $serverstatlog;  else     echo &quot;restarting server at `date`&quot;  &gt;&gt; $serverstatlog;     $zabbix_server_prog -c $zabbix_server_conf;     sleep 3     echo &quot;`date` SERVER started with pids: `$pidof_prog $zabbix_server_prog` &quot; &gt;&gt; $serverstatlog; fi  ### agent lifekeeper ### agentstat=`$pidof_prog $zabbix_agentd_prog` if [ &quot;$agentstat&quot; ]  then     echo &quot;`date` : agent pids: $agentstat&quot; &gt;&gt; $agentstatlog;  else     echo &quot;restarting agent at `date`&quot;  &gt;&gt; $agentstatlog;     $zabbix_agentd_prog -c $zabbix_agentd_conf;     sleep 3     echo &quot;`date` agent started with pids: `$pidof_prog $zabbix_agentd_prog` &quot; &gt;&gt; $agentstatlog; fi # ]\\&gt; vi daily\/zabbix.sh #!\/bin\/bash cp \/tmp\/status\/agentstat.log \/tmp\/status\/agentstat.log.`date +%Y-%m-%d` && echo '' &gt; \/tmp\/status\/agentstat.log cp \/tmp\/status\/serverstat.log \/tmp\/status\/serverstat.log.`date +%Y-%m-%d` && echo '' &gt; \/tmp\/status\/serverstat.log find \/tmp\/status\/ -mtime +7 -exec rm {} \\; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 zabbix \u043e\u043d\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u044f\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u043e\u043d\u0443.             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/266327\/\"> http:\/\/habrahabr.ru\/post\/266327\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u00ab\u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0439\u00bb \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0431\u044e\u0434\u0436\u0435\u0442\u043e\u043c \u0432 0 \u0440\u0443\u0431\u043b\u0435\u0439. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d zabbix \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 openshift.<\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u043c \u0441 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u0446\u0435\u043b\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-265069","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265069"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/265069\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}