satu

Gajah mati meninggalkan tulang
harimau mati meninggalkan belang
manusia mati meninggalkan nama

persiapkan klu kalian mati ingin meninggalkan apa ?

Thursday 16 January 2020

cara benerin proxy yang lama ngantri banyak

1. login ke server proxy menggunakan console 10.14.3.121
2. lalu matikan service zabbix proxy
   #command /etc/init.d/zabbix_proxy stop




3. lalu login ke database
   #command show database ( untuk melihat database yang aktf disini adalah zabbix420)
   #command use zabbix420
4. lalu rename table
   #command MySQL [zabbix420]> rename table proxy_history to proxy_history_backup3;
   #command select max(id) from proxy_history; untuk cek last ids yang max aktf
   #command select min(id) from proxy_history; untuk cek last ids yang min aktf
5. MySQL [zabbix420]> select * from ids;
+----------------+-----------------+-------------+
| table_name     | field_name      | nextid      |
+----------------+-----------------+-------------+
| proxy_dhistory | dhistory_lastid |       32750 |
| proxy_history  | history_lastid  | 16178650923 |
| task           | taskid          |         398 |
+----------------+-----------------+-------------+
3 rows in set (0.00 sec)

>> informasi(16178650923) digunakan untuk rubah di /root/proxy_history.sql

6. lalu setelah dirubah diimport
   #command mysql zabbix420 < proxy_history.sql
7. lalu nyalakan zabbix_proxy start
   #command /etc/init.d/zabbix_proxy start

No comments:

Post a Comment