Error in plugin routerconfigs

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
cezario2009
Posts: 11
Joined: Mon Dec 11, 2017 7:26 am

Error in plugin routerconfigs

Post by cezario2009 »

I installed plugin to back up the routers and gave this error i need help!!!

(/plugins/routerconfigs/router-devices.php: 135 actions_devices)
(/plugins/routerconfigs/router-devices.php: 305 plugin_routerconfigs_download_config)
(/plugins/routerconfigs/functions.php: 192 Connect)
(/plugins/routerconfigs/functions.php: 887 fputs)
(CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace)
Last edited by cezario2009 on Wed Dec 27, 2017 7:28 am, edited 1 time in total.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Error in plugin routerconfigs

Post by netniV »

You have provided a stack trace here, but not the actual error message. Do you have that as well?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
cezario2009
Posts: 11
Joined: Mon Dec 11, 2017 7:26 am

Re: Error in plugin routerconfigs

Post by cezario2009 »

netniV wrote:You have provided a stack trace here, but not the actual error message. Do you have that as well?

when I try to back up the router settings

2017/12/27 13:10:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/routerconfigs/router-devices.php: 135 actions_devices)(/plugins/routerconfigs/router-devices.php: 305 plugin_routerconfigs_download_config)(/plugins/routerconfigs/functions.php: 192 Connect)(/plugins/routerconfigs/functions.php: 887 fputs)(CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace)
cezario2009
Posts: 11
Joined: Mon Dec 11, 2017 7:26 am

Re: Error in plugin routerconfigs

Post by cezario2009 »

cezario2009 wrote:
netniV wrote:You have provided a stack trace here, but not the actual error message. Do you have that as well?

when I try to back up the router settings

2017/12/27 13:10:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/routerconfigs/router-devices.php: 135 actions_devices)(/plugins/routerconfigs/router-devices.php: 305 plugin_routerconfigs_download_config)(/plugins/routerconfigs/functions.php: 192 Connect)(/plugins/routerconfigs/functions.php: 887 fputs)(CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace)
ERROR PHP NOTICE in Plugin 'routerconfigs': Array to string conversion in file: /var/www/html/plugins/routerconfigs/functions.php on line: 636
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: Error in plugin routerconfigs

Post by smiles »

You will need to provide more information than you have in order for someone to help.

That last error is not the reason your config is not backing up, it's function is merely to provide info in debugging and can be ignored or omitted from the code.

Do you know that your configs can manually be backed up/pushed from the device CLI to the cacti server? (To eliminate network path, configuration issues, and credential issues as a cause)

Can you post the output of the "Router Debug Info" icon under actions on the devices tab?
cezario2009
Posts: 11
Joined: Mon Dec 11, 2017 7:26 am

Re: Error in plugin routerconfigs

Post by cezario2009 »

smiles wrote:You will need to provide more information than you have in order for someone to help.

That last error is not the reason your config is not backing up, it's function is merely to provide info in debugging and can be ignored or omitted from the code.

Do you know that your configs can manually be backed up/pushed from the device CLI to the cacti server? (To eliminate network path, configuration issues, and credential issues as a cause)

Can you post the output of the "Router Debug Info" icon under actions on the devices tab?
From inside the router I can manually send the configuration to the cacti server using:
copy running-config tftp: xxx.xxx.xx.xx
Do you have any examples of how to configure cacti to backup?
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: Error in plugin routerconfigs

Post by smiles »

The Router Debug Info output will tell you if cacti is successfully logging into the device or not, and also tell you if it's erroring out on any of the commands it's issuing to send the backup. That is why I asked for it's output.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests