Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Jan 24, 2019 12:06 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: plugin RouterConfig - error to backup
PostPosted: Thu Aug 23, 2018 4:03 am 
Offline
Cacti User

Joined: Thu Mar 29, 2012 2:19 am
Posts: 96
hi,
Im testing this plugin.
using cisco router
I get the following error message:
23/08/2018 11:58:42 - RCONFIG x.x.x.x (Telnet) -> DEBUG: Setting timeout to 1 second(s)
23/08/2018 11:58:42 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Setting sleep time to 125000 microsecond(s)
23/08/2018 11:58:42 - RCONFIG x.x.x.x(Telnet) -> Disconnect()
23/08/2018 11:58:42 - RCONFIG x.x.x.x(Telnet) -> Attempting to open socket to x.x.x.x:23
23/08/2018 11:58:42 - RCONFIG x.x.x.x(Telnet) -> Looking for username:
23/08/2018 11:58:43 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Found Prompt (Username)
23/08/2018 11:58:43 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Sending username: pdn
23/08/2018 11:58:44 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Found Prompt (Password)
23/08/2018 11:58:44 - RCONFIG x.x.x.x (Telnet) -> DEBUG: Sending password: (9 chars)
23/08/2018 11:58:44 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Found Prompt (Enabled)
23/08/2018 11:58:44 - RCONFIG x.x.x.x(Telnet) -> NOTICE: Connected via telnet
23/08/2018 11:58:44 - RCONFIG x.x.x.x(Telnet) -> NOTICE: Already enabled, continuing
23/08/2018 11:58:44 - RCONFIG x.x.x.x(Telnet) -> DEBUG: --> copy start tftp
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Found Prompt (Enabled)
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: copy start tftp
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: Command authorization failed.
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: ^
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: % Invalid input detected at '^' marker.
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: r1.con.rvt#
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Result: (0)
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Checking for valid incoming file at /var/www/html/cacti/backups/x.x.x.x
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> ERROR: Failed to find file at /var/www/html/cacti/backups/x.x.x.x
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: --> exit
23/08/2018 11:58:46 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Timeout of 1 seconds has been reached
23/08/2018 11:58:46 - RCONFIG NOTICE: Failed to download for x.x.x.x
23/08/2018 11:58:46 - RCONFIG WARNING: 0 Devices Backed Up, 1 Devices Failed, 0 Disabled (ignored) in 4 seconds
23/08/2018 11:58:46 - RCONFIG DEBUG: 0 devices backed up successfully.
23/08/2018 11:58:46 - RCONFIG DEBUG: 1 devices failed to backup.
23/08/2018 11:58:47 - RCONFIG STATS: Time:4.64 Downloaded:0 Failed:1


Top
 Profile  
 
 Post subject: Re: plugin RouterConfig - error to backup
PostPosted: Thu Aug 23, 2018 6:25 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1946
Code:
23/08/2018 11:58:45 - RCONFIG x.x.x.x(Telnet) -> DEBUG: Line: Command authorization failed.

This line here is your problem. If you want to see exactly what was being sent/returned you'll have to enable the other debug option that records the actual conversation. However, I suspect that whilst your user is elevating, they don't have permission to run the TFTP command.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group