Skip to content

Commit

Permalink
Remove unnecessary sudos from smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
conr committed Nov 21, 2017
1 parent 4e8e563 commit 629c5d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
sudo bash -c 'cat << EOF > nagios-nrpe-server
DAEMON_OPTS="--no-ssl"
EOF'
sudo service nagios-nrpe-server start
service nagios-nrpe-server start
- run:
name: Build and run nrpe_exporter with Prometheus
command: |
go get
go build
sudo ./nrpe_exporter &
./nrpe_exporter &
wget https://github.com/prometheus/prometheus/releases/download/v2.0.0/prometheus-2.0.0.linux-amd64.tar.gz
tar xzf prometheus-2.0.0.linux-amd64.tar.gz
cd prometheus-2.0.0.linux-amd64
Expand All @@ -46,7 +46,7 @@ jobs:
- target_label: __address__
replacement: 127.0.0.1:9275
EOF
sudo ./prometheus &
./prometheus &
sleep 5
res=`curl -g http://localhost:9090/api/v1/query?query=command_status | jq '.data.result | length'`
if [ $res == 0 ]; then
Expand Down

0 comments on commit 629c5d9

Please sign in to comment.