mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Use explicit path to so-elasticsearch-query
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
TOTAL_AVAILABLE_SPACE=0
|
TOTAL_AVAILABLE_SPACE=0
|
||||||
|
|
||||||
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total available space
|
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total available space
|
||||||
for i in $(so-elasticsearch-query _cat/allocation | awk '{print $3}'); do
|
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $3}'); do
|
||||||
size=$(echo $i | grep -oE '[0-9].*' | awk '{print int($1+0.5)}')
|
size=$(echo $i | grep -oE '[0-9].*' | awk '{print int($1+0.5)}')
|
||||||
unit=$(echo $i | grep -oE '[A-Za-z]+')
|
unit=$(echo $i | grep -oE '[A-Za-z]+')
|
||||||
if [ $unit = "tb" ]; then
|
if [ $unit = "tb" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user