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

Webhook returns 400 Bad Request #1

Open
simonamor opened this issue Aug 17, 2020 · 0 comments
Open

Webhook returns 400 Bad Request #1

simonamor opened this issue Aug 17, 2020 · 0 comments

Comments

@simonamor
Copy link

Thanks for writing these and making them available.
The Bad Request problem turned out to be due to two separate issues.

First, the NAGIOS_xxx environment variables weren't being defined. I fixed this by changing (in nagios.cfg):
enable_environment_macros=0
to read
enable_environment_macros=1

My nagios installation is fairly small so this is ok but the config has a warning that this may cause problems with larger installs.

Second issue was that it wasn't liking the default format date in NAGIOS_SHORTDATETIME

To fix this I changed (in nagios.cfg):
date_format=us
to read
date_format=iso8601

Might need to mention these in the README.

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

1 participant