New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit codes #29

Closed
invin12 opened this Issue Feb 8, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@invin12

invin12 commented Feb 8, 2017

It would be better to see exit code not zero when some errors in execution. It's very helpful in shell-scripting..

But exit-code is always zero now
tester@zabbix-test:/usr/lib/zabbix/externalscripts# zabbix-cli -C "add_host_to_hostgroup test test"
[Error]: Problems adding hosts test () to groups test ()
root@zabbix-test:/usr/lib/zabbix/externalscripts# echo $?
0

@ghost ghost assigned usit-gd and rafaelma and unassigned usit-gd Feb 10, 2017

@usit-gd usit-gd added bug enhancement and removed enhancement labels Feb 10, 2017

@usit-gd usit-gd added this to the 1.7.0 milestone Feb 10, 2017

@ghost

This comment has been minimized.

Collaborator

ghost commented Feb 10, 2017

Thanks for the feedback

+1 . Exit codes should not be 0 after an error.

@usit-gd usit-gd added the 1.7.0 label May 18, 2017

@usit-gd usit-gd closed this May 18, 2017

@usit-gd usit-gd added the Tested label May 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment