Open elisi2000 opened 9 years ago
@jtyr any thoughts about this ?
Is there somewhere a list of allowed characters for the Sensu names?
I think it would be better to change the way how the special characters are replaced to allow only an explicit set of characters (e.g.: a-zA-Z0-9.-) and replace anything else by "".
@elisi2000 Is this an actual problem you're having? Slashes are not allowed in collectd metric identifiers and should therefore not appear in the data being passed to the _writesensu plugin – they're replaced by underscores (_
) in plugin_dispatch_values_internal()
.
@jtyr The closest to a reference documentation I've found is https://sensuapp.org/docs/latest/clients#anatomy-of-a-check-result
Hi In addition to the list of characters replacement for sensu "to be happy". Please add the slash charcter
case '/': origname[i] = ''; break;
Thanks