- Notifications
You must be signed in to change notification settings - Fork2
A script for collecting data directly from Zabbix's database.
License
RichardKav/zabbix-data-collector
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The Zabbix data collector is a script that is designed to collect data directly from the Zabbix database and output the data for processing in csv format.
At the start of the script the database connection information is held. This will need to be changed to match your installation details. An example of this is:
username=zabbixdatabase=zabbixpassword=mypasswordhostname=10.10.0.1
Its usage is as follows:
./zabbix_data_collector.sh <Hostname> <Metric> <Start_time_unix_time> <end_time_unix_time>
An example of this is:
./zabbix_data_collector.sh testnode1 power 1439337600 1439373722
The script ./get_time_stamp.sh can be used to find the current unix time as an aid. Otherwise online tools such asunixtimestamp.com may be used instead.
The ./merge.sh script can be used to aggregate together several metrics files together into a single file called all.csv.
The output of the script is a csv file with the following naming pattern, which records the input used to obtain the file:
<Hostname>_<Metric>_<Start_time_unix_time>_<end_time_unix_time>.csv
In the event the metric name is not found the script will output a list of possible metrics for the specified host in a file with the following name:
<Hostname>_items_list.csv
About
A script for collecting data directly from Zabbix's database.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.