Prototype-X / Zabbix-Network-Weathermap

Network weathermap for Zabbix
GNU General Public License v3.0
90 stars 38 forks source link

Error in template whatermap items #27

Open psmartins opened 6 years ago

psmartins commented 6 years ago

Maxim,

Can you tell me the cause of the error below?

Value "Traceback (most recent call last): File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 121, in main() File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 118, in main WeathermapCLI() File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 53, in init self._map_img() File "/opt/zabbix/mapas_wheatermap_zabbix/weathermap.py", line 94, in _map_img cfg = ConfigLoader(self.cfg_path + '/' + map_fn) File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 52, in init self.load(path_cfg) File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 61, in load self.check() File "/opt/zabbix/mapas_wheatermap_zabbix/config.py", line 69, in check for node in sorted([node for node in self.cfg_dict.keys() if cfg_sect in node]): AttributeError: 'NoneType' object has no attribute 'keys' 0.221" of type "string" is not suitable for value type "Numeric (float)"

Thanks

Prototype-X commented 6 years ago

Error in the configuration file, in the section "node-". Lost required options in "node-" "node-" have 5 options:

  1. name - required
  2. label - optional
  3. icon - optional
  4. x - required
  5. y - required
psmartins commented 6 years ago

Prototype-X

My map is working perfectly.

Thank you so much