Prototype-X / Zabbix-Network-Weathermap

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

map: tetrion_map.cfg not found #3

Open lkthomas opened 8 years ago

lkthomas commented 8 years ago

./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

Prototype-X commented 8 years ago

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.