# Elastic-agent does not restart automatically after machine reboot

**URL:** <https://discuss.elastic.co/t/elastic-agent-does-not-restart-automatically-after-machine-reboot/328894>\
**Category:** Elastic Agent\
**Created:** [March 30, 2023, 7:19am UTC](https://discuss.elastic.co/t/elastic-agent-does-not-restart-automatically-after-machine-reboot/328894 "2023-03-30T07:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irivas95](https://avatars.discourse-cdn.com/v4/letter/i/839c29/32.png) [@irivas95](https://discuss.elastic.co/u/irivas95)\
**Post date:** [March 30, 2023, 7:19am UTC](https://discuss.elastic.co/t/elastic-agent-does-not-restart-automatically-after-machine-reboot/328894/1 "2023-03-30T07:19:20Z")

</div>

Hi,  
I have an elastic-agent with a prometheus integration with and another elastic-agent acting as fleet with the service enabled and when the machines (both with Red Hat SO) are restarted neither the fleet nor the elastic-agent restarts correctly.  
If I run the command:

`service elastic-agent status`

I can see that the service does restart and that it is enabled but in the fleet page of kibana both appear offline.  
would anyone know why this could happen?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 27, 2023, 7:19am UTC](https://discuss.elastic.co/t/elastic-agent-does-not-restart-automatically-after-machine-reboot/328894/2 "2023-04-27T07:19:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
