Zabbix-Network-Weathermap icon indicating copy to clipboard operation
Zabbix-Network-Weathermap copied to clipboard

map: tetrion_map.cfg not found

Open lkthomas opened this issue 8 years ago • 1 comments

./weathermap.py -s test_map.cfg -z http://abc.com -l admin -p admin Traceback (most recent call last): File "./weathermap.py", line 123, in main() File "./weathermap.py", line 120, in main WeathermapCLI() File "./weathermap.py", line 55, in init self._map_scan() File "./weathermap.py", line 67, in _map_scan map_data = zbx.scan_map(map_n) File "/opt/Zabbix-Network-Weathermap/zabbix.py", line 76, in scan_map raise ZbxException('map: {} not found'.format(map_name)) zabbix.ZbxException: map: test_map.cfg not found

lkthomas avatar May 24 '16 00:05 lkthomas

If you first time scan map and file test_map.cfg not exist, option -s is map name in zabbix, not file name. For example: weathermap.py -s test_map -z http://abc.com -l admin -p admin

If you want rescan map and file test_map.cfg exist, then -s is map name use with option -f For example: weathermap.py -s test_map -f

In the first case auth data get from cli arguments. In the second case auth data get from file.

Prototype-X avatar May 25 '16 09:05 Prototype-X