Forum Discussion

grantae's avatar
5 years ago

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? 

  • Anonymous's avatar
    Anonymous

    Alright, check now. I've been wondering why those thumbs up weren't getting more action.

  • Still looks the same. I checked in different browsers too. 

  • Anonymous's avatar
    Anonymous

    Hm, looks like i've figured out how to let you like stuff, but you can't like your own stuff and for some reason you can't like administrator stuff. Check another thread where someone other than you and I are in it.

  • Anonymous's avatar
    Anonymous

    Ok, i think i found it. Try now.

  • Anonymous's avatar
    Anonymous

    Btw, thanks for helping me troubleshoot this. I thought it was enabled, but the settings are pretty complex in this thing.

  • Cool, I see it now. I gave you all the thumbs. ;)

    No problem, I'm glad I could help you since you helped me so much.