-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The Zabbix data collector is a set of scripts that are designed to take data directly from Zabbix and write it to disk. The scripts query the Zabbix database to gather information after an experiment has run.
The metrics that are logged to disk can be any reported to the Zabbix server. A list of standard metrics provided by a Zabbix agents can be found in the Zabbix online manual.
The zabbix data collector is designed to collect data directly from the Zabbix database and as such it needs the database connection details. At the start of the zabbix_data_collector.sh script is held the database connection information that will need to be changed to match your installation details.
username=zabbix database=zabbix password=mypassword hostname=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 run at the start and end of an experiment in order to provide the correct timestamps to pass into the main ./zabbix_data_collector.sh script.
The merge.sh script can be used to merge all the files which are output into a single large file for later processing. It is intended to be used in something such as Excel's pivot table functionality.