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

Heartbeat timeout for Nagios-Alerta Gateway #47

Open
ryanbarrett opened this issue Mar 3, 2022 · 1 comment
Open

Heartbeat timeout for Nagios-Alerta Gateway #47

ryanbarrett opened this issue Mar 3, 2022 · 1 comment

Comments

@ryanbarrett
Copy link

Hello Nick, thank you for your work on Alerta.

The Heartbeat timeout seems to default to 24 hours.

It would be handy to have a way to set the heartbeat timeout to something like 5 or 10 minutes.
e.g.
broker_module=/usr/lib/nagios/alerta-neb.o http://alertahost:8080/api heartbeat_timeout=300

I searched the code a bit and I didn't see anything in the documentation. Sorry if this is already a feature or I've missed something.
-Ryan

@kstorbakken
Copy link

+1, would love to see this added. I tried to fork and add it myself so that the timeout value gets passed with the API call, but I'm not skilled enough to. For now I've simply set the HEARTBEAT_TIMEOUT value in /etc/alertad.conf to an hour. Since nothing is being set for timeout from nagios-alerta, changing the default heartbeat timeout is at least a bit of a hacky workaround for now.

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

2 participants