User Tools

Site Tools


утилита_jq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
утилита_jq [2022/12/20 10:14]
val
утилита_jq [2025/05/05 07:37] (current)
val
Line 4: Line 4:
   * [[https://​www.baeldung.com/​linux/​jq-command-json|Guide to Linux jq Command for JSON Processing]]   * [[https://​www.baeldung.com/​linux/​jq-command-json|Guide to Linux jq Command for JSON Processing]]
   * [[https://​stackoverflow.com/​questions/​34226370/​jq-print-key-and-value-for-each-entry-in-an-object|jq:​ print key and value for each entry in an object]]   * [[https://​stackoverflow.com/​questions/​34226370/​jq-print-key-and-value-for-each-entry-in-an-object|jq:​ print key and value for each entry in an object]]
 +
 +  * Сервис Zabbix [[Сервис Zabbix#​Оформление запросов в виде BASH скриптов]]
  
 <​code>​ <​code>​
Line 10: Line 12:
 $ zabbix_get -s gate -k vfs.fs.discovery | jq $ zabbix_get -s gate -k vfs.fs.discovery | jq
  
-$ zabbix_get -s gate -k vfs.fs.discovery | jq '.[] | ."​{#​FSTYPE}"​+$ zabbix_get -s gate -k vfs.fs.discovery | jq '.[] | ."​{#​FSTYPE}"​'
  
 $ zabbix_get -s gate -k vfs.fs.discovery | jq '.[] | select(."​{#​FSTYPE}"​=="​ext4"​)'​ $ zabbix_get -s gate -k vfs.fs.discovery | jq '.[] | select(."​{#​FSTYPE}"​=="​ext4"​)'​
 +
 +
 +# docker volume inspect root_postgres_data | jq '.[] | ."​Mountpoint"'​
 </​code>​ </​code>​
утилита_jq.1671520444.txt.gz · Last modified: 2022/12/20 10:14 by val