A
A
Andrey San2014-09-23 14:56:53
linux
Andrey San, 2014-09-23 14:56:53

How to upload data from Zabbix?

What is the query to find all eventlog from computer pc1 ?
ad59f30bcaf546ec8abf3b0435812194.JPGthe computer pc1 has hostid=10125 if you believe the address line:
5de15d7061754a229ab3d5b32455a09d.JPGto confirm that 10125 is pc1 made a request in the hosts table
3d606b57a3b04509aed0d85696979721.JPG
. About 80 servers will be monitored, you need to pull out data by computer name and eventid in order to analyze it in excel.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vman, 2014-09-24
@admusers

select h.name, i.name, i.key_, hs.clock, hs.value
from 
  hosts h 
  join items i on h.hostid = i.hostid
  join history_log hs on i.itemid = hs.itemid
where h.name = 'zabbix'

D
Dmitry, 2014-09-23
@plin2s

Write a script and pull through the API?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question