Skip to content

Commit

Permalink
feat: add default file for ARGs
Browse files Browse the repository at this point in the history
  • Loading branch information
wbollock committed Sep 3, 2022
1 parent f80dab0 commit 8783128
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# nagiosxi_exporter
# nagios_exporter

A Prometheus exporter currently supporting:

* Nagios XI

## Build and Release Steps

Expand All @@ -17,13 +21,12 @@ nfpm package -p deb -t /tmp/

3. Tag release and push:

```
```bash
git tag -a v0.1.0 -m "First release"
git push origin v0.1.0
goreleaser release
```


## Resources

* [haproxy_expoter](https://github.com/prometheus/haproxy_exporter/blob/main/haproxy_exporter.go)
Expand Down
2 changes: 2 additions & 0 deletions nfpm/etc/default/prometheus-nagios-exporter
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prometheus Nagios Exporter default arguments
ARGS="-config.path /etc/prometheus-nagios-exporter/config.toml -web.remote-address localhost"
2 changes: 1 addition & 1 deletion nfpm/systemd/prometheus-nagios-exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EnvironmentFile=-/etc/default/prometheus-nagios-exporter
User=root
Group=root
Type=simple
ExecStart=/usr/local/bin/nagios_exporter $ARGS
ExecStart=/usr/local/bin/prometheus-nagios-exporter $ARGS

[Install]
WantedBy=multi-user.target

0 comments on commit 8783128

Please sign in to comment.