Common Module - Telegraf Fix steno script

This commit is contained in:
Mike Reeves
2018-11-20 11:04:22 -05:00
parent 6419002ae6
commit 0d017cacb8
2 changed files with 2 additions and 1 deletions

View File

@@ -169,6 +169,7 @@ so-telegraf:
- /etc/pki/influxdb.crt:/etc/telegraf/telegraf.crt:ro
- /etc/pki/influxdb.key:/etc/telegraf/telegraf.key:ro
- /opt/so/conf/telegraf/scripts:/scripts:ro
- /opt/so/log/stenographer:/var/log/stenographer:ro
- watch:
- /opt/so/conf/telegraf/etc/telegraf.conf
- /opt/so/conf/telegraf/scripts

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# Get the data
DROP=$(tac /opt/so/log/stenographer/stenographer.log | grep -m1 drop | awk '{print $14}' | awk -F "=" '{print $2}')
DROP=$(tac /var/log/stenographer/stenographer.log | grep -m1 drop | awk '{print $14}' | awk -F "=" '{print $2}')
echo "stenodrop drop=$DROP"