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

Re-Add output mode keyvalue ... #59

Open
Apollon77 opened this issue Mar 21, 2021 · 3 comments
Open

Re-Add output mode keyvalue ... #59

Apollon77 opened this issue Mar 21, 2021 · 3 comments

Comments

@Apollon77
Copy link

Hey, in former versions there was an outputmode keyvalue which was easiely to use with nagios and such ... Could that be re-added please?

@sac
Copy link
Member

sac commented Mar 22, 2021

Thanks for the report. I'll take a look.

@sac
Copy link
Member

sac commented Mar 23, 2021

@Apollon77 what fields are you looking for? Printing the entire output as key-value pairs is overkill.

Printing the output of an earlier version. What would you like to add/delete to it?

./gstatus.py -a -o keyvalue
2021-03-23 22:07:54.178885 brick_count=5,bricks_active=0,glfs_version='9dev',node_count=3,nodes_active=1,over_commit='Yes',product_name='Community',raw_capacity=0,sh_active=0,sh_enabled=0,snapshot_count=0,status='unhealthy',usable_capacity=0,used_capacity=0,volume_count=2,volume_summary_down=2,volume_summary_degraded=0,volume_summary_partial=0,volume_summary_up=0

@Apollon77
Copy link
Author

I mainly need the status, but I think that is basically the relevant stuff

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

2 participants