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

...lly. 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.
I think this should be something like this, right?
`write_to_data_file($zabbix_name, "mongodb_version", $mongo_version) ;`