Skip to content
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

Execution of some commands giving non zero return code #41

Open
nkv16786 opened this issue Feb 27, 2019 · 0 comments
Open

Execution of some commands giving non zero return code #41

nkv16786 opened this issue Feb 27, 2019 · 0 comments

Comments

@nkv16786
Copy link

nkv16786 commented Feb 27, 2019

Hi,
I am running the following sensu command on Linux terminal and it is working fine. I am receiving proper output as well. But if i check the return code, i am getting a non zero number.

[root@cc66b15377a4 /]# /opt/sensu/embedded/bin/check-azurerm-core-usage.rb --tenant xxxx-xxxxxx-xx-xxx --client xxxx-xxxx-xxxx --clientSecret xxxx-xxxxx-xxxxx-xxxxx --subscription xxxxx-xxxxx-xxxxx-xxxxx --location 'EAST US'

CheckAzureRMCoreUsage CRITICAL: Current usage: 56 of 350 Cores

[root@cc66b15377a4 /]# echo $?
2

Note:- Facing same issue with some other azure plugin commands as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant