Feed
Home > Computers > MySQL - logging all orders

MySQL - logging all orders

Since I managed to fix it I dohledovací Zabbix system, I got to the question of how to get it just the data and draw maps. In my case it is a company that has over 300 branches and each the same infrastructure (approx. 10 dohledovaných items) always by the same name and IP conventions. Because I need the script that creates a map for each subsidiary, need to find out what Zabbix writes to the database when you add each item / map.

I chose this option:

  1. Stop Zabbix
  2. turn on full logging MySQL
  3. insert the item and maps
  4. analyze SQL queries
  5. to create a PHP script that populates the database according to my values
  6. run Zabbix and surveillance: D

First Stop Zabbix

/etc/init.d/zabbix-server stop 

Second turn on full logging MySQL
just vyeditovat / etc / mysql / my.cnf and set the following lines

 .. general_log_file = /var/log/mysql/mysql.log general_log = 1 .. 

Third insert the item and maps
Zabbix web interface to add items

4th 5th 6th in the following chapters: D

faq
Tags: , , , Categories: Computers Tags: , , ,
  1. No comments yet.
  1. Well Trackbacks yet.
IMPORTANT! To Be Able's proceed, you need not solve the seuraavilla simple math (so we know That you are a human) :-)

What is 9 + 14?
Please leave theses two fields as-is:

Spam Protection by WP-SpamFree

copyright