What is the best way to monitor running services and ports on a system with systemd?
My intent is to alert me, when a service stops running or if a new service is listening on a new port (possibly a security breach).
Currently, I have a script that uses netstat to see the open ports and compares it with what is expected.
- Is there some sort of utility I should be using?
- Also, can
systemdalert me or again, should I just my my script that will be executed via cron?
I have munin installed and it does monitor things, but as for alerts, I don't see it having the capability as I describe.