File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,15 @@ def quit_handler(_signo=None, _stack_frame=None):
55
55
args , commands = parse_args ()
56
56
if not args .zabbix_address :
57
57
print ('Option --zabbix-address is missing' )
58
- print_total_help ()
58
+ exit (125 )
59
+ if not os .path .isfile (args .zabbix_file ):
60
+ print ('Cannot find zabbix file with metric to upload. Check path in --zabbix-file option.' )
59
61
exit (125 )
60
62
61
63
cfg = Config (args .config_file , args .plugins_dirs )
62
64
cfg .config .set ('zabbix' , 'address' , args .zabbix_address )
63
65
cfg .config .set ('zabbix' , 'port' , args .zabbix_port )
64
- cfg .config .set ('zabbix' , 'client' , args .zabbix_client )
66
+ cfg .config .set ('zabbix' , 'client' , args .zabbix_client )
65
67
cfg .config .set ('log' , 'level' , args .zabbix_log_level )
66
68
67
69
supervisor = Supervisor (cfg )
You can’t perform that action at this time.
0 commit comments