Skip to content

Commit

Permalink
osfv_cli/monitoring/zabbix: script cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Dawid Lesiak <[email protected]>
  • Loading branch information
dawidlesiak committed May 20, 2024
1 parent 74d46d3 commit 9d4aead
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osfv_cli/monitoring/zabbix/flash_probe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ input_file="macros.txt"

output_pass="output_pass.txt"
output_fail="output_fail.txt"
output_used="output_used.txt"
#output_used="output_used.txt"
stolen="stolen.txt"

> "$output_pass"
> "$output_fail"
# "$output_used" TODO, flash it again to make sure (around 5% fails for no reason)


check_snipeit() {
ip=$1
Expand Down Expand Up @@ -41,7 +41,7 @@ probe_flash() {
while IFS= read -r ip || [ -n "$ip" ]; do
if check_snipeit "$ip"; then
echo "$ip found in snipeit list_used"
echo "$ip" >> "$output_used"
# echo "$ip" >> "$output_used"
else
echo "$ip not found in snipeit list_used, probing flash..."
probe_flash "$ip"
Expand Down

0 comments on commit 9d4aead

Please sign in to comment.