Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
0b820421
Commit
0b820421
authored
Dec 03, 2018
by
Carla Guillen Carias
Browse files
Possibilities to write configuration. To discuss...
parent
0689c530
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/gpfsmon.conf
View file @
0b820421
...
...
@@ -6,14 +6,9 @@ global {
;
add
here
other
global
attributes
for
your
plugin
}
group
iogroup1
{
nodenameList
i
[
0
-
9
]
c
[
4
-
24
]
r
[
1
,
6
,
17
],
i2c3r
[
8
,
10
-
12
]
group
template_a1
{
interval
1000
minValues
10
;
how
do
we
calculate
it
from
nodenameList
?
mqttPrefix
01
sensor
IOBYTESREAD
{
mqttsuffix
00
}
...
...
@@ -27,15 +22,34 @@ group iogroup1 {
}
}
;
single
sensor
group
iogroup2
{
group
possibility1
{
nodenameList
i
[
0
-
9
]
c
[
4
-
24
]
r
[
1
,
6
,
17
],
i2c3r
[
8
,
10
-
12
],...
macaddresse
[
120
-
600
],[
607
,
789
],...
default
a1
}
nodenameList
i2c3r9
interval
10000
minValues
10
sensor
IOOPENS
{
mqttsuffix
03
group
possibility2
{
nodetomac
{
nodename
i0c0a1
macaddress
123
}
nodetomac
{
nodename
i0c0a2
macaddress
123
}
nodetomac
{
nodename
i0c1a2
macaddress
525
}
...
default
a1
}
group
possibility3
{
;
contains
nodename
=>
macaddresse
nodefile
file
.
txt
default
a1
}
src/includes/ConfiguratorTemplate.h
View file @
0b820421
...
...
@@ -766,7 +766,7 @@ protected:
* @param compressedList String which specifies a range of node names (e.g. "a[2-4]b[1-3]c[4-7]")
* @return true if parsed successfully, false otherwise
*/
bool
tokeniz
eCompressed
Host
List
(
const
std
::
string
&
compressedList
,
std
::
set
<
std
::
string
>&
nodeNames
){
bool
pars
eCompressed
Node
List
(
const
std
::
string
&
compressedList
,
std
::
set
<
std
::
string
>&
nodeNames
){
int
count
=
0
;
std
::
string
token
;
std
::
stringstream
iss
(
compressedList
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment