Monitoring linux services through systemd

JohnD Blackburn <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <DB6PR0602MB2902B1DCA8F36B2052B5ECBFCB980@DB6PR0602MB2902.eurprd06.prod.outlook.com>
Has anyone set up monitoring of Linux services listed in systemd?


What I want to be able to do is to alert when specific services are "degraded"

$ systemctl list-units
UNIT                                                        LOAD   ACTIVE SUB       DESCRIPTION
....
network.service                                             loaded active running   LSB: Bring up/down networking
NetworkManager-wait-online.service                          loaded active exited    Network Manager Wait Online
NetworkManager.service                                      loaded active running   Network Manager
oddjobd.service                                             loaded active running   privileged operations for unprivileged applications


Is there something already in OpenNMS that does this/achieves the same result which I have missed/overlooked?

It looks like systemd status has not been integrated into net-snmp so would need a method to access that info from the opennms server.

It is possible to enable dbus to listen on a tcp port, and to query it remotely, however, there are possibly security considerations when doing this.

Regards,
John Blackburn

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.