Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use the alerter.yaml update on Windows #100

Closed
MRizkBV opened this issue Dec 12, 2020 · 3 comments
Closed

Can't use the alerter.yaml update on Windows #100

MRizkBV opened this issue Dec 12, 2020 · 3 comments

Comments

@MRizkBV
Copy link
Contributor

MRizkBV commented Dec 12, 2020

I believe run.ps1 was not updated to reflect, or handle the new changes. I tried adding -q (also -alerter-config and --alerter-config) path\to\alerter.yaml but Powershell throws in an error expecting email config.

I do not have the knowledge to edit the run.ps1 myself :/

@TK-SpartanGolf6
Copy link

I have the same issue. For me it throws out an error saying
'Missing email argument.
At C:(user directory)\inventory-hunter\docker_run.ps1:15 char 24.
if (-Not $email) {throw "missing email argument"}'

When I have both a Discord server notification and email notification set. The following is my '.\config\alerters.yaml' config file.

alerters:
discord:
webhook_url: (webhook I removed so nobody screws with the server)
mentions:
- @everyone
email:
sender: (email I removed so nobody screws with my email)
recipients:
- (email I removed so nobody screws with my email)
- (email I removed so nobody screws with my email)
- (email I removed so nobody screws with my email)
relay: 127.0.0.1
...

@MRizkBV
Copy link
Contributor Author

MRizkBV commented Dec 12, 2020

@TK-SpartanGolf6 Yea, same error here.

@EricJMarti
Copy link
Owner

This was added in: 41a16f6

Please run git pull and use the -AlerterConfig argument with docker_run.ps1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants