Monitor systemd with SNMP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
jenglish
Posts: 59
Joined: Sat Jun 09, 2018 3:51 pm
Location: Boyers, PA

Monitor systemd with SNMP

Post by jenglish »

Is there a way to monitor until files with SNMP that I am unware of? There isn't much information out there and assume someone here may have a better lead or answer. :-)

Code: Select all

$ systemctl is-active wazuh-manager
active

$ /usr/bin/snmpwalk -v2c -c <string> <hostname> 1.3.6.1.2.1.25.4.2.1.2 | grep -i waz
HOST-RESOURCES-MIB::hrSWRunName.314633 = STRING: "wazuh-db"
HOST-RESOURCES-MIB::hrSWRunName.314806 = STRING: "wazuh-modulesd"
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor systemd with SNMP

Post by cdienger »

If you're looking for a plugin I would give this one a try: https://exchange.nagios.org/directory/P ... ce/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
jenglish
Posts: 59
Joined: Sat Jun 09, 2018 3:51 pm
Location: Boyers, PA

Re: Monitor systemd with SNMP

Post by jenglish »

That plugin uses the same functionality as the snmpwalk command example in my first post. It seems that monitoring systemd service files is not possible with snmp.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitor systemd with SNMP

Post by cdienger »

Yes, I wasn't sure if you were just looking for a plugin to avoid having to write one from scratch, but this is the only way I'm aware of monitoring a service via snmp.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked