Making a Backup for Cisco ISE in LogicMonitor
I am trying to setup a ConfigSource in LogicMonitor for Cisco ISE backups. We want the backup to only pull when a change is made in ISE. The out-of-the-box Cisco_IOS and Cisco_NXOS ConfigSources don't seem to work for ISE. So I tried to make a ConfigSource from the LM page https://www.logicmonitor.com/support/logicmodules/articles/creating-a-configsource but I haven't been able to get it to work properly. I made a copy of Cisco_IOS so I could have the Config Checks and removed the scripts. I have the following:
AppliesTo:
(
(
startsWith( system.sysinfo, "Cisco Identity Services Engine" )
)
) &&
(
(ssh.user && ssh.pass ) ||
(config.user && config.pass)
)
Parameters:
import com.santaba.agent.groovyapi.expect.Expect
host = hostProps.get("system.hostname");
user = hostProps.get("config.user");
pass = hostProps.get("config.pass");
cli=Expect.open(host, user, pass);
cli.expect("#");
cli.send("terminal length 0\n");
cli.expect("#");
cli.send("show running-config all\n");
cli.expect(/Current configuration.*\n/);
cli.send("exit\n");
cli.expect("#exit");
config=cli.before();
config = config.replaceAll(/ntp clock-period \d+/,"ntp clock-period ");
cli.expectClose();
println config;
Test comes back with the error:
The script failed, elapsed time: 60 seconds - End of stream reached, no match found java.io.IOException: End of stream reached, no match found
Does anyone have any ideas?