gatherer sbd_config with argument 'SBD_DEVICE' #117
-
If I understand the docu correctly it returns a list of the 'SBD_DEVICE' entry found in the config file. (/dev/vdc;/dev/vdb) If it is an array, how can this be used in the 'expectation' property, if I need the length of the array (which means I need the number of returned devices)? or do I need to assign 'facts.sbd_multiple_SBD_DEVICE' to a variable (where in the yaml file?) and use this variable for the expression It's not really clear to me, where (and how) I can use the possibilities of the expression language inside the 'expectation' property. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I've a similar problem with the check corosync has at least two rings configured. If I could get advice on how such a complex check could be solved. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
@angelabriel the SBD_DEVICE value is a semicolon separated string, so we can leverage the evaluation language by doing something like: facts.sbd_devices.split(";").len() where |
Beta Was this translation helpful? Give feedback.
@angelabriel the SBD_DEVICE value is a semicolon separated string, so we can leverage the evaluation language by doing something like:
where
sbd_devices
is the fact containingsbd_config
gathered fact with argumentSBD_DEVICE