private final PluginId pluginId = new PluginId("RHQ", 1, 0, null);
@Override
public List<JdrCommand> getCommands() throws Exception {
Sanitizer passwordSanitizer = Sanitizers.pattern("password=.*", "password=*****");
return Arrays.asList(
new RHQStatusCommand(),
new RHQCollectFiles("bin/rhq-server.properties").sanitizer(passwordSanitizer),
new RHQCollectFiles("logs/server.log").limit(50 * Utils.ONE_MB),
new RHQCollectFiles("logs/server.log*").omit("logs/server.log"),