summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-log.xml.in
blob: e06516ee7ddca9ced835bd4984a2d3c3707d11cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="monitor">
    <children>
      <node name="log">
        <properties>
          <help>Monitor last lines of messages file</help>
        </properties>
        <command>tail --follow=name /var/log/messages</command>
        <children>
          <node name="colored">
            <properties>
              <help>Output log in a colored fashion</help>
            </properties>
            <command>grc tail --follow=name /var/log/messages</command>
          </node>
          <node name="dhcp">
            <properties>
              <help>Show log for Dynamic Host Control Protocol (DHCP)</help>
            </properties>
            <children>
              <node name="server">
                <properties>
                  <help>Show log for DHCP server</help>
                </properties>
                <command>journalctl --no-hostname --boot --follow --unit isc-dhcp-server.service</command>
              </node>
              <node name="client">
                <properties>
                  <help>Show DHCP client logs</help>
                </properties>
                <command>journalctl --no-hostname --boot --follow --unit "dhclient@*.service"</command>
                <children>
                  <tagNode name="interface">
                    <properties>
                      <help>Show DHCP client log on specific interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py --broadcast</script>
                      </completionHelp>
                    </properties>
                    <command>journalctl --no-hostname --boot --follow --unit "dhclient@$6.service"</command>
                  </tagNode>
                </children>
              </node>
            </children>
          </node>
          <node name="dhcpv6">
            <properties>
              <help>Show log for Dynamic Host Control Protocol IPv6 (DHCPv6)</help>
            </properties>
            <children>
              <node name="server">
                <properties>
                  <help>Show log for DHCPv6 server</help>
                </properties>
                <command>journalctl --no-hostname --boot --follow --unit isc-dhcp-server6.service</command>
              </node>
              <node name="client">
                <properties>
                  <help>Show DHCPv6 client logs</help>
                </properties>
                <command>journalctl --no-hostname --boot --follow --unit "dhcp6c@*.service"</command>
                <children>
                  <tagNode name="interface">
                    <properties>
                      <help>Show DHCPv6 client log on specific interface</help>
                      <completionHelp>
                        <script>${vyos_completion_dir}/list_interfaces.py</script>
                      </completionHelp>
                    </properties>
                    <command>journalctl --no-hostname --boot --follow --unit "dhcp6c@$6.service"</command>
                  </tagNode>
                </children>
              </node>
            </children>
          </node>
          <leafNode name="https">
            <properties>
              <help>Show log for HTTPs</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit nginx.service</command>
          </leafNode>
          <leafNode name="ipoe-server">
            <properties>
              <help>Monitor last lines of IPoE server log</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit accel-ppp@ipoe.service</command>
          </leafNode>
          <leafNode name="lldp">
            <properties>
              <help>Show log for LLDP</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit lldpd.service</command>
          </leafNode>
          <node name="openvpn">
            <properties>
              <help>Show log for OpenVPN</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit openvpn@*.service</command>
            <children>
              <tagNode name="interface">
                <properties>
                  <help>Show OpenVPN log on specific interface</help>
                  <completionHelp>
                    <path>interfaces openvpn</path>
                  </completionHelp>
                </properties>
                <command>journalctl --no-hostname --boot --follow --unit openvpn@$5.service</command>
              </tagNode>
            </children>
          </node>
          <leafNode name="snmp">
            <properties>
              <help>Show log for Simple Network Monitoring Protocol (SNMP)</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit snmpd.service</command>
          </leafNode>
          <leafNode name="vrrp">
            <properties>
              <help>Show log for Virtual Router Redundancy Protocol (VRRP)</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit keepalived.service</command>
          </leafNode>
          <leafNode name="webproxy">
            <properties>
              <help>Show log for Webproxy</help>
            </properties>
            <command>journalctl --no-hostname --boot --follow --unit squid.service</command>
          </leafNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>