Router configs issue
Moderators: Developers, Moderators
Router configs issue
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
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)
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
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!
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 (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)
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
-
- Posts: 4
- Joined: Wed Jun 30, 2010 9:55 am
- Location: USA
router configs
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.
-
- Posts: 12
- Joined: Wed Nov 25, 2009 9:08 am
Re:
Jimmy, thank you for your share.cigamit wrote:You can't, its not done yet.
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
And once again, thanks for your work.
Re: SSH support?
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!
Re: Router configs issue
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
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
Re: Router configs issue
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
Who is online
Users browsing this forum: No registered users and 0 guests