Command execution on Cisco routers

Jeffrey lang jrlang at uwyo.edu
Thu Sep 30 23:28:33 CEST 2004


Try using expect tool for writing the communications script.  It does
expect/reject matching in input from the remote system, so you can do
some good error handling.  You can call expect from the plug you will
need to write to handle the nagios interface.  You might just be able to
call the expect script directly from nagios, thou i haven't tried.


  On Thu, 2004-09-30 at 14:10, Horvath Tamas wrote:
> Hi members!
> 
> I would like to run some commands on Cisco routers via Nagios. I'm going 
> to write a simple shell script as a Nagios plug-in, but I've didn't 
> managed to handle Telnet interactive behavior (give it automatically the 
> username and password) yet.
> 
> I need this method, because I don't do what I want via SNMP. I can use 
> Telnet, because I access our routers via IPSec VPN, but I can use SSH as 
> well, if someone know a working solution for SSH.
> 
> Did someone managed to do this?
> 
> Any help would be appreciate!
> 
> Thanks, Tamas!
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list