January 2019
Intermediate to advanced
798 pages
20h 33m
English
Now is the time to send in our data, which will be a bit fake. As mentioned, IT services/SLA functionality is more interesting when we have data for a longer period of time, and we could try to send in data for a year. Of course, we won't create it manually—we'll generate it. Create a script like this on the Zabbix server:
#!/bin/bash hostname="IT services" time_period=$[3600*24*365] # 365 days interval=3600 # one hour probability=100 current_time=$(date "+%s") for item_key in code_repo warehouse_analytics ticketing; do [[ -f $item_key.txt ]] && { echo "file $item_key.txt already exists" exit } for ((value_timestamp=$current_time-$time_period; value_timestamp<$current_time; value_timestamp=value_timestamp+$interval)); ...Read now
Unlock full access