fix: add check for existance of file with zabbix metrics
@@ -55,7 +55,9 @@ def start():
args, commands = parse_args()
if not args.zabbix_address:
print('Option --zabbix-address is missing')
- print_total_help()
+ exit(125)
+ if not os.path.isfile(args.zabbix_file):
+ print('Cannot find zabbix file with metric to upload. Check path in --zabbix-file option.')
exit(125)
cfg = Config(args.config_file, args.plugins_dirs)
