gluster / gstatus

gstatus is a command to view current health of a glusterfs cluster
GNU General Public License v3.0
53 stars 32 forks source link

Re-Add output mode keyvalue ... #59

Open Apollon77 opened 3 years ago

Apollon77 commented 3 years ago

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 commented 3 years ago

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

sac commented 3 years ago

@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 commented 3 years ago

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