Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Fixed port arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Opazo committed Nov 14, 2018
1 parent 0b17a73 commit e083150
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,9 @@ func main() {
upsArg := flag.String("ups", "none", "ups name managed by nut")
portArg := flag.Int("port", 8100, "port number")
upscArg := flag.String("upsc", "/bin/upsc", "upsc path")
flag.Parse()

var listenAddr = fmt.Sprintf(":%d", *portArg)

flag.Parse()
recordMetrics(*upscArg, *upsArg)

log.Infoln("Starting NUT exporter on ups", *upsArg )
Expand Down
1 change: 0 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
build:
rm -rf nut_expoter
go build

0 comments on commit e083150

Please sign in to comment.