Updated API to pull quick latency stats if available
parent
293b51ddcf
commit
0c8482ae01
@ -1,8 +1,24 @@
|
|||||||
api.sh.gz: api.sh
|
api.sh.gz: api.sh
|
||||||
gzip -9 --keep api.sh
|
gzip -f -9 --keep $<
|
||||||
chmod 644 api.sh.gz
|
chmod 644 $@
|
||||||
scp api.sh.gz ssd:eloyd/
|
scp $@ ssd:eloyd/
|
||||||
|
|
||||||
nagios:
|
nagios:
|
||||||
gzip -9 --keep nlog
|
gzip -f -9 --keep nlog
|
||||||
scp nlog root@192.168.1.19:/usr/local/bin/nlog
|
rsync -avu nlog api.sh root@192.168.1.19:/usr/local/bin/
|
||||||
|
|
||||||
|
test: api.sh
|
||||||
|
@echo "### Checking HGM:"
|
||||||
|
./api.sh -t hgm -hg arrs -o i -o h -v | head -5
|
||||||
|
@echo ""
|
||||||
|
@echo "### Checking -Q -f .output:"
|
||||||
|
./api.sh -Q -f .output | head -5
|
||||||
|
@echo ""
|
||||||
|
@echo "Checking file sizes for current and save/file:"
|
||||||
|
./api.sh --save asdhjadkajthksdfga.json -v | head -5
|
||||||
|
./api.sh | wc
|
||||||
|
./api.sh --file asdhjadkajthksdfga.json | wc
|
||||||
|
rm -f asdhjadkajthksdfga.json
|
||||||
|
@echo ""
|
||||||
|
@echo "Checking stats:"
|
||||||
|
./api.sh --stats
|
||||||
|
|||||||
Loading…
Reference in New Issue