Router configs issue

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Router configs issue

Post by Dacob9906 »

after installing the router configs plugin, I click on the link to take me there in cacti, and it looks like it should be working. I get a couple of errors.

At the top of the screen sits this error:
Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\plugins\RouterConfigs\router-devices.php on line 53

This error sits directly below the tabs within the window for the plugin:
Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\plugins\RouterConfigs\router-devices.php on line 436

Upon trying to create a device ignoring the other errors, I recieve this when I hit create:
Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\cacti\plugins\RouterConfigs\router-devices.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\cacti\plugins\RouterConfigs\router-devices.php:53) in C:\Inetpub\wwwroot\cacti\plugins\RouterConfigs\router-devices.php on line 356

And last when I try to create an authentication account, it allows me to create the account without any errors, but it never actually makes the account... doesn't show up in the pull down list when adding devices or on the authentication tab.

Thanks a bunch for all your help, this is a very useful plugin... well, at least it will be when I get it working :)
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Import the SQL File.
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

ahhh, ok, I haven't had to do that in a long time.... now I gotta remember how... lol :P
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

Hmmm, I imported the sql file and that took care of all the current issues. but I'm getting a few more now. One of the big ones being how the plugin attempts to log in to the switches. We have a secret enable password set on all switches, with passwords set on certain vty lines as well.

So to log into a switch it would look something like this.
telnet 2.2.2.2
Switch>enable
Password: ******
Switch#>

the plugin seems to try and put the "password" I have created in the authentication account where the enable command should go, and then obviously bombs out when the real password is asked for.

I could very well be missing something simple, but so far no luck. Thanks for the help! :)
Attachments
Router Config.jpg
Router Config.jpg (63.82 KiB) Viewed 14356 times
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
User avatar
Gabriel
Posts: 28
Joined: Sun Jan 04, 2009 7:08 pm
Location: Auckland, NZ

Post by Gabriel »

That would unfortunately mean you need to create user accounts at the cisco gears and grant them a lv15 access so it goes straight to privileged mode.
Also in the router/switch vty settings you need to use local authentication.

Cheers,
Gabriel
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I have enable support in SVN already, currently fixing a few issues, and adding SSH support.
bencac
Posts: 25
Joined: Fri Jan 30, 2009 3:53 am

Post by bencac »

Hello I 'm very interrested for the plugin Routeurs Config with ssh support.

Where Can I download your version with ssh enable?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

You can't, its not done yet.
grady
Cacti User
Posts: 60
Joined: Wed Feb 20, 2008 5:02 pm

Post by grady »

So this plugin wont work if you're using tacacs? (E.g giving router configs a tac username / pw w l 15 privs no go?)
davermenator
Posts: 4
Joined: Wed Jun 30, 2010 9:55 am
Location: USA

Post by davermenator »

I would be interested in knowing if this is supported for use with TACACS+ authentication enabled as well. I am currently troubleshooting to see if it is something I messed up :lol:
dgulotta
Posts: 1
Joined: Sat Jul 24, 2010 6:06 pm

router configs

Post by dgulotta »

I've tried it with TACACS, ssh, telnet. it seems the way it currently works is that if you have line 0 15 transport input ssh that the device backups will not work but if you use transport input all, etc that the device backups work fine. So you can have a switch, etc configured for telnet and ssh and also using tacacs and back it up as long as your not limiting the vty input to only ssh.
russian.qwerty
Posts: 12
Joined: Wed Nov 25, 2009 9:08 am

Re:

Post by russian.qwerty »

cigamit wrote:You can't, its not done yet.
Jimmy, thank you for your share.

Today I've checked svn and still nothing about SSH. I'd be happy to see SSH support because Telnet is not secure. Thus plugin can't be used in many cases, but plugin is really nice.

BTW, I'm faced with the problem with Cacti 0.8.7g, PIA 2.8 and latest routerconfigs (routerconfigs-v0.3-1.tgz as well as SVN rev 1354). I can't add anything (account or device). The the problem was the lack of tables in the database. After manual SQL import problem goes away. Just like that:

Code: Select all

mysql -u cactiuser --password='cactiuser' cacti < routerconfigs/routerconfigs.sql
Installation process was: «Console» > «Configuration» > «Plugin management» > «Routerconfigs» > «Install Plugin» > «Enable Plugin» and that's it. I didn't add anything in include/config.php. Am I right? If YES it is maybe a bug?

And once again, thanks for your work.
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: SSH support?

Post by trungtano »

bencac wrote:Hello I 'm very interrested for the plugin Routeurs Config with ssh support.

Where Can I download your version with ssh enable?

I see in the change log :

ChangeLog

— 0.3 —

*
compat: Remove PIA 1.x support
*
compat: Register Realms
*
compat: 0.8.7g

— 0.2 —

*
feature: Allow the use of enable passwords
*
feature: Add support for SSH Connections (thanks to Abdul Pallarés)


— 0.1 —

*
Initial Release
*
Nightly Backups
*
View Config of any backup
*
Compare Configs
*
Automatically update Hostname from config file

But, where can I enable SSH feature? Or can I download V0.2

Thanks!
sharekhan
Cacti User
Posts: 57
Joined: Mon Apr 04, 2011 10:47 am

Re: Router configs issue

Post by sharekhan »

Hi Dear,

Pls help , how to used Router config with SSH . i am using ssh in router , i have disable the telnet .

pls suggest ...


Thank & regards
lalIT
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: Router configs issue

Post by trungtano »

sharekhan wrote:Hi Dear,

Pls help , how to used Router config with SSH . i am using ssh in router , i have disable the telnet .

pls suggest ...


Thank & regards
lalIT

Now you can install the PHP SSH module on CentOS/RedHat in less time than it would take someone
to steal your FTP password during a transfer.
So about a minute all said and done.

1.) need to do any compiling anymore:
yum install libssh2 libssh2-devel

2.) yum install away! (yum install php-pecl-ssh2)
Now that you have EPEL installed the PHP SSH module is a quick yum away:

ftp://ftp.muug.mb.ca/mirror/fedora/epel ... x86_64.rpm
rpm -ivh php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm

All you have to do is hit Enter and it should detect the proper path. Once the install is completed,
you just have to tell PHP to load the extension when it boots.

touch /etc/php.d/ssh2.ini
echo extension=ssh2.so > /etc/php.d/ssh2.ini

3.) Reload Apache
Now restart your webserver and test to see if the changes took effect.

/sbin/service httpd reload
php -m | grep ssh2
ssh2

Boom, you’re done. Now when you log in/refresh your wp-admin section you should see an SSH2 radio button next to
FTP and FTPS on any update/install form.

welcome our new SSH overlords.

http://kevin.vanzonneveld.net/techblog/ ... s_with_php
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests