From 2e4edfd3f0f9eb306e42f119f73347deaecb7c47 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 23 Jan 2023 07:38:22 +0100 Subject: op-mode: T4949: backport "monitor log" commands from current --- op-mode-definitions/monitor-log.xml.in | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) (limited to 'op-mode-definitions/monitor-log.xml.in') diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 352c84ff1..c14afc559 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -14,6 +14,113 @@ grc tail --follow=name /var/log/messages + + + Show log for Dynamic Host Control Protocol (DHCP) + + + + + Show log for DHCP server + + journalctl --no-hostname --boot --follow --unit isc-dhcp-server.service + + + + Show DHCP client logs + + journalctl --no-hostname --boot --follow --unit "dhclient@*.service" + + + + Show DHCP client log on specific interface + + + + + journalctl --no-hostname --boot --follow --unit "dhclient@$6.service" + + + + + + + + Show log for Dynamic Host Control Protocol IPv6 (DHCPv6) + + + + + Show log for DHCPv6 server + + journalctl --no-hostname --boot --follow --unit isc-dhcp-server6.service + + + + Show DHCPv6 client logs + + journalctl --no-hostname --boot --follow --unit "dhcp6c@*.service" + + + + Show DHCPv6 client log on specific interface + + + + + journalctl --no-hostname --boot --follow --unit "dhcp6c@$6.service" + + + + + + + + Show log for HTTPs + + journalctl --no-hostname --boot --follow --unit nginx.service + + + + Show log for LLDP + + journalctl --no-hostname --boot --follow --unit lldpd.service + + + + Show log for OpenVPN + + journalctl --no-hostname --boot --follow --unit openvpn@*.service + + + + Show OpenVPN log on specific interface + + interfaces openvpn + + + journalctl --no-hostname --boot --follow --unit openvpn@$5.service + + + + + + Show log for Simple Network Monitoring Protocol (SNMP) + + journalctl --no-hostname --boot --follow --unit snmpd.service + + + + Show log for Virtual Router Redundancy Protocol (VRRP) + + journalctl --no-hostname --boot --follow --unit keepalived.service + + + + Show log for Webproxy + + journalctl --no-hostname --boot --follow --unit squid.service + -- cgit v1.2.3