question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Monitor for Linux Systemd services

See original GitHub issue

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn’t find similar feature request

🏷️ Feature Request Type

New Monitor

🔖 Feature description

It would be nice to be able to monitor services running on a linux instance.

✔️ Solution

Check running services on the host machine by running systemctl -q is-active

❓ Alternatives

No response

📝 Additional Context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Computronikscommented, May 24, 2022

This seems like a use for the push monitor type. You could write a basic bash script (or a script in any other language) that runs systemctl -q is-active or it’s windows alternative. Then just send a request to the push monitor endpoint. If you put this on a cron script then it should work fine.

1reaction
Computronikscommented, May 28, 2022

I don’t think so as I think that it is just a GET request to the endpoint, perhaps this could be something to think about in the future, adding the ability to provide a bit more info to the push monitor

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the right way to monitor systemd services status
I'm trying to figure what's the right way for me to be notified when some systemd service is having problems ...
Read more >
Monitoring systemd services in realtime with Chronograf
Today, we are going to build a complete dashboard that monitors systemd services in realtime. It will provides us with active, inactive and ......
Read more >
Process Monitoring with Systemd | Servers for Hackers
Get a leg up and learn how to use it now! We'll see how to use Systemd to monitor a process.
Read more >
Systemd units state monitoring with Netdata
Systemd is a suite of basic building blocks for a Linux system. This module monitors Systemd units state. Requirements​. Works only on Linux...
Read more >
How to Monitor systemd services on linux? : r/sysadmin - Reddit
Hello everyone, How can i monitor all the systemd services running on my linux server without ssh on a remote system maybe with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found