[SOLVED] Router configs doesnt download conf.

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
parvedejs
Posts: 5
Joined: Fri Jul 17, 2009 3:00 am

[SOLVED] Router configs doesnt download conf.

Post by parvedejs »

Hi.
Problem :
configmanager doesnt download router configuration :(

Receive error :
�������� User Access Verification Username: �� ������'��Saving Debug
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/plugins/routerconfigs/functions.php:426) in /usr/share/cacti/site/plugins/routerconfigs/router-devices.php on line 278


Server info:
Debian
Cacti Version 0.8.7d
routerconfigs Version 0.1

TFTP work . If I, go to router using same login & pass like @ cacti config & make save config 2 TFTP server bay hand , all work fine.

Any idea ?


:-?

p.s. sorce downloaded from http://docs.cacti.net/plugin:routerconfigs#screenshots
Last edited by parvedejs on Tue Jul 21, 2009 4:44 am, edited 1 time in total.
parvedejs
Posts: 5
Joined: Fri Jul 17, 2009 3:00 am

Post by parvedejs »

Solution:
1) Some changes in functions.php

Code: Select all

# diff functions.php functions.php.old  
131c131
<               //echo $result;
---
>               echo $result;
134c134
<               //echo $result;
---
>               echo $result;
137c137
<               //echo $result;
---
>               echo $result;
142c142
<                       //echo $result;
---
>                       echo $result;
149c149
<                       //echo $result;
---
>                       echo $result;
318c318
<       //echo "Saving Debug\n";
---
>       echo "Saving Debug\n";
364c364
<       var $use_usleep=1;      // change to 1 for faster execution
---
>       var $use_usleep=0;      // change to 1 for faster execution
423c423
<                                       //echo $r;
---
>                                       echo $r;
426c426
<                               //echo $r;
---
>                               echo $r;
433,434c433,434
<                                       //$this->GetResponse($r);
<                                       //echo $r;
---
>                                       $this->GetResponse($r);
>                                       echo $r;
452c452
<                                       //echo $r;
---
>                                       echo $r;
474c474
<                                               //echo $r;
---
>                                               echo $r;
489c489
<                                               //echo $r;
---
>                                               echo $r;
506c506
<                                       //echo $r;
---
	echo $r;
2) Device directory is =! Device description

p.s.
chmod 777 tftpfolder
Some level of security can be gained using atftp libwrap support. Adding proper entry to /etc/hosts.allow and /etc/hosts.deny will restrict access to trusted hosts.

& unable resset Enable Password fom GUI

:-?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Those changes you made in the patch are completely unnecessary, they are only displayed from the command line (for debugging purposes), it does not effect what is sent to the router. So no changes necessary.
parvedejs
Posts: 5
Joined: Fri Jul 17, 2009 3:00 am

Post by parvedejs »

cigamit wrote:Those changes you made in the patch are completely unnecessary, they are only displayed from the command line (for debugging purposes), it does not effect what is sent to the router. So no changes necessary.
If I don’t remove

Code: Select all

echo $r; echo $result;
[/b] yes , process work , but page don’t show correctly.

If I don’t remove

Code: Select all

$this->GetResponse($r)
[/b]; @ line 433, backup process not work.
mfarrell
Posts: 1
Joined: Wed Oct 07, 2009 9:55 am

Post by mfarrell »

I also had this problem with routerconfigs-0.2 on cacti-0.8.7e. Applying the changes in the above diff fixed the issue.
User avatar
zoemu
Cacti User
Posts: 287
Joined: Fri Jul 10, 2009 1:38 pm
Location: Toronto, Canada

Post by zoemu »

any idea on This

User Access Verification Username: ÿþ ÿúÿðÿþ'ÿýSaving Debug
Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278
PHP Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278

is there a solution Yet

THnak you
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Routerconfig plugins

Post by trungtano »

Hi all,

I'm new user cacti, I have just set up cacti 0.8.7e and Routerconfig latest and do the install as README file. But when I create the backup file there is not any file backup in the folder.

And the Debug pages said:

��������
-----------------------------------------------------------------------
Cisco Router and Security Device Manager (SDM) is installed on this device.
This feature requires the one-time use of the username "cisco"
with the password "cisco". The default username and password have a privilege level of 15.

Please change these publicly known initial credentials using SDM or the IOS CLI.
Here are the Cisco IOS commands.

username <myuser> privilege 15 secret 0 <mypassword>
no username cisco

Replace <myuser> and <mypassword> with the username and password you want to use.

For more information about SDM please follow the instructions in the QUICK START
GUIDE for your router or go to http://www.cisco.com/go/sdm
-----------------------------------------------------------------------


User Access Verification

Username: �� ������'��


Anyone know why?
I think the connection to the router is ok, but some function was not run!

Help me pls,
Best regards!
MrRat
Cacti User
Posts: 136
Joined: Thu Jan 07, 2010 10:33 am

Post by MrRat »

Indeed
# diff functions.php functions.php.orig
433,434c433,434
< //$this->GetResponse($r);
< //echo $r;
---
> $this->GetResponse($r);
> echo $r;
commenting out 2 lines fixes it for me also.
MrRat
Cacti User
Posts: 136
Joined: Thu Jan 07, 2010 10:33 am

Post by MrRat »

Any update on the ssh support for this plugin?
User avatar
kriskirkland
Posts: 5
Joined: Mon Apr 19, 2010 1:27 pm
Location: Texas
Contact:

Re: [SOLVED] Router configs doesnt download conf.

Post by kriskirkland »

Im having this same problem with 0.3. I tried commenting out those lines and im still getting the same issue. When I run router-download.php from the cli i get;

Code: Select all

Processing <routername>
ÿûÿûÿýÿý

User Access Verification

Username: ÿþ ÿúÿðÿþ'ÿýkris
Password:

<router-name>#
It never actually sends the command to tftp the config. It then begins processing the next device in line with the same results.
sharekhan
Cacti User
Posts: 57
Joined: Mon Apr 04, 2011 10:47 am

Re: [SOLVED] Router configs doesnt download conf.

Post by sharekhan »

Hi Dear,

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

pls suggest ...


Thank & regards
lalIT
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Re: [SOLVED] Router configs doesnt download conf.

Post by spoonman »

Anyone have this issue with routerconfig/////

CMDPHP: DEVEL: SQL Exec: UPDATE plugin_routerconfigs_devices SET lasterror = ERROR: Bad download of config WHERE id = 1

I just installed the latest version from docs site and added a device...i see inthe log its accessing tftp ok, then get this error?

Thanks
CCNA
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: [SOLVED] Router configs doesnt download conf.

Post by TheWitness »

Looks like a shell exec failed with an error that the loader was in correctly parsing.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests