Error in plugin routerconfigs

General discussion about Plugins for Cacti

Moderators: Moderators, Developers

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

Error in plugin routerconfigs

#1 Post by cezario2009 » Tue Dec 26, 2017 3:00 pm

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: 3003
Joined: Sun Aug 27, 2017 12:05 am

Re: Error in plugin routerconfigs

#2 Post by netniV » Tue Dec 26, 2017 5:25 pm

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

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

Re: Error in plugin routerconfigs

#3 Post by cezario2009 » Wed Dec 27, 2017 8:12 am

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

#4 Post by cezario2009 » Wed Dec 27, 2017 8:57 am

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

#5 Post by smiles » Fri Dec 29, 2017 12:19 pm

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

#6 Post by cezario2009 » Fri Dec 29, 2017 12:42 pm

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

#7 Post by smiles » Fri Dec 29, 2017 1:07 pm

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