Skip to content

External Monitoring via SNMP of systemd services #1651

@maxmeyer

Description

@maxmeyer

Hi,
I'm using systemd in my containers and on my servers to run/watch services. To monitor the whole infrastructure I'm using SNMP with some central server.

  1. Question: Is there some effort to expose information of running/not running services via SNMP?
  2. Would be helpful to have a small daemon exposing that information either via SNMP or via AgentX-protocol?

I found that paper which suggests to use the so called AgentX protocol for that. They implemented a small proof-of-concept daemon in python, which uses systemctl instead of dbus to query state information and uses AgentX to register itself to the snmpd from NET-SNMP:

systemd <--systemctl--> python-script <--agentx--> snmpd <--snmp--> monitoring solution

Maybe a stable solution could look like this:

systemd <--dbus--> systemd-monitord <--agentx--> snmpd <--snmp--> monitoring solution

Here's the solution of libvirt which also uses AgentX to expose information about domains to "the outer world". And here you can find the RFC 2741 for the "Agent Extensibility (AgentX) Protocol".

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions