This file is indexed.

/etc/prelude-lml/ruleset/bonding.rules is in prelude-lml-rules 4.1.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#FULLNAME: Linux bonding driver
#VERSION: 1.0
#DESCRIPTION: The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical "bonded" interface.

#####
#
# Copyright (C) 2016-2017 CS-SI <support.prelude@c-s.fr>
# All Rights Reserved
#
# This file is part of the Prelude-LML program.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
#####

#DESCRIPTION:Bonded interface - Status change
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: backup interface eth0 is now up
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: backup interface eth0 is now down
regex=bonding:\s(\w+):\s(\w+)\sinterface\s(\w+)\sis\snow\s(\w+); \
 id=4800; \
 revision=1; \
 classification.text=bonded interface status change to $4; \
 assessment.impact.severity=high; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=interface $3 which is the $2 member of $1 has changed link status to $4; \
 source(0).interface=$3; \
 target(0).interface=$1; \
 additional_data(0).type=string; \
 additional_data(0).meaning=primary or backup interface; \
 additional_data(0).data=$2; \
 additional_data(1).type=string; \
 additional_data(1).meaning=new interface state; \
 additional_data(1).data=$4; \
 last

#DESCRIPTION:Bonded interface - Link status change
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: link status down for active interface eth0, disabling it
regex=bonding:\s(\w+):\slink\sstatus\s(\w+)\sfor\s(\w+)\sinterface\s(\w+),\s(\w+)\sit; \
 id=4801; \
 revision=1; \
 classification.text=$5 bonded link $3 interface; \
 assessment.impact.severity=high; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=$5 $3 interface $4 which is a member of $1 due to status $2; \
 source(0).interface=$4; \
 target(0).interface=$1; \
 additional_data(0).type=string; \
 additional_data(0).meaning=new interface state; \
 additional_data(0).data=$2; \
 last

#DESCRIPTION:Bonded interface - New interface on bond
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: making interface eth4 the new active one.
regex=bonding:\s(\w+):\smaking\sinterface\s(\w+)\sthe\snew\s(\w+)\sone; \
 id=4802; \
 revision=1; \
 classification.text=Setting new $3 interface on bond $1; \
 assessment.impact.severity=high; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=setting bonded interface $2 to $3 on $1; \
 source(0).interface=$2; \
 target(0).interface=$1; \
 last

#DESCRIPTION:Bonded interface - Interface status change
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: eth0 is up and now the active interface
regex=bonding:\s(\w+):\s(\w+)\sis\s(\w+)\sand\snow\sthe\s(\w+)\sinterface; \
 id=4803; \
 revision=1; \
 classification.text=bonded active interface link status change to $3; \
 assessment.impact.severity=high; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=interface $2 is has changed to up as $4 interface on bonded interface $1; \
 source(0).interface=$2; \
 target(0).interface=$1; \
 last

#DESCRIPTION:ARP monitoring status
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: ARP monitoring set to 1000 ms with 1 target(s): 192.168.100.1
regex=bonding:\sARP\smonitoring\sset\sto\s(\d+)\sms\swith\s(\d)\starget\(s\):\s(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}); \
 id=4804; \
 revision=1; \
 classification.text=enabling ARP monitoring of bonding status; \
 assessment.impact.severity=low; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=enabling monitoring of bonded link status using the ARP method; \
 target(0).node.address(0).address=$3; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=ARP interval in ms; \
 additional_data(0).data=$1; \
 last

#DESCRIPTION:Bonded interface - New interface to bond
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: enslaving eth0 as an active interface with an up link
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: enslaving eth4 as a backup interface with an up link
regex=bonding:\s(\w+):\senslaving\s(\w+)\sas\san?\s(\w+)\sinterface\swith\san\s(\w+)\slink; \
 id=4805; \
 revision=1; \
 classification.text=Joining new $3 interface to bond; \
 assessment.impact.completion=succeeded; \
 assessment.impact.severity=low; \
 assessment.impact.type=other; \
 assessment.impact.description=$2 was added as a new $3 member of bonded interface $1 with a link status of $4; \
 source(0).interface=$2; \
 target(0).interface=$1; \
 additional_data(0).type=string; \
 additional_data(0).meaning=primary or backup interface; \
 additional_data(0).data=$3; \
 additional_data(1).type=string; \
 additional_data(1).meaning=link state; \
 additional_data(1).data=$4; \
 last

#DESCRIPTION:Bonded interface - Disabling
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: bond0: released all slaves
regex=bonding:\s(\w+):\sreleased\sall\sslaves; \
 id=4806; \
 revision=1; \
 classification.text=disabling bonded interface; \
 assessment.impact.completion=succeeded; \
 assessment.impact.severity=high; \
 assessment.impact.type=other; \
 assessment.impact.description=binded interface $1 has been disabled and all of the member interfaces have been released; \
 target(0).interface=$1; \
 last

#DESCRIPTION:Possibly miss configured bond member
#CATEGORY:Monitoring
#LOG:Aug 24 00:54:18 blah kernel: bonding: Warning: failed to get speed/duplex from eth4, speed forced to 100Mbps, duplex forced to Full
regex=bonding:\sWarning:\sfailed\sto\sget\sspeed/duplex\sfrom\s(\w+)\,\sspeed\sforced\sto\s(\w+),\sduplex\sforced\sto\s(\w+); \
 id=4807; \
 revision=1; \
 classification.text=possibly miss configured bond member; \
 assessment.impact.completion=failed; \
 assessment.impact.severity=high; \
 assessment.impact.type=other; \
 assessment.impact.description=bonded interface $1 failed to automatically detect the speed and duplex of the network and has been set it self to $2 at $3 duplex; \
 source(0).interface=$1; \
 additional_data(0).type=string; \
 additional_data(0).meaning=current link speed; \
 additional_data(0).data=$2; \
 additional_data(1).type=string; \
 additional_data(1).meaning=duplex; \
 additional_data(1).data=$3; \
 last