Modified the write_to_data_file to handle data not reported more gracefully. Essentially if the data value is not there, it's not submitted to Zabbix. Second change done was related to the Zabbix host name. If the Zabbix host name had any spaces in it, the script would fail. It would not write the correct data and log file name or the correct Zabbix name inside the data file.
Fixed the arguments being passed incorrectly
Merge pull request #3 from funzie19/master

Modified the write_to_data_file to handle data not reported more gracefu...